Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
multiSystem
Project
Project
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
Yulun Yao
multiSystem
Commits
ba07c9e4
Commit
ba07c9e4
authored
Oct 23, 2020
by
Gakki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拓展列表判断
parent
49c652bb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
6 deletions
+39
-6
navbar.vue
src/components/Layout/navbar.vue
+15
-0
sidemenu.vue
src/components/Layout/sidemenu.vue
+21
-2
routes.js
src/router/routes.js
+3
-3
api.js
src/server/api.js
+0
-1
No files found.
src/components/Layout/navbar.vue
View file @
ba07c9e4
...
@@ -31,6 +31,21 @@ export default {
...
@@ -31,6 +31,21 @@ export default {
}
}
})
})
}
}
// const result = []
// const routeList = routes[0].children.slice(1)
// let isLoadExtendMenu = this.$cookie.get('customKeyEnable')
// if (routeList && routeList.length > 0) {
// for(let i = 0; i
<
routeList
.
length
;
i
++
)
{
// result.push(routeList[i])
// if (routeList[i].children && routeList[i].children.length > 0 && routeList[i].children.name == 'tbls') {
// // result.push(...route.children)
// console.log(JSON.stringify(routeList[i].children))
// } else {
// console.log(JSON.stringify(routeList[i].children))
// }
// }
// }
return
[{
path
:
'/portal-home'
,
name
:
'Home'
,
meta
:
{
title
:
'首页'
}},
...
result
]
return
[{
path
:
'/portal-home'
,
name
:
'Home'
,
meta
:
{
title
:
'首页'
}},
...
result
]
}
}
},
},
...
...
src/components/Layout/sidemenu.vue
View file @
ba07c9e4
...
@@ -56,16 +56,35 @@ export default {
...
@@ -56,16 +56,35 @@ export default {
},
},
mounted
(){
mounted
(){
let
menus
=
[]
let
menus
=
[]
let
tempmenu
=
[]
let
isLoadExtendMenu
=
this
.
$cookie
.
get
(
'customKeyEnable'
)
for
(
let
i
=
0
;
i
<
routes
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
routes
.
length
;
i
++
){
if
(
!!
routes
[
i
].
children
){
if
(
!!
routes
[
i
].
children
){
for
(
let
j
=
0
;
j
<
routes
[
i
].
children
.
length
;
j
++
){
for
(
let
j
=
0
;
j
<
routes
[
i
].
children
.
length
;
j
++
){
if
(
!!
routes
[
i
].
children
[
j
].
meta
.
menuIcon
){
if
(
!!
routes
[
i
].
children
[
j
].
meta
.
menuIcon
&&
routes
[
i
].
children
[
j
].
name
==
'systemManagement'
&&
isLoadExtendMenu
==
'false'
){
let
target
=
routes
[
i
].
children
[
j
].
children
if
(
target
.
length
>
0
)
{
for
(
let
k
=
0
;
k
<
target
.
length
;
k
++
)
{
if
(
target
[
k
].
name
==
'tbls'
)
{
if
(
isLoadExtendMenu
==
'true'
)
{
tempmenu
.
push
(
target
[
k
])
}
}
else
{
tempmenu
.
push
(
target
[
k
])
}
}
}
let
lusso
=
routes
[
i
].
children
[
j
]
lusso
.
children
=
[]
lusso
.
children
=
tempmenu
menus
.
push
(
lusso
)
}
else
if
(
!!
routes
[
i
].
children
[
j
].
meta
.
menuIcon
)
{
menus
.
push
(
routes
[
i
].
children
[
j
])
menus
.
push
(
routes
[
i
].
children
[
j
])
this
.
menus
=
menus
}
}
}
}
}
}
}
}
this
.
menus
=
menus
},
},
methods
:
{
methods
:
{
// 点击菜单,收起其他展开的菜单
// 点击菜单,收起其他展开的菜单
...
...
src/router/routes.js
View file @
ba07c9e4
...
@@ -39,9 +39,9 @@ const appRoutes = [
...
@@ -39,9 +39,9 @@ const appRoutes = [
children
:
[
children
:
[
{
// 系统信息配置
{
// 系统信息配置
path
:
'/systemManagement/sysInfoSetting'
,
name
:
'sysInfoSetting'
,
component
:
resolve
=>
require
([
'@/views/personal/sysInfoSetting'
],
resolve
),
//NonResidents,
path
:
'/systemManagement/sysInfoSetting'
,
name
:
'sysInfoSetting'
,
component
:
resolve
=>
require
([
'@/views/personal/sysInfoSetting'
],
resolve
),
//NonResidents,
meta
:
{
title
:
'系统信息配置'
,
menuPath
:
true
,
hideInBread
:
false
,
},
meta
:
{
title
:
'系统信息配置'
,
menuPath
:
true
,
menuIcon
:
'setting'
,
hideInBread
:
false
,
},
children
:
[
//
children: [
]
//
]
},
},
{
// 拓展信息管理
{
// 拓展信息管理
path
:
'/systemManagement/tbls'
,
name
:
'tbls'
,
component
:
resolve
=>
require
([
'@/views/houseData/tbls'
],
resolve
),
//Tbls,
path
:
'/systemManagement/tbls'
,
name
:
'tbls'
,
component
:
resolve
=>
require
([
'@/views/houseData/tbls'
],
resolve
),
//Tbls,
...
...
src/server/api.js
View file @
ba07c9e4
...
@@ -38,7 +38,6 @@ case 'xuhui-prod':
...
@@ -38,7 +38,6 @@ case 'xuhui-prod':
break
break
case
'huangpu-sit'
:
case
'huangpu-sit'
:
BASE_URL
=
'http://huangpu.hm.omniview.pro/api'
,
// 徐汇
BASE_URL
=
'http://huangpu.hm.omniview.pro/api'
,
// 徐汇
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
...
...
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