From 0af197059fa3bd183280c1f155a77c0b800a2dff Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 6 Jul 2022 09:19:34 +0800 Subject: [PATCH] =?UTF-8?q?v3.8.3=20=E6=B7=BB=E5=8A=A0=E9=A1=B5=E7=AD=BEop?= =?UTF-8?q?enPage=E6=94=AF=E6=8C=81=E4=BC=A0=E9=80=92=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/plugins/tab.js | 4 ++-- yudao-ui-admin/src/views/infra/codegen/index.vue | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/yudao-ui-admin/src/plugins/tab.js b/yudao-ui-admin/src/plugins/tab.js index f5d7a3e0f..cade9f75c 100644 --- a/yudao-ui-admin/src/plugins/tab.js +++ b/yudao-ui-admin/src/plugins/tab.js @@ -55,10 +55,10 @@ export default { return store.dispatch('tagsView/delOthersViews', obj || router.currentRoute); }, // 添加tab页签 - openPage(title, url) { + openPage(title, url, params) { var obj = { path: url, meta: { title: title } } store.dispatch('tagsView/addView', obj); - return router.push(url); + return router.push({ path: url, query: params }); }, // 修改tab页签 updatePage(obj) { diff --git a/yudao-ui-admin/src/views/infra/codegen/index.vue b/yudao-ui-admin/src/views/infra/codegen/index.vue index 321a24d31..b33151b33 100644 --- a/yudao-ui-admin/src/views/infra/codegen/index.vue +++ b/yudao-ui-admin/src/views/infra/codegen/index.vue @@ -292,7 +292,9 @@ export default { /** 修改按钮操作 */ handleEditTable(row) { const tableId = row.id; - this.$router.push("/codegen/edit/" + tableId); + const tableName = row.tableName || this.tableNames[0]; + const params = { pageNum: this.queryParams.pageNum }; + this.$tab.openPage("修改[" + tableName + "]生成配置", '/codegen/edit/' + tableId, params); }, /** 删除按钮操作 */ handleDelete(row) {