列严信用修复发起时添加提示框
This commit is contained in:
parent
11171868f7
commit
8582848586
|
|
@ -213,13 +213,25 @@ export default {
|
|||
this.subloading = false
|
||||
return this.$message.error(Array.isArray(res.data) ? res.data[0].reason : res.data.reason)
|
||||
}
|
||||
startRemTask({ illegallistids: illegallistid, type: 'credit' }).then(res => {
|
||||
// 在验证成功后显示确认对话框
|
||||
this.$confirm('是否确认启动待办?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
// 用户点击确定后执行 startRemTask
|
||||
startRemTask({ illegallistids: illegallistid, type: 'credit' }).then(res => {
|
||||
this.subloading = false
|
||||
if (res.code === 0) {
|
||||
this.$router.push({ path: '/credit/repair/accept', query: { tasklistid: res.data.tasklistid, bizseq: res.data.bizSeq, workflowId: res.data.workflowId }})
|
||||
} else {
|
||||
this.$message.error(res.msg)
|
||||
}
|
||||
})
|
||||
}).catch(() => {
|
||||
// 用户点击取消时的操作
|
||||
this.subloading = false
|
||||
if (res.code === 0) {
|
||||
this.$router.push({ path: '/credit/repair/accept', query: { tasklistid: res.data.tasklistid, bizseq: res.data.bizSeq, workflowId: res.data.workflowId }})
|
||||
} else {
|
||||
this.$message.error(res.msg)
|
||||
}
|
||||
this.$message.info('已取消启动待办')
|
||||
})
|
||||
} else {
|
||||
this.subloading = false
|
||||
|
|
|
|||
Loading…
Reference in New Issue