[update] 强制撤回加二次确认
This commit is contained in:
@@ -264,14 +264,20 @@ export default {
|
||||
},
|
||||
// 强制撤回
|
||||
handleWithdrawal (record) {
|
||||
const params = {}
|
||||
params.processInstanceId = record.processInstanceId
|
||||
compulsoryWithdrawal(params).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.loadData()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.$confirm({
|
||||
title: this.$t('compulsoryWithdrawal'),
|
||||
content: this.$t('sureCompulsoryWithdrawal'),
|
||||
onOk: () => {
|
||||
const params = {}
|
||||
params.processInstanceId = record.processInstanceId
|
||||
compulsoryWithdrawal(params).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.loadData()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -273,14 +273,20 @@ export default {
|
||||
},
|
||||
// 强制撤回
|
||||
handleWithdrawal (record) {
|
||||
const params = {}
|
||||
params.processInstanceId = record.processInstanceId
|
||||
compulsoryWithdrawal(params).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.loadData()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.$confirm({
|
||||
title: this.$t('compulsoryWithdrawal'),
|
||||
content: this.$t('sureCompulsoryWithdrawal'),
|
||||
onOk: () => {
|
||||
const params = {}
|
||||
params.processInstanceId = record.processInstanceId
|
||||
compulsoryWithdrawal(params).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.loadData()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user