From aef170f3747af544426db66af325f9ab83728350 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 20 一月 2025 13:35:21 +0800 Subject: [PATCH] update 优化 流程设计关闭后 跳转回打开的地方 --- src/views/workflow/processDefinition/index.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/workflow/processDefinition/index.vue b/src/views/workflow/processDefinition/index.vue index cd40266..9888892 100644 --- a/src/views/workflow/processDefinition/index.vue +++ b/src/views/workflow/processDefinition/index.vue @@ -56,7 +56,7 @@ <el-col :span="1.5"> <el-button type="warning" icon="Download" :disabled="single" @click="handleExportDef">瀵煎嚭</el-button> </el-col> - <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> + <right-toolbar v-model:show-search="showSearch" @query-table="handleQuery"></right-toolbar> </el-row> </template> <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick"> @@ -261,7 +261,7 @@ formPath: '' }); onMounted(() => { - handleQuery(); + getPageList(); getTreeselect(); }); @@ -324,6 +324,10 @@ }; //鍒嗛〉 const getPageList = async () => { + console.log(proxy.$route.query.activeName) + if (proxy.$route.query.activeName) { + activeName.value = proxy.$route.query.activeName; + } if (activeName.value === '0') { getList(); } else { @@ -430,7 +434,8 @@ path: `/workflow/design/index`, query: { definitionId: row.id, - disabled: false + disabled: false, + activeName: activeName.value } }); }; @@ -444,7 +449,8 @@ path: `/workflow/design/index`, query: { definitionId: row.id, - disabled: true + disabled: true, + activeName: activeName.value } }); }; -- Gitblit v1.9.3