Explorar el Código

refactor(processSubmitDialog): 流程提交弹窗不管取消还是提交都关闭所有弹窗

liujt hace 8 meses
padre
commit
ac6cc0d44e
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/BIZComponents/processSubmitDialog/processSubmitDialog.vue

+ 3 - 2
src/BIZComponents/processSubmitDialog/processSubmitDialog.vue

@@ -476,7 +476,7 @@
           await processInstanceCreateAPI(this.form);
           this.loading = false;
           this.$message('提交审核成功');
-          this.$emit('reload');
+          // this.$emit('reload');
           this.cancel();
         } catch (error) {}
         this.loading = false;
@@ -490,10 +490,11 @@
         await this[this.apiFunName](params);
         //await processInstanceUpdateStatusAPI(params);
         this.$message('提交发布成功');
-        this.$emit('reload');
+        // this.$emit('reload');
         this.cancel();
       },
       cancel() {
+        this.$emit('reload');
         this.$emit('update:processSubmitDialogFlag', false);
       }
     }