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

提交流程参数遗漏补上

parent 0075902c
...@@ -86,7 +86,11 @@ export default { ...@@ -86,7 +86,11 @@ export default {
handleOpinion: '', handleOpinion: '',
handleResult: '1' handleResult: '1'
}, },
tablePathData: [] tablePathData: [],
taskNode: {
procUnitHandlerId: '',
groupId: ''
}
} }
}, },
computed: { computed: {
...@@ -108,7 +112,6 @@ export default { ...@@ -108,7 +112,6 @@ export default {
console.log(res.data) console.log(res.data)
res.data.pyear += '' res.data.pyear += ''
this.conditions = { ...this.conditions, ...res.data } this.conditions = { ...this.conditions, ...res.data }
this.initCustome()
}) })
}, },
flowPath() { flowPath() {
...@@ -117,6 +120,7 @@ export default { ...@@ -117,6 +120,7 @@ export default {
if (res.data) { if (res.data) {
this.tablePathData = res.data.Rows this.tablePathData = res.data.Rows
this.stepActive = this.tablePathData.length this.stepActive = this.tablePathData.length
this.selectSelfTask(res.data.Rows)
} }
}) })
.catch(() => {}) .catch(() => {})
...@@ -124,8 +128,8 @@ export default { ...@@ -124,8 +128,8 @@ export default {
async submit(handleResult) { async submit(handleResult) {
this.conditions.handleResult = handleResult this.conditions.handleResult = handleResult
const params = JSON.parse(JSON.stringify(this.conditions)) const params = JSON.parse(JSON.stringify(this.conditions))
params.currentHandleId = '' params.currentHandleId = this.taskNode.procUnitHandlerId
params.currentHandleGroupId = '' params.currentHandleGroupId = this.taskNode.groupId
params.taskId = this.$route.query.taskId params.taskId = this.$route.query.taskId
if (this.conditions.id) { if (this.conditions.id) {
const res = await advance(params) const res = await advance(params)
...@@ -156,7 +160,16 @@ export default { ...@@ -156,7 +160,16 @@ export default {
Toast('下载异常') 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() {} onClickLeft() {}
} }
} }
......
...@@ -17,8 +17,8 @@ module.exports = { ...@@ -17,8 +17,8 @@ module.exports = {
devServer: { devServer: {
proxy: { proxy: {
'/huigou': { '/huigou': {
target: 'http://10.0.135.139', // target: 'http://10.0.135.139',
// target: 'http://10.2.7.85', target: 'http://10.2.7.85',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/huigou': '/crm-app' // 重写, '^/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