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

修改已办任务

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