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
dacbea31
Commit
dacbea31
authored
Mar 12, 2021
by
Gakki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
循环documents路由
parent
1fb1857f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
77 deletions
+14
-77
getMicRouters.js
src/router/getMicRouters.js
+14
-14
xuhuiRoutes.json
src/router/xuhuiRoutes.json
+0
-63
No files found.
src/router/getMicRouters.js
View file @
dacbea31
...
@@ -48,7 +48,7 @@ async function GetRoutes(router) {
...
@@ -48,7 +48,7 @@ async function GetRoutes(router) {
break
break
default
:
// 当前仅可使用pudong / xuhui-sit/uat进行打包
default
:
// 当前仅可使用pudong / xuhui-sit/uat进行打包
MicRouters
=
pudong
MicRouters
=
xuhui
break
break
}
}
...
@@ -101,19 +101,19 @@ async function GetRoutes(router) {
...
@@ -101,19 +101,19 @@ async function GetRoutes(router) {
console
.
log
(
router
)
console
.
log
(
router
)
//
for(let key in documents) {
for
(
let
key
in
documents
)
{
//
for (let i = 0; i < documents[key].length; i++) {
for
(
let
i
=
0
;
i
<
documents
[
key
].
length
;
i
++
)
{
//
let firstRouter = Object.assign({}, documents[key][i])
let
firstRouter
=
Object
.
assign
({},
documents
[
key
][
i
])
//
if (
if
(
//
!!firstRouter.meta.openMode &&
!!
firstRouter
.
meta
.
openMode
&&
//
firstRouter.meta.openMode == 'outsite'
firstRouter
.
meta
.
openMode
==
'outsite'
//
) {
)
{
//
firstRouter.component = TipsOutsite
firstRouter
.
component
=
TipsOutsite
//
}
}
//
parent.children.push(Object.assign({}, firstRouter))
parent
.
children
.
push
(
Object
.
assign
({},
firstRouter
))
//
router.addRoutes([ parent ])
router
.
addRoutes
([
parent
])
//
}
}
//
}
}
}
}
export
default
GetRoutes
export
default
GetRoutes
src/router/xuhuiRoutes.json
View file @
dacbea31
...
@@ -17,29 +17,6 @@
...
@@ -17,29 +17,6 @@
}
}
]
]
},
},
{
"path"
:
"/order/month"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"检查单"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/order/month/monthList"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"房办月查"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/order/month/monthList/monthListSect"
,
"name"
:
"monthListSect"
,
"meta"
:
{
"title"
:
"房办月查小区列表"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/order/month/monthList/monthListSect/monthInfo"
,
"name"
:
"monthInfo"
,
"meta"
:
{
"title"
:
"检查详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
}
]
},
{
{
"path"
:
"/order/checkBuilding"
,
"name"
:
"checkBuilding"
,
"path"
:
"/order/checkBuilding"
,
"name"
:
"checkBuilding"
,
"meta"
:
{
"title"
:
"2020年勘验门牌幢"
,
"menuPath"
:
false
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
false
},
"meta"
:
{
"title"
:
"2020年勘验门牌幢"
,
"menuPath"
:
false
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
false
},
...
@@ -49,46 +26,6 @@
...
@@ -49,46 +26,6 @@
"meta"
:
{
"title"
:
"勘验门牌幢列表"
,
"menuPath"
:
false
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
false
}
"meta"
:
{
"title"
:
"勘验门牌幢列表"
,
"menuPath"
:
false
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
false
}
}
}
]
]
},
{
"path"
:
"/question/repair"
,
"name"
:
"repairList"
,
"meta"
:
{
"title"
:
"应急报修"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:[
{
"path"
:
"/question/repair/repairList"
,
"name"
:
"repairList"
,
"meta"
:
{
"title"
:
"应急报修列表"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/question/repair/repairInfo"
,
"name"
:
"repairInfo"
,
"meta"
:
{
"title"
:
"报修详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
},
{
"path"
:
"/question/tousu"
,
"name"
:
"tousu"
,
"meta"
:
{
"title"
:
"投诉信息"
,
"menuPath"
:
true
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
true
},
"children"
:
[
{
"path"
:
"/question/tousu/tousuQuestion"
,
"name"
:
"tousuQuestion"
,
"meta"
:
{
"title"
:
"投诉问题排行"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:[
{
"path"
:
"/question/tousu/tousuQuestion/questionInfo"
,
"name"
:
"questionInfo"
,
"meta"
:
{
"title"
:
"投诉问题列表"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/question/tousu/tousuQuestion/tousuDetails"
,
"name"
:
"tousuDetails"
,
"meta"
:
{
"title"
:
"投诉问题详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/question/tousu/tousuDensity"
,
"name"
:
"tousuDensity"
,
"meta"
:
{
"title"
:
"投诉密度排行"
,
"menuPath"
:
true
,
"hideInBread"
:
false
}
}
]
}
}
]
]
}
}
\ No newline at end of file
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