Commit dacbea31 authored by Gakki's avatar Gakki

循环documents路由

parent 1fb1857f
...@@ -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
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment