mirror of
https://github.com/yangzongzhuan/RuoYi-Vue3.git
synced 2025-06-06 18:36:31 +00:00
添加页签openPage支持传递参数
This commit is contained in:
parent
2f8a257efd
commit
2d0fc59fc7
@ -59,8 +59,10 @@ export default {
|
||||
return useTagsViewStore().delOthersViews(obj || router.currentRoute.value)
|
||||
},
|
||||
// 打开tab页签
|
||||
openPage(url) {
|
||||
return router.push(url)
|
||||
openPage(title, url, params) {
|
||||
const obj = { path: url, meta: { title: title } }
|
||||
useTagsViewStore().addView(obj)
|
||||
return router.push({ path: url, query: params })
|
||||
},
|
||||
// 修改tab页签
|
||||
updatePage(obj) {
|
||||
|
@ -288,7 +288,9 @@ function handleSortChange(column, prop, order) {
|
||||
/** 修改按钮操作 */
|
||||
function handleEditTable(row) {
|
||||
const tableId = row.tableId || ids.value[0]
|
||||
router.push({ path: "/tool/gen-edit/index/" + tableId, query: { pageNum: queryParams.value.pageNum } })
|
||||
const tableName = row.tableName || tableNames.value[0]
|
||||
const params = { pageNum: queryParams.value.pageNum }
|
||||
proxy.$tab.openPage("修改[" + tableName + "]生成配置", '/tool/gen-edit/index/' + tableId, params)
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
|
Loading…
Reference in New Issue
Block a user