作者 RuoYi

添加页签openPage支持传递参数

@@ -55,10 +55,10 @@ export default { @@ -55,10 +55,10 @@ export default {
55 return store.dispatch('tagsView/delOthersViews', obj || router.currentRoute); 55 return store.dispatch('tagsView/delOthersViews', obj || router.currentRoute);
56 }, 56 },
57 // 添加tab页签 57 // 添加tab页签
58 - openPage(title, url) { 58 + openPage(title, url, params) {
59 var obj = { path: url, meta: { title: title } } 59 var obj = { path: url, meta: { title: title } }
60 store.dispatch('tagsView/addView', obj); 60 store.dispatch('tagsView/addView', obj);
61 - return router.push(url); 61 + return router.push({ path: url, query: params });
62 }, 62 },
63 // 修改tab页签 63 // 修改tab页签
64 updatePage(obj) { 64 updatePage(obj) {
@@ -318,7 +318,9 @@ export default { @@ -318,7 +318,9 @@ export default {
318 /** 修改按钮操作 */ 318 /** 修改按钮操作 */
319 handleEditTable(row) { 319 handleEditTable(row) {
320 const tableId = row.tableId || this.ids[0]; 320 const tableId = row.tableId || this.ids[0];
321 - this.$router.push({ path: '/tool/gen-edit/index/' + tableId, query: { pageNum: this.queryParams.pageNum } }); 321 + const tableName = row.tableName || this.tableNames[0];
  322 + const params = { pageNum: this.queryParams.pageNum };
  323 + this.$tab.openPage("修改[" + tableName + "]生成配置", '/tool/gen-edit/index/' + tableId, params);
322 }, 324 },
323 /** 删除按钮操作 */ 325 /** 删除按钮操作 */
324 handleDelete(row) { 326 handleDelete(row) {