Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
常超
founder_vue
Commits
79508eb4
Commit
79508eb4
authored
Nov 30, 2023
by
yuhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改菜单bug
parent
2f3536b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
18 deletions
+20
-18
src/router/modules/index.js
+1
-1
src/views/rzcx/index.vue
+19
-17
No files found.
src/router/modules/index.js
View file @
79508eb4
...
...
@@ -386,7 +386,7 @@ export default [
}
},
{
path
:
"
/
ydsbsj"
,
path
:
"ydsbsj"
,
name
:
"ydsbsj"
,
meta
:
{
title
:
'移动运营管理'
,
...
...
src/views/rzcx/index.vue
View file @
79508eb4
...
...
@@ -4,16 +4,16 @@
<div
class=
"left"
>
<i
class=
"iconfont iconzidianmaxuanze"
></i><span>
运控管理
</span>
</div>
<div
class=
"left"
@
click=
"toDp"
style=
" cursor: pointer;"
>
<div
class=
"left"
@
click=
"toDp"
style=
" cursor: pointer;"
>
<i
class=
"iconfont icondapingzhongduan"
></i><span>
运控管理门户
</span>
</div>
</div>
<div
class=
"content"
>
<left-menu
:propLeftMenu=
"propLeftMenu"
@
changeSidebarIndex=
"changeSidebarIndex"
:sidebarItemName=
"sidebarItemName"
></left-menu>
<left-menu
:propLeftMenu=
"propLeftMenu"
@
changeSidebarIndex=
"changeSidebarIndex"
:sidebarItemName=
"sidebarItemName"
></left-menu>
<div
class=
"rightContent"
>
<router-view></router-view>
</div>
...
...
@@ -34,7 +34,7 @@ export default {
components
:
{
leftMenu
,
},
data
()
{
data
()
{
return
{
sidebarItemName
:
this
.
$route
.
name
,
headerTitle
:
rzcxHeaderTitle
,
...
...
@@ -43,13 +43,13 @@ export default {
};
},
methods
:
{
toDp
()
{
toDp
()
{
let
routeData
=
this
.
$router
.
resolve
({
path
:
"/ykgldpIndex"
,
});
window
.
open
(
routeData
.
href
,
"_blank"
);
},
changeSidebarIndex
(
index
,
item
)
{
changeSidebarIndex
(
index
,
item
)
{
debugger
if
(
index
.
indexOf
(
"-"
)
==
-
1
)
{
this
.
sidebarItemName
=
item
[
index
-
1
].
id
;
...
...
@@ -58,22 +58,24 @@ export default {
});
}
else
{
//子级的情况有-,如3-1
let
arr
=
index
.
split
(
"-"
);
if
(
arr
.
length
==
2
)
{
let
arr
=
index
.
split
(
"-"
);
if
(
arr
.
length
==
2
)
{
this
.
sidebarItemName
=
item
[
arr
[
0
]
-
1
].
children
[
arr
[
1
]
-
1
].
id
;
this
.
$router
.
push
({
name
:
item
[
arr
[
0
]
-
1
].
children
[
arr
[
1
]
-
1
].
id
,
path
:
item
[
arr
[
0
]
-
1
].
children
[
arr
[
1
]
-
1
].
id
,
query
:
{
'path'
:
item
[
arr
[
0
]
-
1
].
children
[
arr
[
1
]
-
1
].
label
},
});
}
else
{
}
else
{
this
.
sidebarItemName
=
item
[
arr
[
0
]
-
1
].
children
[
arr
[
1
]
-
1
].
children
[
arr
[
2
]
-
1
].
id
;
this
.
$router
.
push
({
name
:
item
[
arr
[
0
]
-
1
].
children
[
arr
[
1
]
-
1
].
children
[
arr
[
2
]
-
1
].
id
,
path
:
item
[
arr
[
0
]
-
1
].
children
[
arr
[
1
]
-
1
].
children
[
arr
[
2
]
-
1
].
id
,
query
:
{
'path'
:
item
[
arr
[
0
]
-
1
].
children
[
arr
[
1
]
-
1
].
children
[
arr
[
2
]
-
1
].
label
},
});
}
}
},
},
mounted
()
{
},
mounted
()
{
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
@@ -90,10 +92,10 @@ export default {
font-family
:
Source
Han
Sans
CN
;
font-weight
:
bold
;
color
:
#ffffff
;
span{
span
{
padding-left
:
12px
;
}
i
{
i
{
font-size
:
20px
;
}
}
...
...
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