Просмотр исходного кода

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

liujt 8 месяцев назад
Родитель
Сommit
ac6cc0d44e
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/BIZComponents/processSubmitDialog/processSubmitDialog.vue

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

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