From 1ddfee6c0c9cac07c632516966ac7b6551c88279 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 8 May 2023 15:53:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=B2=E5=8A=9E=E5=88=97?= =?UTF-8?q?=E8=A1=A8--=E7=BB=88=E6=AD=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- anrui-system-ui/src/views/flow/doneList.vue | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/anrui-system-ui/src/views/flow/doneList.vue b/anrui-system-ui/src/views/flow/doneList.vue index 872baca62a..66b848af08 100644 --- a/anrui-system-ui/src/views/flow/doneList.vue +++ b/anrui-system-ui/src/views/flow/doneList.vue @@ -149,6 +149,7 @@ import { getList, selectUrl, readXml, getFlowViewer, breakProcess, commentSave, import { flowRecord } from '@/api/workflow/finished' import { loginDetails } from '@/api/user' import upload from '@/components/uploadFile/upload' +import axios from 'axios' export default { name: '', @@ -203,7 +204,8 @@ export default { taskId: '', orgSidPath: '', taskDefKey: '', - userSid: '' + userSid: '', + stopUrl: '' }, selectUrl_list: { proc_def_id: '', // 流程定义id @@ -350,6 +352,7 @@ export default { this.dialogList.taskId = row.taskId this.dialogList.taskDefKey = row.taskDefKey this.dialogList.userSid = window.sessionStorage.getItem('userSid') + this.dialogList.stopUrl = row.stopUrl }, handleComment() { this.commentVisible = true @@ -395,13 +398,25 @@ export default { cancelButtonText: '取消', type: 'warning' }).then(() => { - breakProcess(this.dialogList).then((resp) => { - if (resp.success) { + axios({ + method: 'post', + url: 'api' + this.dialogList.stopUrl, + data: this.dialogList, + headers: { 'token': getStorage() } + }).then((res) => { + if (res.successs) { this.breakProcessVisible = false this.$message({ showClose: true, type: 'success', message: '操作成功' }) this.getList() } }) + // breakProcess(this.dialogList).then((resp) => { + // if (resp.success) { + // this.breakProcessVisible = false + // this.$message({ showClose: true, type: 'success', message: '操作成功' }) + // this.getList() + // } + // }) }) }, /** 流程流转记录 */