Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-operation-4
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
达摩4.0重构
haoban-operation-4
Commits
deaa3c4e
Commit
deaa3c4e
authored
Aug 11, 2020
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:权限项页面跳转到操作项页面,打开对应的tab
parent
40d827fd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
menu-list.vue
src/views/permission/menu-config/menu-list.vue
+1
-1
operation-list.vue
src/views/permission/operation-list.vue
+5
-0
permission-list.vue
src/views/permission/permission-list.vue
+4
-2
No files found.
src/views/permission/menu-config/menu-list.vue
View file @
deaa3c4e
...
@@ -297,7 +297,7 @@ export default {
...
@@ -297,7 +297,7 @@ export default {
// 跳转到权限项列表页
// 跳转到权限项列表页
toPermissionList
(
menuData
)
{
toPermissionList
(
menuData
)
{
const
{
menuId
}
=
menuData
;
const
{
menuId
}
=
menuData
;
this
.
$router
.
push
(
`/permission-list?menuId=
${
menuId
}
`
)
this
.
$router
.
push
(
`/permission-list?menuId=
${
menuId
}
&appType=
${
this
.
appType
}
`
)
},
},
flatDataToTree
(
data
)
{
flatDataToTree
(
data
)
{
return
data
.
filter
(
el
=>
{
return
data
.
filter
(
el
=>
{
...
...
src/views/permission/operation-list.vue
View file @
deaa3c4e
...
@@ -25,6 +25,11 @@ export default {
...
@@ -25,6 +25,11 @@ export default {
return
{
return
{
activeName
:
'first'
activeName
:
'first'
}
}
},
created
()
{
const
{
type
}
=
this
.
$route
.
query
;
const
tabs
=
[
''
,
'first'
,
'second'
,
'third'
,
'fourth'
];
this
.
activeName
=
tabs
[
type
>
0
&&
type
<
5
?
type
:
1
]
;
}
}
}
}
</
script
>
</
script
>
...
...
src/views/permission/permission-list.vue
View file @
deaa3c4e
...
@@ -58,6 +58,7 @@ export default {
...
@@ -58,6 +58,7 @@ export default {
{
name
:
'权限项'
}
{
name
:
'权限项'
}
],
],
menuId
:
''
,
menuId
:
''
,
appType
:
''
,
// 操作项列表
// 操作项列表
operationList
:
[],
operationList
:
[],
// 权限项列表
// 权限项列表
...
@@ -77,11 +78,12 @@ export default {
...
@@ -77,11 +78,12 @@ export default {
}
}
},
},
created
()
{
created
()
{
const
{
menuId
}
=
this
.
$route
.
query
;
const
{
menuId
,
appType
}
=
this
.
$route
.
query
;
if
(
!
menuId
)
{
if
(
!
menuId
)
{
return
this
.
$router
.
go
(
-
1
);
return
this
.
$router
.
go
(
-
1
);
}
}
this
.
menuId
=
menuId
;
this
.
menuId
=
menuId
;
this
.
appType
=
appType
;
this
.
initData
();
this
.
initData
();
this
.
$emit
(
'updateBread'
,
this
.
bread
)
this
.
$emit
(
'updateBread'
,
this
.
bread
)
},
},
...
@@ -165,7 +167,7 @@ export default {
...
@@ -165,7 +167,7 @@ export default {
},
},
// 去操作项列表页
// 去操作项列表页
toOperationList
()
{
toOperationList
()
{
this
.
$router
.
push
(
'/operation-list'
);
this
.
$router
.
push
(
`/operation-list?type=
${
this
.
appType
}
`
);
}
}
}
}
}
}
...
...
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