فهرست منبع

重新发起提示框区分取消和关闭操作

cyy 3 ماه پیش
والد
کامیت
3bc1b19ed9
2فایلهای تغییر یافته به همراه8 افزوده شده و 9 حذف شده
  1. 8 5
      src/business/platform/bpmn/form/action.js
  2. 0 4
      src/business/platform/bpmn/form/index.vue

+ 8 - 5
src/business/platform/bpmn/form/action.js

@@ -1052,17 +1052,20 @@ export default {
       this.$confirm('是否保留历史数据?', '提示', {
       this.$confirm('是否保留历史数据?', '提示', {
         type: 'warning',
         type: 'warning',
         confirmButtonText: '是',
         confirmButtonText: '是',
-        cancelButtonText: '否'
+        cancelButtonText: '否',
+        distinguishCancelAndClose: true
       })
       })
         .then(() => {
         .then(() => {
           this.reSign = 'reStart'
           this.reSign = 'reStart'
           this.decision = 'confirm'
           this.decision = 'confirm'
           this.handleStartFlow()
           this.handleStartFlow()
         })
         })
-        .catch(() => {
-          this.reSign = 'reStart'
-          this.decision = 'cancel'
-          this.handleStartFlow()
+        .catch((action) => {
+          if (action === 'cancel') {
+            this.reSign = 'reStart'
+            this.decision = 'cancel'
+            this.handleStartFlow()
+          }
         })
         })
     },
     },
     // 修改流程时间
     // 修改流程时间

+ 0 - 4
src/business/platform/bpmn/form/index.vue

@@ -675,10 +675,6 @@ export default {
           name: this.timeModification_ ? '保存修改' : '修改数据'
           name: this.timeModification_ ? '保存修改' : '修改数据'
         })
         })
       }
       }
-      console.log(
-        this.revocationRestart,
-        'this.revocationRestartthis.revocationRestart'
-      )
       if (this.extraBtn === 'revocation' && this.revocationRestart) {
       if (this.extraBtn === 'revocation' && this.revocationRestart) {
         toolbars.push({
         toolbars.push({
           alias: 'revocation',
           alias: 'revocation',