Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
de5ae4a0
Commit
de5ae4a0
authored
Apr 08, 2022
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加页签openPage支持传递参数
parent
d9108881
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ruoyi-ui/src/plugins/tab.js
ruoyi-ui/src/plugins/tab.js
+2
-2
ruoyi-ui/src/views/tool/gen/index.vue
ruoyi-ui/src/views/tool/gen/index.vue
+3
-1
No files found.
ruoyi-ui/src/plugins/tab.js
View file @
de5ae4a0
...
@@ -55,10 +55,10 @@ export default {
...
@@ -55,10 +55,10 @@ export default {
return
store
.
dispatch
(
'
tagsView/delOthersViews
'
,
obj
||
router
.
currentRoute
);
return
store
.
dispatch
(
'
tagsView/delOthersViews
'
,
obj
||
router
.
currentRoute
);
},
},
// 添加tab页签
// 添加tab页签
openPage
(
title
,
url
)
{
openPage
(
title
,
url
,
params
)
{
var
obj
=
{
path
:
url
,
meta
:
{
title
:
title
}
}
var
obj
=
{
path
:
url
,
meta
:
{
title
:
title
}
}
store
.
dispatch
(
'
tagsView/addView
'
,
obj
);
store
.
dispatch
(
'
tagsView/addView
'
,
obj
);
return
router
.
push
(
url
);
return
router
.
push
(
{
path
:
url
,
query
:
params
}
);
},
},
// 修改tab页签
// 修改tab页签
updatePage
(
obj
)
{
updatePage
(
obj
)
{
...
...
ruoyi-ui/src/views/tool/gen/index.vue
View file @
de5ae4a0
...
@@ -318,7 +318,9 @@ export default {
...
@@ -318,7 +318,9 @@ export default {
/** 修改按钮操作 */
/** 修改按钮操作 */
handleEditTable
(
row
)
{
handleEditTable
(
row
)
{
const
tableId
=
row
.
tableId
||
this
.
ids
[
0
];
const
tableId
=
row
.
tableId
||
this
.
ids
[
0
];
this
.
$router
.
push
({
path
:
'
/tool/gen-edit/index/
'
+
tableId
,
query
:
{
pageNum
:
this
.
queryParams
.
pageNum
}
});
const
tableName
=
row
.
tableName
||
this
.
tableNames
[
0
];
const
params
=
{
pageNum
:
this
.
queryParams
.
pageNum
};
this
.
$tab
.
openPage
(
"
修改[
"
+
tableName
+
"
]生成配置
"
,
'
/tool/gen-edit/index/
'
+
tableId
,
params
);
},
},
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment