Commit f8190a39 authored by jingnan's avatar jingnan 👀

任务中心路由动态处理

parent 763a52fa
......@@ -330,10 +330,10 @@ export default {
this.$store.dispatch('app/closeSideBar', false)
} else {
this.$router.push({
path: '/dee-task-center/workflow/task-center/home',
path: `/dee-task-center/workflow/task-center/home/${item.taskKey}`,
query: {
DAO: '单个签审',
title: '任务中心',
title: item.taskType,
processDefKey: item.procDefKey,
taskDefinitionKey: item.taskKey,
type: this.type
......
......@@ -55,9 +55,9 @@ export default {
goInfo(item) {
this.clickTask = item
this.$router.push({
path: '/dee-task-center/workflow/task-center/home',
path: `/dee-task-center/workflow/task-center/home/${item.taskKey}`,
query: {
title: '任务中心',
title: item.taskType,
DAO: '批量签审',
processDefKey: item.procDefKey,
taskDefinitionKey: item.taskKey,
......
......@@ -54,7 +54,7 @@ export default {
this.processInstanceId = data && data.processInstanceId ? data.processInstanceId : ''
},
reload() {
if (this.$route.path === '/dee-task-center/workflow/task-center/home') {
if (this.$route.path.includes('/dee-task-center/workflow/task-center/home')) {
this.$refs.myTask.getTasks(1)
} else {
this.$store.dispatch('tagsView/delView', this.$route)
......
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