diff --git a/ruoyi-ui/src/views/workflow/work/claim.vue b/ruoyi-ui/src/views/workflow/work/claim.vue index f8ea5d95..06e722da 100644 --- a/ruoyi-ui/src/views/workflow/work/claim.vue +++ b/ruoyi-ui/src/views/workflow/work/claim.vue @@ -100,7 +100,7 @@ export default { rules: {} }; }, - created() { + activated() { this.getList(); }, methods: { @@ -127,7 +127,6 @@ export default { handleClaim(row) { claimTask({taskId: row.taskId}).then(response => { this.$modal.msgSuccess(response.msg); - this.getList(); this.$router.push({ path: '/work/todo' }) diff --git a/ruoyi-ui/src/views/workflow/work/detail.vue b/ruoyi-ui/src/views/workflow/work/detail.vue index 36d9d29c..1c148a43 100644 --- a/ruoyi-ui/src/views/workflow/work/detail.vue +++ b/ruoyi-ui/src/views/workflow/work/detail.vue @@ -512,8 +512,8 @@ export default { /** 返回页面 */ goBack() { // 关闭当前标签页并返回上个页面 - this.$store.dispatch("tagsView/delView", this.$route); - this.$router.go(-1) + this.$tab.closePage(this.$route) + this.$router.back() }, /** 接收子组件传的值 */ getData(data) { diff --git a/ruoyi-ui/src/views/workflow/work/finished.vue b/ruoyi-ui/src/views/workflow/work/finished.vue index cad368f7..487bb269 100644 --- a/ruoyi-ui/src/views/workflow/work/finished.vue +++ b/ruoyi-ui/src/views/workflow/work/finished.vue @@ -131,7 +131,7 @@ export default { } }; }, - created() { + activated() { this.getList(); }, methods: { diff --git a/ruoyi-ui/src/views/workflow/work/own.vue b/ruoyi-ui/src/views/workflow/work/own.vue index 343a3bec..e5efd064 100644 --- a/ruoyi-ui/src/views/workflow/work/own.vue +++ b/ruoyi-ui/src/views/workflow/work/own.vue @@ -160,6 +160,8 @@ export default { }, created() { this.getCategoryList(); + }, + activated() { this.getList(); }, methods: { @@ -225,15 +227,16 @@ export default { }, /** 流程流转记录 */ handleFlowRecord(row) { - console.log("row =========> ", row) - this.$router.push({ path: '/work/detail', + this.$router.push({ + path: '/work/detail', query: { definitionId: row.procDefId, procInsId: row.procInsId, deployId: row.deployId, taskId: row.taskId, finished: false - }}) + } + }) }, /** 删除按钮操作 */ handleDelete(row) { diff --git a/ruoyi-ui/src/views/workflow/work/todo.vue b/ruoyi-ui/src/views/workflow/work/todo.vue index aea7e206..49c32a21 100644 --- a/ruoyi-ui/src/views/workflow/work/todo.vue +++ b/ruoyi-ui/src/views/workflow/work/todo.vue @@ -121,7 +121,7 @@ export default { rules: {} }; }, - created() { + activated() { this.getList(); }, methods: {