Commit f8190a39 authored by jingnan's avatar jingnan 👀

任务中心路由动态处理

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