File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ export default {
55
55
return store . dispatch ( 'tagsView/delOthersViews' , obj || router . currentRoute ) ;
56
56
} ,
57
57
// 添加tab页签
58
- openPage ( title , url ) {
58
+ openPage ( title , url , params ) {
59
59
var obj = { path : url , meta : { title : title } }
60
60
store . dispatch ( 'tagsView/addView' , obj ) ;
61
- return router . push ( url ) ;
61
+ return router . push ( { path : url , query : params } ) ;
62
62
} ,
63
63
// 修改tab页签
64
64
updatePage ( obj ) {
Original file line number Diff line number Diff line change @@ -292,7 +292,9 @@ export default {
292
292
/** 修改按钮操作 */
293
293
handleEditTable (row ) {
294
294
const tableId = row .id ;
295
- this .$router .push (" /codegen/edit/" + tableId);
295
+ const tableName = row .tableName || this .tableNames [0 ];
296
+ const params = { pageNum: this .queryParams .pageNum };
297
+ this .$tab .openPage (" 修改[" + tableName + " ]生成配置" , ' /codegen/edit/' + tableId, params);
296
298
},
297
299
/** 删除按钮操作 */
298
300
handleDelete (row ) {
You can’t perform that action at this time.
0 commit comments