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
b24b1cfb
Commit
b24b1cfb
authored
Jun 18, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务管理及应用管理增加权限控制
parent
9df8960f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
4 deletions
+36
-4
src/App.vue
src/App.vue
+2
-2
src/pages/workbench/fwgl/fwglList.vue
src/pages/workbench/fwgl/fwglList.vue
+17
-1
src/pages/workbench/yygl/yyglList.vue
src/pages/workbench/yygl/yyglList.vue
+17
-1
No files found.
src/App.vue
View file @
b24b1cfb
...
@@ -16,9 +16,9 @@ export default {
...
@@ -16,9 +16,9 @@ export default {
getCurrentUser
()
{
getCurrentUser
()
{
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
if
(
data
.
success
==
1
)
{
console
.
log
(
"
---
user info
---
"
);
console
.
log
(
"
---
---
---
"
);
console
.
log
(
data
.
data
);
console
.
log
(
data
.
data
);
console
.
log
(
"
---
user info
---
"
);
console
.
log
(
"
---
---
---
"
);
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
}
else
{
}
else
{
...
...
src/pages/workbench/fwgl/fwglList.vue
View file @
b24b1cfb
...
@@ -1137,7 +1137,23 @@ export default {
...
@@ -1137,7 +1137,23 @@ export default {
this
.
level
=
parseInt
(
this
.
$route
.
params
.
level
);
this
.
level
=
parseInt
(
this
.
$route
.
params
.
level
);
this
.
type
=
parseInt
(
this
.
$route
.
params
.
type
);
this
.
type
=
parseInt
(
this
.
$route
.
params
.
type
);
this
.
initHeader
();
this
.
initHeader
();
this
.
initFilter
();
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
const
userLevel
=
this
.
$store
.
getters
.
level
;
if
(
userLevel
==
this
.
level
)
{
this
.
initFilter
();
}
else
{
console
.
log
(
"
用户没有当前页面的权限,即将跳转...
"
);
this
.
$router
.
push
(
`/fwgl/
${
userLevel
}
/
${
this
.
type
}
`
);
}
}
else
{
console
.
log
(
data
.
errMsg
);
}
});
},
},
};
};
</
script
>
</
script
>
...
...
src/pages/workbench/yygl/yyglList.vue
View file @
b24b1cfb
...
@@ -1362,7 +1362,23 @@ export default {
...
@@ -1362,7 +1362,23 @@ export default {
this
.
level
=
parseInt
(
this
.
$route
.
params
.
level
);
this
.
level
=
parseInt
(
this
.
$route
.
params
.
level
);
this
.
type
=
parseInt
(
this
.
$route
.
params
.
type
);
this
.
type
=
parseInt
(
this
.
$route
.
params
.
type
);
this
.
initHeader
();
this
.
initHeader
();
this
.
initFilter
();
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
const
userLevel
=
this
.
$store
.
getters
.
level
;
if
(
userLevel
==
this
.
level
)
{
this
.
initFilter
();
}
else
{
console
.
log
(
"
用户没有当前页面的权限,即将跳转...
"
);
this
.
$router
.
push
(
`/yygl/
${
userLevel
}
/
${
this
.
type
}
`
);
}
}
else
{
console
.
log
(
data
.
errMsg
);
}
});
},
},
};
};
</
script
>
</
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