Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
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
gzga-jzapi
apaas-ui
Commits
026097db
Commit
026097db
authored
Jun 19, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限管理fixed
parent
4dd85925
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
src/pages/authority/authority.vue
src/pages/authority/authority.vue
+10
-5
No files found.
src/pages/authority/authority.vue
View file @
026097db
<
template
>
<
template
>
<div
class=
"fwgl_container"
>
<div
class=
"fwgl_container"
>
<side-nav-bar
<side-nav-bar
v-if=
"showNavbar"
title=
"权限管理"
title=
"权限管理"
:title-icon=
"require('@/assets/imgs/tool_quanxian.png')"
:title-icon=
"require('@/assets/imgs/tool_quanxian.png')"
:nav-list=
"navList"
:nav-list=
"navList"
...
@@ -39,6 +40,7 @@ export default {
...
@@ -39,6 +40,7 @@ export default {
},
},
],
],
navList
:
[],
navList
:
[],
showNavbar
:
false
,
}),
}),
watch
:
{
watch
:
{
"
$route.fullPath
"
(
path
)
{
"
$route.fullPath
"
(
path
)
{
...
@@ -57,17 +59,20 @@ export default {
...
@@ -57,17 +59,20 @@ export default {
const
userLevel
=
this
.
$store
.
getters
.
level
;
const
userLevel
=
this
.
$store
.
getters
.
level
;
if
(
userLevel
===
2
)
{
if
(
userLevel
==
0
)
{
this
.
initNavList
();
}
else
{
this
.
$message
({
this
.
$message
({
message
:
`您没有权限管理模块的权限.`
,
message
:
`您没有权限管理模块的权限.`
,
type
:
"
warning
"
,
type
:
"
warning
"
,
});
});
this
.
$router
.
push
(
`/index`
);
this
.
$router
.
push
(
`/index`
);
}
else
if
(
userLevel
==
1
)
{
this
.
$router
.
push
(
`/authority/organization/detail/
${
data
.
data
.
department_id
}
`
);
}
else
{
this
.
showNavbar
=
true
;
this
.
initNavList
();
}
}
}
else
{
console
.
log
(
data
.
errMsg
);
}
}
});
});
},
},
...
...
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