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

Loading…
Cancel
Save