Commit 25a18d57 authored by chuan.liu's avatar chuan.liu

提交流程参数遗漏补上

parent 0075902c
......@@ -86,7 +86,11 @@ export default {
handleOpinion: '',
handleResult: '1'
},
tablePathData: []
tablePathData: [],
taskNode: {
procUnitHandlerId: '',
groupId: ''
}
}
},
computed: {
......@@ -108,7 +112,6 @@ export default {
console.log(res.data)
res.data.pyear += ''
this.conditions = { ...this.conditions, ...res.data }
this.initCustome()
})
},
flowPath() {
......@@ -117,6 +120,7 @@ export default {
if (res.data) {
this.tablePathData = res.data.Rows
this.stepActive = this.tablePathData.length
this.selectSelfTask(res.data.Rows)
}
})
.catch(() => {})
......@@ -124,8 +128,8 @@ export default {
async submit(handleResult) {
this.conditions.handleResult = handleResult
const params = JSON.parse(JSON.stringify(this.conditions))
params.currentHandleId = ''
params.currentHandleGroupId = ''
params.currentHandleId = this.taskNode.procUnitHandlerId
params.currentHandleGroupId = this.taskNode.groupId
params.taskId = this.$route.query.taskId
if (this.conditions.id) {
const res = await advance(params)
......@@ -156,7 +160,16 @@ export default {
Toast('下载异常')
}
},
initCustome() {},
selectSelfTask(list) {
if (list.length === 0) return
const selfTask = list.find(item => {
return item.id === this.conditions.taskId
})
if (selfTask) {
this.taskNode = selfTask
}
},
onClickLeft() {}
}
}
......
......@@ -17,8 +17,8 @@ module.exports = {
devServer: {
proxy: {
'/huigou': {
target: 'http://10.0.135.139',
// target: 'http://10.2.7.85',
// target: 'http://10.0.135.139',
target: 'http://10.2.7.85',
changeOrigin: true,
pathRewrite: {
'^/huigou': '/crm-app' // 重写,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment