|
@@ -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()
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 修改流程时间
|
|
// 修改流程时间
|