Commit 43236cd6 authored by “lixuyan”'s avatar “lixuyan”

修改已办任务

parent 79fc2568
......@@ -269,9 +269,11 @@ export default {
},
addData(data, totalElements) {
data.forEach((item) => {
this.taskList.push({
...item
})
if (item.taskCount > 0) {
this.taskList.push({
...item
})
}
})
this.pagination.total = totalElements
},
......@@ -304,18 +306,30 @@ export default {
if (item.type === 'FitOut' || item.type === 'CheckOut' || item.type === 'DMIR' || item.type === 'Dispatch') {
this.goModule(item)
} else {
this.$router.push({
path: '/dee-task-center/workflow/task-center/home',
query: {
DAO: '单个签审',
title: '任务中心',
processDefKey: item.procDefKey,
taskDefinitionKey: item.taskKey,
type: this.type
}
if (item.taskType === '装配任务' || item.taskType === '检验任务') {
this.$router.push({
path: '/dee-mes/completed-tasks',
query: {
title: item.taskType,
showMenu: false,
showTag: 'false'
}
})
} else {
this.$router.push({
path: '/dee-task-center/workflow/task-center/home',
query: {
DAO: '单个签审',
title: '任务中心',
processDefKey: item.procDefKey,
taskDefinitionKey: item.taskKey,
type: this.type
}
})
}
// path: `/task-detail-${item.id}`,
// query: { id: item.id, insId: item.processInstanceId, title: item.title, showMenu: false }
})
}
},
async goModule(module) {
......
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