修改提交流程的传参

This commit is contained in:
qq787203167
2022-04-26 19:47:53 +08:00
parent 1d78fcbb68
commit 071bf00865
3 changed files with 14 additions and 9 deletions
@@ -166,12 +166,12 @@
},
methods: {
...mapGetters(['userInfo']),
terminationProcess() {
this.completeTask({ flag: 2 })
terminationProcess(handlingTime) {
this.completeTask({ flag: 2 },handlingTime)
},
submit() {
submit(handlingTime) {
this.$refs.examineInformationRef.submit((res) => {
this.completeTask(res)
this.completeTask(res,handlingTime)
})
},
queryTaskDetailByTask(callback) {
@@ -186,13 +186,14 @@
}
})
},
completeTask(value) {
completeTask(value,handlingTime) {
let json = Object.assign({}, this.queryBy, value)
let data = JSON.stringify(json).replace(/\"/g, '\'')
let query = {
userid: this.userInfo().id,
taskId: this.$route.query.taskId || this.$route.query.taskIds,
json: data
json: data,
handlingTime:handlingTime
}
postAction('/workFlow/completeTask', query).then((res) => {
if (res.success) {