|
|
@@ -114,14 +114,6 @@ const routes = [
|
|
|
icon: 'icon-customer-service'
|
|
|
},
|
|
|
children: [
|
|
|
- {
|
|
|
- path: 'orderList',
|
|
|
- name: 'service.orderList',
|
|
|
- component: () => import('../pages/service/orderList.vue'),
|
|
|
- meta: {
|
|
|
- title: '工单列表'
|
|
|
- }
|
|
|
- },
|
|
|
{
|
|
|
path: 'createOrder',
|
|
|
name: 'service.createOrder',
|
|
|
@@ -130,6 +122,14 @@ const routes = [
|
|
|
title: '提交工单'
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ path: 'orderList',
|
|
|
+ name: 'service.orderList',
|
|
|
+ component: () => import('../pages/service/orderList.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '工单列表'
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
path: 'orderDetail/:id',
|
|
|
name: 'service.orderDetail',
|
|
|
@@ -142,50 +142,61 @@ const routes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: "/user",
|
|
|
- name: "user",
|
|
|
- redirect: '/user/setting',
|
|
|
- component: DEFAULT_LAYOUT,
|
|
|
- meta: {
|
|
|
- title: '个人中心',
|
|
|
- icon: 'icon-user'
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'setting',
|
|
|
- name: 'user.setings',
|
|
|
- component: () => import('../pages/user/setting/index.vue'),
|
|
|
- meta: {
|
|
|
- title: '用户设置'
|
|
|
- },
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: "/admin/service",
|
|
|
- name: 'admin.service',
|
|
|
+ path: "/admin",
|
|
|
+ name: 'admin',
|
|
|
redirect: '/admin/service/orderList',
|
|
|
component: DEFAULT_LAYOUT,
|
|
|
meta: {
|
|
|
- title: '工单管理',
|
|
|
- icon: 'icon-check-square'
|
|
|
+ title: '网站管理',
|
|
|
+ icon: 'icon-check-square',
|
|
|
+ permission: ['admin', 'service', 'product']
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'orderList',
|
|
|
+ path: 'service/orderList',
|
|
|
name: 'admin.service.orderList',
|
|
|
- component: () => import('../pages/service/admin/orderList.vue'),
|
|
|
+ component: () => import('../pages/admin/workOrder/orderList.vue'),
|
|
|
meta: {
|
|
|
- title: '工单列表'
|
|
|
+ title: '工单管理',
|
|
|
+ permission: ['admin', 'service']
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- path: 'orderDetail/:id',
|
|
|
+ path: 'service/orderDetail/:id',
|
|
|
name: 'admin.service.orderDetail',
|
|
|
- component: () => import('../pages/service/admin/orderDetail.vue'),
|
|
|
+ component: () => import('../pages/admin/workOrder/orderDetail.vue'),
|
|
|
meta: {
|
|
|
title: '工单详情',
|
|
|
- hideInMenu: true
|
|
|
+ hideInMenu: true,
|
|
|
+ permission: ['admin', 'service']
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'goods/addGoods',
|
|
|
+ name: 'admin.goods.addGoods',
|
|
|
+ component: () => import('../pages/admin/goods/addGoods.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '添加商品',
|
|
|
+ permission: ['admin', 'product']
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'goods/addGoods/:id',
|
|
|
+ name: 'admin.goods.editGoods',
|
|
|
+ component: () => import('../pages/admin/goods/addGoods.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '编辑商品',
|
|
|
+ hideInMenu: true,
|
|
|
+ permission: ['admin', 'product']
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'goods/goodsList',
|
|
|
+ name: 'admin.goods.goodsList',
|
|
|
+ component: () => import('../pages/admin/goods/goodsList.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '商品管理',
|
|
|
+ permission: ['admin', 'product']
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
@@ -220,6 +231,26 @@ const routes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ {
|
|
|
+ path: "/user",
|
|
|
+ name: "user",
|
|
|
+ redirect: '/user/setting',
|
|
|
+ component: DEFAULT_LAYOUT,
|
|
|
+ meta: {
|
|
|
+ title: '个人中心',
|
|
|
+ icon: 'icon-user'
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'setting',
|
|
|
+ name: 'user.setings',
|
|
|
+ component: () => import('../pages/user/setting/index.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '用户设置'
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
]
|
|
|
|
|
|
const router = VueRouter.createRouter({
|