Przeglądaj źródła

Merge branch 'test' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend into test

yusheng 10 miesięcy temu
rodzic
commit
d637f62462

+ 15 - 1
src/components/processSubmitDialog/processSubmitDialog.vue

@@ -3,6 +3,7 @@
     custom-class="ele-dialog-form long-dialog-form"
     :centered="true"
     :visible="processSubmitDialogFlag"
+    v-if="processSubmitDialogFlag"
     title="提交审核"
     append-to-body
     :close-on-click-modal="false"
@@ -230,7 +231,8 @@
         userOptions: [],
         userGroupOptions: [],
         dictList: {},
-        rules: {}
+        rules: {},
+        loading: null
       };
     },
     async created() {
@@ -422,12 +424,23 @@
         });
       },
       async submit() {
+        this.loading = this.$loading({
+          lock: true,
+          text: '提交中',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
         await processInstanceCreateAPI(this.form);
         this.$message('提交审核成功');
+        this.loading.close();
         this.$emit('reload');
         this.cancel();
       },
       async submit1() {
+        this.loading = this.$loading({
+          lock: true,
+          text: '提交中',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
         let params = {
           id: this.form.businessId,
           approvalStatus: this.approvalStatus,
@@ -436,6 +449,7 @@
         await this[this.apiFunName](params);
         //await processInstanceUpdateStatusAPI(params);
         this.$message('提交发布成功');
+        this.loading.close();
         this.$emit('reload');
         this.cancel();
       },