diff --git a/src/views/credit/repair/Search.vue b/src/views/credit/repair/Search.vue index 9feac81..a4428a5 100644 --- a/src/views/credit/repair/Search.vue +++ b/src/views/credit/repair/Search.vue @@ -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