Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
video-monitoring
Project
Project
Details
Activity
Releases
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
刘怀志
video-monitoring
Commits
220ee3d1
Commit
220ee3d1
authored
Aug 02, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对普通用户隐藏员工信息
parent
04b4b578
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
index.vue
src/components/TopNav/index.vue
+4
-0
No files found.
src/components/TopNav/index.vue
View file @
220ee3d1
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
margin-left: 1px;
margin-left: 1px;
"
"
index=
"/employee/employee"
index=
"/employee/employee"
v-if=
"roles[0] === 'admin'"
>
>
<i
style=
"width: 10px; height: 10px; margin-top: -12px"
></i>
<i
style=
"width: 10px; height: 10px; margin-top: -12px"
></i>
员工信息
员工信息
...
@@ -101,6 +102,7 @@ export default {
...
@@ -101,6 +102,7 @@ export default {
components
:
{
Menu
},
components
:
{
Menu
},
data
()
{
data
()
{
return
{
return
{
roles
:
[],
backTag
:
false
,
backTag
:
false
,
newTopNev
:
[
newTopNev
:
[
{
{
...
@@ -197,6 +199,8 @@ export default {
...
@@ -197,6 +199,8 @@ export default {
this
.
currentIndex
=
this
.
$route
.
path
;
this
.
currentIndex
=
this
.
$route
.
path
;
this
.
$store
.
dispatch
(
"app/toggleSideBarHide"
,
true
);
this
.
$store
.
dispatch
(
"app/toggleSideBarHide"
,
true
);
this
.
setVisibleNumber
();
this
.
setVisibleNumber
();
this
.
roles
=
this
.
$store
.
getters
.
roles
;
},
},
created
()
{
created
()
{
this
.
getinfo
();
this
.
getinfo
();
...
...
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