|
@@ -14,113 +14,120 @@ const routes = [
|
|
{
|
|
{
|
|
path: '/',
|
|
path: '/',
|
|
name: 'index',
|
|
name: 'index',
|
|
- component: () => import('./views/index.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/auto',
|
|
|
|
- name: 'auto',
|
|
|
|
- component: () => import('./views/autoLogin.vue')
|
|
|
|
- },
|
|
|
|
- // {
|
|
|
|
- // path: '*',
|
|
|
|
- // component: () => import('./views/error.vue')
|
|
|
|
- // },
|
|
|
|
- {
|
|
|
|
- path: '/sales/partnerList/partnerDetail',
|
|
|
|
- name: 'partnerDetail',
|
|
|
|
- component: () => import('./views/sales/partnerDetail.vue'),
|
|
|
|
- alias: ['/sales/examineList/examineDetail']
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/sales/withdrawList/withdrawDetail',
|
|
|
|
- name: 'withdrawDetail',
|
|
|
|
- alias: '/sales/settleList/settleDetail',
|
|
|
|
- component: () => import('./views/sales/withdrawDetail.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/sales/distribution/poster',
|
|
|
|
- name: 'poster',
|
|
|
|
- component: () => import('./views/sales/codePoster.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/sales/keywords/setting/list',
|
|
|
|
- name: 'keywordsSettingList',
|
|
|
|
- component: () => import('./views/sales/keywordsSettingList.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/sales/keywords/setting/edit',
|
|
|
|
- name: 'keywordsSettingEdit',
|
|
|
|
- component: () => import('./views/sales/keywordsSettingEdit.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/order/orderList/orderDetail',
|
|
|
|
- name: 'orderDetail',
|
|
|
|
- component: () => import('./views/order/orderDetail.vue')
|
|
|
|
- },
|
|
|
|
- /*{
|
|
|
|
- path: '/order/salePersonSupple/salePersonDetail',
|
|
|
|
- name: 'orderDetail',
|
|
|
|
- component: () => import('./views/order/components/salePersonDetail.vue')
|
|
|
|
- },*/
|
|
|
|
- {
|
|
|
|
- path: '/order/helpUserOrders/oderHelpDetail',
|
|
|
|
- name: 'helpOrdersDetail',
|
|
|
|
- component: () => import('./views/order/oderHelpDetail.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/userManage/userList/userDetail',
|
|
|
|
- name: 'userDetail',
|
|
|
|
- component: () => import('./views/userManage/userDetail.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/userManage/instiAudit/detail',
|
|
|
|
- name: 'instiAuditDetail',
|
|
|
|
- component: () => import('./views/userManage/instiAuditDetail.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/msgCollect/inforAudit/detail',
|
|
|
|
- name: 'inforAuditDetail',
|
|
|
|
- component: () => import('./views/msgCollect/inforAuditDetail.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/userManage/instiManage/detail',
|
|
|
|
- name: 'instiManageDetail',
|
|
|
|
- component: () => import('./views/userManage/instiManageDetail.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/boardMsg/inforList/inforDetail',
|
|
|
|
- name: 'inforDetail',
|
|
|
|
- component: () => import('./views/boardMsg/inforDetail.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/dataManage/exportRecord/detail',
|
|
|
|
- name: 'detail',
|
|
|
|
- component: () => import('./views/dataManage/detail.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/msgManage/sendDetail',
|
|
|
|
- name: 'sendDetail',
|
|
|
|
- component: () => import('./views/msgManage/sendDetail.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/msgManage/boardManage/detail',
|
|
|
|
- name: 'boardDetail',
|
|
|
|
- component: () => import('./views/msgManage/boardDetail.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/outServer/*',
|
|
|
|
- name: 'outServer',
|
|
|
|
- component: () => import('./views/outServer/outServer.vue')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/huiju/wechatList',
|
|
|
|
- name: 'wechatList',
|
|
|
|
- component: () => import('./views/huiju/wechatList.vue'),
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/huiju/wechatEdit',
|
|
|
|
- name: 'wechatEdit',
|
|
|
|
- component: () => import('./views/huiju/wechatEdit.vue'),
|
|
|
|
|
|
+ component: () => import('./views/index.vue'),
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ path: '/auto',
|
|
|
|
+ name: 'auto',
|
|
|
|
+ component: () => import('./views/autoLogin.vue')
|
|
|
|
+ },
|
|
|
|
+ // {
|
|
|
|
+ // path: '*',
|
|
|
|
+ // component: () => import('./views/error.vue')
|
|
|
|
+ // },
|
|
|
|
+ {
|
|
|
|
+ path: '/sales/partnerList/partnerDetail',
|
|
|
|
+ name: 'partnerDetail',
|
|
|
|
+ component: () => import('./views/sales/partnerDetail.vue'),
|
|
|
|
+ alias: ['/sales/examineList/examineDetail']
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/sales/withdrawList/withdrawDetail',
|
|
|
|
+ name: 'withdrawDetail',
|
|
|
|
+ alias: '/sales/settleList/settleDetail',
|
|
|
|
+ component: () => import('./views/sales/withdrawDetail.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/sales/distribution/poster',
|
|
|
|
+ name: 'poster',
|
|
|
|
+ component: () => import('./views/sales/codePoster.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/sales/keywords/setting/list',
|
|
|
|
+ name: 'keywordsSettingList',
|
|
|
|
+ component: () => import('./views/sales/keywordsSettingList.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/sales/keywords/setting/edit',
|
|
|
|
+ name: 'keywordsSettingEdit',
|
|
|
|
+ component: () => import('./views/sales/keywordsSettingEdit.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/order/orderList/orderDetail',
|
|
|
|
+ name: 'orderDetail',
|
|
|
|
+ component: () => import('./views/order/orderDetail.vue')
|
|
|
|
+ },
|
|
|
|
+ /*{
|
|
|
|
+ path: '/order/salePersonSupple/salePersonDetail',
|
|
|
|
+ name: 'orderDetail',
|
|
|
|
+ component: () => import('./views/order/components/salePersonDetail.vue')
|
|
|
|
+ },*/
|
|
|
|
+ {
|
|
|
|
+ path: '/order/helpUserOrders/oderHelpDetail',
|
|
|
|
+ name: 'helpOrdersDetail',
|
|
|
|
+ component: () => import('./views/order/oderHelpDetail.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/userManage/userList/userDetail',
|
|
|
|
+ name: 'userDetail',
|
|
|
|
+ component: () => import('./views/userManage/userDetail.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/userManage/instiAudit/detail',
|
|
|
|
+ name: 'instiAuditDetail',
|
|
|
|
+ component: () => import('./views/userManage/instiAuditDetail.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/msgCollect/inforAudit/detail',
|
|
|
|
+ name: 'inforAuditDetail',
|
|
|
|
+ component: () => import('./views/msgCollect/inforAuditDetail.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/userManage/instiManage/detail',
|
|
|
|
+ name: 'instiManageDetail',
|
|
|
|
+ component: () => import('./views/userManage/instiManageDetail.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/boardMsg/inforList/inforDetail',
|
|
|
|
+ name: 'inforDetail',
|
|
|
|
+ component: () => import('./views/boardMsg/inforDetail.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/dataManage/exportRecord/detail',
|
|
|
|
+ name: 'detail',
|
|
|
|
+ component: () => import('./views/dataManage/detail.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/msgManage/sendDetail',
|
|
|
|
+ name: 'sendDetail',
|
|
|
|
+ component: () => import('./views/msgManage/sendDetail.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/msgManage/boardManage/detail',
|
|
|
|
+ name: 'boardDetail',
|
|
|
|
+ component: () => import('./views/msgManage/boardDetail.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/outServer/*',
|
|
|
|
+ name: 'outServer',
|
|
|
|
+ component: () => import('./views/outServer/outServer.vue')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/huiju/wechatList',
|
|
|
|
+ name: 'wechatList',
|
|
|
|
+ component: () => import('./views/huiju/wechatList.vue'),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/huiju/wechatEdit',
|
|
|
|
+ name: 'wechatEdit',
|
|
|
|
+ component: () => import('./views/huiju/wechatEdit.vue'),
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/create-order',
|
|
|
|
+ name: 'create-order',
|
|
|
|
+ component: () => import('./views/create-order/index.vue')
|
|
},
|
|
},
|
|
];
|
|
];
|
|
|
|
|
|
@@ -136,8 +143,11 @@ routeComponent.keys().forEach(fileName => {
|
|
if (fileName.indexOf('components/') !== -1 || fileName === "index") {
|
|
if (fileName.indexOf('components/') !== -1 || fileName === "index") {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if (fileName.includes('create-order') || fileName.startsWith('page-')) {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
const path = '/' + trim(fileName.replace(/^\.\/(.*)\.\w+$/, '$1'), '/', 'left');
|
|
const path = '/' + trim(fileName.replace(/^\.\/(.*)\.\w+$/, '$1'), '/', 'left');
|
|
- routes.push({
|
|
|
|
|
|
+ routes[0].children.push({
|
|
path: path,
|
|
path: path,
|
|
name: path,
|
|
name: path,
|
|
component: routeComponent(fileName).default
|
|
component: routeComponent(fileName).default
|