|
|
@ -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() |
|
|
|
// } |
|
|
|
// }) |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** 流程流转记录 */ |
|
|
|