Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
office
haoban-3
Commits
a32926a3
Commit
a32926a3
authored
May 10, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 路由配置调整
parent
59ede12e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
145 deletions
+13
-145
index.js
src/router/index.js
+13
-145
No files found.
src/router/index.js
View file @
a32926a3
...
@@ -11,21 +11,6 @@ import Router from 'vue-router';
...
@@ -11,21 +11,6 @@ import Router from 'vue-router';
import
_import
from
'./_import.js'
;
import
_import
from
'./_import.js'
;
Vue
.
use
(
Router
);
Vue
.
use
(
Router
);
// const error403 = (r) => {
// import('views/errorPage/403.vue').then((module) => {
// r(module)
// })
// };
// const error404 = (r) => {
// import('views/errorPage/404.vue').then((module) => {
// r(module)
// })
// };
// const error500 = (r) => {
// import('views/errorPage/500.vue').then((module) => {
// r(module)
// })
// };
const
errorPage
=
r
=>
{
const
errorPage
=
r
=>
{
import
(
'views/errorPage/index.vue'
).
then
(
module
=>
{
import
(
'views/errorPage/index.vue'
).
then
(
module
=>
{
r
(
module
);
r
(
module
);
...
@@ -49,18 +34,13 @@ export const constantRouterMap = [
...
@@ -49,18 +34,13 @@ export const constantRouterMap = [
component
:
_import
(
'login'
,
'login-more'
)
component
:
_import
(
'login'
,
'login-more'
)
},
},
{
{
path
:
'/index'
,
path
:
'/'
,
name
:
'index'
,
// 取到菜单数据后,会将/index的路径加到routes中
component
:
_import
(
'index'
,
'index'
)
redirect
:
'/index'
,
},
component
:
()
=>
import
(
'@/components/layout/index.vue'
),
children
:
[
{
// 通讯录
// 通讯录
path
:
'/contacts'
,
{
name
:
'通讯录'
,
redirect
:
'contactsList'
,
component
:
_import
(
'business'
,
'index'
),
children
:
[{
path
:
'/contactsList'
,
path
:
'/contactsList'
,
name
:
'通讯录'
,
name
:
'通讯录'
,
component
:
_import
(
'business'
,
'contacts'
)
component
:
_import
(
'business'
,
'contacts'
)
...
@@ -94,17 +74,9 @@ export const constantRouterMap = [
...
@@ -94,17 +74,9 @@ export const constantRouterMap = [
path
:
'/merchantStoreList'
,
path
:
'/merchantStoreList'
,
name
:
'绑定门店列表'
,
name
:
'绑定门店列表'
,
component
:
_import
(
'business'
,
'storeList'
)
component
:
_import
(
'business'
,
'storeList'
)
}
]
},
},
{
// 企业设置
// 企业设置
path
:
'/enterprise'
,
{
name
:
'企业设置'
,
redirect
:
'enterpriseSet'
,
component
:
_import
(
'enterprise'
,
'index'
),
children
:
[{
path
:
'/enterpriseSet'
,
path
:
'/enterpriseSet'
,
name
:
'企业信息'
,
name
:
'企业信息'
,
component
:
_import
(
'enterprise'
,
'enterpriseSet'
)
component
:
_import
(
'enterprise'
,
'enterpriseSet'
)
...
@@ -139,13 +111,7 @@ export const constantRouterMap = [
...
@@ -139,13 +111,7 @@ export const constantRouterMap = [
name
:
'操作设置'
,
name
:
'操作设置'
,
component
:
_import
(
'setting'
,
'index'
)
component
:
_import
(
'setting'
,
'index'
)
},
},
{
// 审核中心
// 审核中心
path
:
'/reviewCenter'
,
name
:
'审核中心'
,
redirect
:
'/unreview'
,
component
:
_import
(
'reviewCenter'
,
'index'
),
children
:
[
{
{
path
:
'/unreview'
,
path
:
'/unreview'
,
name
:
'未审核'
,
name
:
'未审核'
,
...
@@ -160,18 +126,9 @@ export const constantRouterMap = [
...
@@ -160,18 +126,9 @@ export const constantRouterMap = [
path
:
'/reviewSet'
,
path
:
'/reviewSet'
,
name
:
'审核设置'
,
name
:
'审核设置'
,
component
:
_import
(
'reviewCenter'
,
'reviewSet'
)
component
:
_import
(
'reviewCenter'
,
'reviewSet'
)
}
]
}
]
},
},
// 销售线索
// 销售线索
{
{
path
:
'/salesleads'
,
name
:
'销售线索'
,
redirect
:
'trafficTaskSet'
,
component
:
_import
(
'salesleads'
,
'index'
),
children
:
[{
path
:
'/taskRecord'
,
path
:
'/taskRecord'
,
name
:
'话务任务记录'
,
name
:
'话务任务记录'
,
component
:
_import
(
'salesleads/trafficTask'
,
'taskRecord'
),
component
:
_import
(
'salesleads/trafficTask'
,
'taskRecord'
),
...
@@ -214,16 +171,9 @@ export const constantRouterMap = [
...
@@ -214,16 +171,9 @@ export const constantRouterMap = [
path
:
'/grTaskList'
,
// 群发任务-计划视图
path
:
'/grTaskList'
,
// 群发任务-计划视图
name
:
'计划视图'
,
name
:
'计划视图'
,
component
:
_import
(
'salesleads/groupSend'
,
'grTaskList'
)
component
:
_import
(
'salesleads/groupSend'
,
'grTaskList'
)
}
]
},
},
{
// 企业数据
// 企业数据
path
:
'/enterpriseData'
,
{
name
:
'企业数据'
,
redirect
:
'enterpriseUseData'
,
component
:
_import
(
'enterpriseData'
,
'index'
),
children
:
[{
path
:
'/enterpriseUseData'
,
path
:
'/enterpriseUseData'
,
name
:
'好办使用详情'
,
name
:
'好办使用详情'
,
component
:
_import
(
'enterpriseData'
,
'enterpriseUseData'
)
component
:
_import
(
'enterpriseData'
,
'enterpriseUseData'
)
...
@@ -242,30 +192,14 @@ export const constantRouterMap = [
...
@@ -242,30 +192,14 @@ export const constantRouterMap = [
path
:
'/areaLoginDetail'
,
path
:
'/areaLoginDetail'
,
name
:
'区域登录人员明细'
,
name
:
'区域登录人员明细'
,
component
:
_import
(
'enterpriseData'
,
'areaLoginDetail'
)
component
:
_import
(
'enterpriseData'
,
'areaLoginDetail'
)
}
]
},
},
{
// 溢出门店
// 溢出门店
path
:
'/overStore'
,
{
name
:
'溢出门店'
,
redirect
:
'unreview'
,
component
:
_import
(
'overstore'
,
'index'
),
children
:
[{
path
:
'/overStoreList'
,
path
:
'/overStoreList'
,
name
:
'溢出门店'
,
name
:
'溢出门店'
,
component
:
_import
(
'overstore'
,
'overStoreList'
)
component
:
_import
(
'overstore'
,
'overStoreList'
)
}]
},
},
{
// 企业应用
// 企业应用
path
:
'/apps'
,
name
:
'企业应用'
,
redirect
:
'mycustomer'
,
component
:
_import
(
'apps'
,
'index'
),
children
:
[
/* {
/* {
path: '/appcenter',
path: '/appcenter',
name: '企业应用中心',
name: '企业应用中心',
...
@@ -273,11 +207,6 @@ export const constantRouterMap = [
...
@@ -273,11 +207,6 @@ export const constantRouterMap = [
}, */
}, */
/* 我的客户应用 */
/* 我的客户应用 */
{
{
path
:
'/mycustomer'
,
name
:
'我的客户的'
,
redirect
:
'/memberShowSet'
,
component
:
_import
(
'apps/customerApp'
,
'index'
),
children
:
[{
path
:
'/memberShowSet'
,
path
:
'/memberShowSet'
,
name
:
'客户展示设置'
,
name
:
'客户展示设置'
,
component
:
_import
(
'apps/customerApp'
,
'memberShowSet'
)
component
:
_import
(
'apps/customerApp'
,
'memberShowSet'
)
...
@@ -326,15 +255,9 @@ export const constantRouterMap = [
...
@@ -326,15 +255,9 @@ export const constantRouterMap = [
path
:
'/storeRangeSet'
,
path
:
'/storeRangeSet'
,
name
:
'门店范围设置'
,
name
:
'门店范围设置'
,
component
:
_import
(
'apps/customerApp'
,
'storeRangeSet'
)
component
:
_import
(
'apps/customerApp'
,
'storeRangeSet'
)
}
]
},
},
// 云日报
{
{
path
:
'/cloudDaily'
,
name
:
'云日报'
,
redirect
:
'/dailyRecord'
,
component
:
_import
(
'apps/cloudDaily'
,
'index'
),
children
:
[{
path
:
'/dailyRecord'
,
path
:
'/dailyRecord'
,
name
:
'云日报记录'
,
name
:
'云日报记录'
,
component
:
_import
(
'apps/cloudDaily'
,
'dailyRecord'
)
component
:
_import
(
'apps/cloudDaily'
,
'dailyRecord'
)
...
@@ -379,14 +302,8 @@ export const constantRouterMap = [
...
@@ -379,14 +302,8 @@ export const constantRouterMap = [
name
:
'编辑自定义报表设置'
,
name
:
'编辑自定义报表设置'
,
component
:
_import
(
'apps/cloudDaily'
,
'customReportSet'
)
component
:
_import
(
'apps/cloudDaily'
,
'customReportSet'
)
},
},
]
// 指标管理
},
{
{
path
:
'/quota'
,
name
:
'指标管理'
,
redirect
:
'/monthList'
,
component
:
_import
(
'apps/quota'
,
'index'
),
children
:
[{
path
:
'/monthList'
,
path
:
'/monthList'
,
name
:
'月指标列表'
,
name
:
'月指标列表'
,
component
:
_import
(
'apps/quota'
,
'monthList'
)
component
:
_import
(
'apps/quota'
,
'monthList'
)
...
@@ -421,16 +338,10 @@ export const constantRouterMap = [
...
@@ -421,16 +338,10 @@ export const constantRouterMap = [
meta
:
{
meta
:
{
keepAlive
:
true
keepAlive
:
true
}
}
}
]
},
},
// 卡券赠送
{
{
path
:
'/cardList'
,
path
:
'/cardList'
,
name
:
'卡券赠送'
,
redirect
:
'/cardList'
,
component
:
_import
(
'apps/card'
,
'index'
),
children
:
[{
path
:
'/cardList'
,
name
:
'卡券列表'
,
name
:
'卡券列表'
,
component
:
_import
(
'apps/card'
,
'cardList'
)
component
:
_import
(
'apps/card'
,
'cardList'
)
},
},
...
@@ -449,14 +360,8 @@ export const constantRouterMap = [
...
@@ -449,14 +360,8 @@ export const constantRouterMap = [
name
:
'编辑卡券'
,
name
:
'编辑卡券'
,
component
:
_import
(
'apps/card'
,
'newCard'
)
component
:
_import
(
'apps/card'
,
'newCard'
)
},
},
]
// 内购券
},
{
{
path
:
'/protectCard'
,
name
:
'内购券'
,
redirect
:
'/cardTemplate'
,
component
:
_import
(
'apps/protectCard'
,
'index'
),
children
:
[{
path
:
'/cardTemplate'
,
path
:
'/cardTemplate'
,
name
:
'卡券模板'
,
name
:
'卡券模板'
,
component
:
_import
(
'apps/protectCard'
,
'cardTemplate'
)
component
:
_import
(
'apps/protectCard'
,
'cardTemplate'
)
...
@@ -495,28 +400,15 @@ export const constantRouterMap = [
...
@@ -495,28 +400,15 @@ export const constantRouterMap = [
path
:
'/cardGetRecord'
,
path
:
'/cardGetRecord'
,
name
:
'领取记录'
,
name
:
'领取记录'
,
component
:
_import
(
'apps/protectCard'
,
'cardGetRecord'
)
component
:
_import
(
'apps/protectCard'
,
'cardGetRecord'
)
}
]
},
},
// 商品中心
// 商品中心
{
{
path
:
'/shoppingCenter'
,
name
:
'商品中心'
,
redirect
:
'/goodsShowSet'
,
component
:
_import
(
'apps/shoppingCenter'
,
'index'
),
children
:
[{
path
:
'/goodsShowSet'
,
path
:
'/goodsShowSet'
,
name
:
'商品展示设置'
,
name
:
'商品展示设置'
,
component
:
_import
(
'apps/shoppingCenter'
,
'goodsShowSet'
)
component
:
_import
(
'apps/shoppingCenter'
,
'goodsShowSet'
)
}]
},
},
// 订单评价
// 订单评价
{
{
path
:
'/order-evaluate'
,
name
:
'订单评价设置'
,
redirect
:
'/evaluate-set'
,
component
:
_import
(
'apps/order-evaluate'
,
'index'
),
children
:
[{
path
:
'/evaluate-set'
,
path
:
'/evaluate-set'
,
name
:
'订单评价'
,
name
:
'订单评价'
,
component
:
_import
(
'apps/order-evaluate'
,
'evaluate-set'
)
component
:
_import
(
'apps/order-evaluate'
,
'evaluate-set'
)
...
@@ -524,33 +416,9 @@ export const constantRouterMap = [
...
@@ -524,33 +416,9 @@ export const constantRouterMap = [
path
:
'/bad-evaluate'
,
path
:
'/bad-evaluate'
,
name
:
'不良评价回访设置'
,
name
:
'不良评价回访设置'
,
component
:
_import
(
'apps/order-evaluate'
,
'bad-evaluate-set'
)
component
:
_import
(
'apps/order-evaluate'
,
'bad-evaluate-set'
)
}]
}
}
]
]
},
},
// {
// // 审核中心
// path: '/reviewCenter',
// name: '审核中心',
// redirect: 'unreview',
// component: _import('reviewCenter', 'index'),
// children: [{
// path: '/reviewed',
// name: '已审核',
// component: _import('reviewCenter', 'reviewed')
// },
// {
// path: '/unreview',
// name: '未审核',
// component: _import('reviewCenter', 'unreview')
// },
// {
// path: '/reviewSet',
// name: '审核设置',
// component: _import('reviewCenter', 'reviewSet')
// }
// ]
// },
{
{
path
:
'/gic-error'
,
path
:
'/gic-error'
,
...
...
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