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
40d827fd
Commit
40d827fd
authored
Aug 11, 2020
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fix:跳转到操作项页面打开相应的tab"
This reverts commit
82c54a0a
.
parent
82c54a0a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
menu-list.vue
src/views/permission/menu-config/menu-list.vue
+1
-1
operation-list.vue
src/views/permission/operation-list.vue
+0
-5
permission-list.vue
src/views/permission/permission-list.vue
+2
-4
No files found.
src/views/permission/menu-config/menu-list.vue
View file @
40d827fd
...
...
@@ -297,7 +297,7 @@ export default {
// 跳转到权限项列表页
toPermissionList
(
menuData
)
{
const
{
menuId
}
=
menuData
;
this
.
$router
.
push
(
`/permission-list?menuId=
${
menuId
}
&appType=
${
this
.
appType
}
`
)
this
.
$router
.
push
(
`/permission-list?menuId=
${
menuId
}
`
)
},
flatDataToTree
(
data
)
{
return
data
.
filter
(
el
=>
{
...
...
src/views/permission/operation-list.vue
View file @
40d827fd
...
...
@@ -25,11 +25,6 @@ export default {
return
{
activeName
:
'first'
}
},
created
()
{
const
{
type
}
=
this
.
$route
.
query
;
const
tabs
=
[
''
,
'first'
,
'second'
,
'third'
,
'fourth'
];
this
.
activeName
=
tabs
[
type
>
0
&&
type
<
5
?
type
:
1
]
;
}
}
</
script
>
...
...
src/views/permission/permission-list.vue
View file @
40d827fd
...
...
@@ -58,7 +58,6 @@ export default {
{
name
:
'权限项'
}
],
menuId
:
''
,
appType
:
''
,
// 操作项列表
operationList
:
[],
// 权限项列表
...
...
@@ -78,12 +77,11 @@ export default {
}
},
created
()
{
const
{
menuId
,
appType
}
=
this
.
$route
.
query
;
const
{
menuId
}
=
this
.
$route
.
query
;
if
(
!
menuId
)
{
return
this
.
$router
.
go
(
-
1
);
}
this
.
menuId
=
menuId
;
this
.
appType
=
appType
;
this
.
initData
();
this
.
$emit
(
'updateBread'
,
this
.
bread
)
},
...
...
@@ -167,7 +165,7 @@ export default {
},
// 去操作项列表页
toOperationList
()
{
this
.
$router
.
push
(
`/operation-list?type=
${
this
.
appType
}
`
);
this
.
$router
.
push
(
'/operation-list'
);
}
}
}
...
...
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