Browse Source

修改已办列表--终止接口

master
yunuo970428 2 years ago
parent
commit
1ddfee6c0c
  1. 21
      anrui-system-ui/src/views/flow/doneList.vue

21
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 { flowRecord } from '@/api/workflow/finished'
import { loginDetails } from '@/api/user' import { loginDetails } from '@/api/user'
import upload from '@/components/uploadFile/upload' import upload from '@/components/uploadFile/upload'
import axios from 'axios'
export default { export default {
name: '', name: '',
@ -203,7 +204,8 @@ export default {
taskId: '', taskId: '',
orgSidPath: '', orgSidPath: '',
taskDefKey: '', taskDefKey: '',
userSid: '' userSid: '',
stopUrl: ''
}, },
selectUrl_list: { selectUrl_list: {
proc_def_id: '', // id proc_def_id: '', // id
@ -350,6 +352,7 @@ export default {
this.dialogList.taskId = row.taskId this.dialogList.taskId = row.taskId
this.dialogList.taskDefKey = row.taskDefKey this.dialogList.taskDefKey = row.taskDefKey
this.dialogList.userSid = window.sessionStorage.getItem('userSid') this.dialogList.userSid = window.sessionStorage.getItem('userSid')
this.dialogList.stopUrl = row.stopUrl
}, },
handleComment() { handleComment() {
this.commentVisible = true this.commentVisible = true
@ -395,13 +398,25 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
breakProcess(this.dialogList).then((resp) => { axios({
if (resp.success) { method: 'post',
url: 'api' + this.dialogList.stopUrl,
data: this.dialogList,
headers: { 'token': getStorage() }
}).then((res) => {
if (res.successs) {
this.breakProcessVisible = false this.breakProcessVisible = false
this.$message({ showClose: true, type: 'success', message: '操作成功' }) this.$message({ showClose: true, type: 'success', message: '操作成功' })
this.getList() this.getList()
} }
}) })
// breakProcess(this.dialogList).then((resp) => {
// if (resp.success) {
// this.breakProcessVisible = false
// this.$message({ showClose: true, type: 'success', message: '' })
// this.getList()
// }
// })
}) })
}, },
/** 流程流转记录 */ /** 流程流转记录 */

Loading…
Cancel
Save