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
0bb52ebe
Commit
0bb52ebe
authored
Aug 11, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化权限菜单
parent
3d36203a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
24 deletions
+33
-24
src/pages/data-analysis/data-analysis.vue
src/pages/data-analysis/data-analysis.vue
+33
-24
No files found.
src/pages/data-analysis/data-analysis.vue
View file @
0bb52ebe
...
...
@@ -17,50 +17,59 @@ import sideNavBar from "@/components/side-nav-bar";
export
default
{
components
:
{
sideNavBar
sideNavBar
,
},
data
:
()
=>
({
userNav
:
[
{
name
:
"
服务分析
"
,
path
:
`/data_analysis/my_service`
path
:
`/data_analysis/my_service`
,
},
{
name
:
"
应用分析
"
,
path
:
`/data_analysis/my_application`
path
:
`/data_analysis/my_application`
,
},
// {
// name: "组织服务数据分析",
// path: `/data_analysis/org_service`
// },
// {
// name: "组织应用数据分析",
// path: `/data_analysis/org_application`
// },
// {
// name: "运行概况-组织",
// path: `/data_analysis/operation_overview`
// },
// {
// name: "服务管控-组织",
// path: `/data_analysis/service_control`
// }
],
navList
:
[]
userNav1
:
[
{
name
:
"
组织服务数据分析
"
,
path
:
`/data_analysis/org_service`
,
},
{
name
:
"
组织应用数据分析
"
,
path
:
`/data_analysis/org_application`
,
},
{
name
:
"
运行概况-组织
"
,
path
:
`/data_analysis/operation_overview`
,
},
{
name
:
"
服务管控-组织
"
,
path
:
`/data_analysis/service_control`
,
},
],
userNav1
:
[],
navList
:
[],
}),
watch
:
{
"
$route.fullPath
"
(
path
)
{
this
.
initNavList
();
}
}
,
},
methods
:
{
initNavList
()
{
this
.
navList
=
this
.
userNav
;
}
if
(
this
.
$store
.
state
.
role
==
0
)
{
this
.
navList
=
this
.
userNav
;
}
else
if
(
this
.
$store
.
state
.
role
==
1
)
{
this
.
navList
=
this
.
userNav1
;
}
else
if
(
this
.
$store
.
state
.
role
==
2
)
{
this
.
navList
=
this
.
userNav2
;
}
},
},
mounted
()
{
this
.
initNavList
();
}
}
,
};
</
script
>
...
...
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