|
@@ -49,14 +49,14 @@ export const getRouterData = (app) => {
|
|
|
component: dynamicWrapper(app, ['terminal'], () => import('../routes/Terminal')),
|
|
|
},
|
|
|
'/merchant': {
|
|
|
- component: dynamicWrapper(app, ['merchant/merchant'], () => import('../routes/Merchant')),
|
|
|
+ component: dynamicWrapper(app, ['merchant/merchant'], () => import('../routes/Merchant/List')),
|
|
|
},
|
|
|
'/merchant/add': {
|
|
|
- component: dynamicWrapper(app, ['merchant/detail'], () => import('../routes/Merchant/detail')),
|
|
|
- name: '添加厂商',
|
|
|
+ component: dynamicWrapper(app, ['merchant/detail'], () => import('../routes/Merchant/Edit')),
|
|
|
+ name: '创建厂商',
|
|
|
},
|
|
|
'/merchant/edit/:id': {
|
|
|
- component: dynamicWrapper(app, ['merchant/detail'], () => import('../routes/Merchant/detail')),
|
|
|
+ component: dynamicWrapper(app, ['merchant/detail'], () => import('../routes/Merchant/Edit')),
|
|
|
name: '修改厂商',
|
|
|
},
|
|
|
'/tag/tagGroup': {
|
|
@@ -64,7 +64,7 @@ export const getRouterData = (app) => {
|
|
|
},
|
|
|
'/tag/tagGroup/add': {
|
|
|
component: dynamicWrapper(app, ['group/detail', 'merchant/merchant'], () => import('../routes/TagGroup/Edit')),
|
|
|
- name: '添加标签组',
|
|
|
+ name: '创建标签组',
|
|
|
},
|
|
|
'/tag/tagGroup/edit/:id': {
|
|
|
component: dynamicWrapper(app, ['group/detail', 'merchant/merchant'], () => import('../routes/TagGroup/Edit')),
|
|
@@ -75,32 +75,32 @@ export const getRouterData = (app) => {
|
|
|
},
|
|
|
'/tag/tagItem/add': {
|
|
|
component: dynamicWrapper(app, ['tag/detail', 'group/group'], () => import('../routes/Tag/Edit')),
|
|
|
- name: '添加标签',
|
|
|
+ name: '创建标签',
|
|
|
},
|
|
|
'/tag/tagItem/edit/:id': {
|
|
|
component: dynamicWrapper(app, ['tag/detail', 'group/group'], () => import('../routes/Tag/Edit')),
|
|
|
name: '修改标签',
|
|
|
},
|
|
|
'/product/ware': {
|
|
|
- component: dynamicWrapper(app, ['ware/ware'], () => import('../routes/Ware')),
|
|
|
+ component: dynamicWrapper(app, ['ware/ware'], () => import('../routes/Ware/List')),
|
|
|
},
|
|
|
'/product/ware/add': {
|
|
|
- component: dynamicWrapper(app, ['ware/detail', 'resource'], () => import('../routes/Ware/detail')),
|
|
|
- name: '添加课件',
|
|
|
+ component: dynamicWrapper(app, ['ware/detail', 'resource'], () => import('../routes/Ware/Edit')),
|
|
|
+ name: '创建课件',
|
|
|
},
|
|
|
'/product/ware/edit/:id': {
|
|
|
- component: dynamicWrapper(app, ['ware/detail', 'resource'], () => import('../routes/Ware/detail')),
|
|
|
+ component: dynamicWrapper(app, ['ware/detail', 'resource'], () => import('../routes/Ware/Edit')),
|
|
|
name: '修改课件',
|
|
|
},
|
|
|
'/product/lesson': {
|
|
|
- component: dynamicWrapper(app, ['lesson/lesson'], () => import('../routes/Lesson')),
|
|
|
+ component: dynamicWrapper(app, ['lesson/lesson'], () => import('../routes/Lesson/List')),
|
|
|
},
|
|
|
'/product/lesson/add': {
|
|
|
- component: dynamicWrapper(app, ['lesson/detail', 'ware/ware'], () => import('../routes/Lesson/detail')),
|
|
|
- name: '添加课',
|
|
|
+ component: dynamicWrapper(app, ['lesson/detail', 'ware/ware'], () => import('../routes/Lesson/Edit')),
|
|
|
+ name: '创建课',
|
|
|
},
|
|
|
'/product/lesson/edit/:id': {
|
|
|
- component: dynamicWrapper(app, ['lesson/detail', 'ware/ware'], () => import('../routes/Lesson/detail')),
|
|
|
+ component: dynamicWrapper(app, ['lesson/detail', 'ware/ware'], () => import('../routes/Lesson/Edit')),
|
|
|
name: '修改课',
|
|
|
},
|
|
|
'/product/course': {
|
|
@@ -108,21 +108,21 @@ export const getRouterData = (app) => {
|
|
|
},
|
|
|
'/product/course/add': {
|
|
|
component: dynamicWrapper(app, ['course/detail', 'resource', 'lesson/lesson', 'support/support', 'merchant/merchant'], () => import('../routes/Course/Edit')),
|
|
|
- name: '添加课程',
|
|
|
+ name: '创建课程',
|
|
|
},
|
|
|
'/product/course/edit/:id': {
|
|
|
component: dynamicWrapper(app, ['course/detail', 'resource', 'lesson/lesson', 'support/support', 'merchant/merchant'], () => import('../routes/Course/Edit')),
|
|
|
name: '修改课程',
|
|
|
},
|
|
|
'/product/support': {
|
|
|
- component: dynamicWrapper(app, ['support/support'], () => import('../routes/Support')),
|
|
|
+ component: dynamicWrapper(app, ['support/support'], () => import('../routes/Support/List')),
|
|
|
},
|
|
|
'/product/support/add': {
|
|
|
- component: dynamicWrapper(app, ['support/detail', 'resource', 'support/support', 'merchant/merchant'], () => import('../routes/Support/detail')),
|
|
|
- name: '添加配套',
|
|
|
+ component: dynamicWrapper(app, ['support/detail', 'resource', 'support/support', 'merchant/merchant'], () => import('../routes/Support/Edit')),
|
|
|
+ name: '创建配套',
|
|
|
},
|
|
|
'/product/support/edit/:id': {
|
|
|
- component: dynamicWrapper(app, ['support/detail', 'resource', 'support/support', 'merchant/merchant'], () => import('../routes/Support/detail')),
|
|
|
+ component: dynamicWrapper(app, ['support/detail', 'resource', 'support/support', 'merchant/merchant'], () => import('../routes/Support/Edit')),
|
|
|
name: '修改配套',
|
|
|
},
|
|
|
'/product/package': {
|
|
@@ -132,6 +132,10 @@ export const getRouterData = (app) => {
|
|
|
component: dynamicWrapper(app, ['combo/detail', 'product'], () => import('../routes/Combo/Edit')),
|
|
|
name: '创建课程包',
|
|
|
},
|
|
|
+ '/product/package/edit/:id': {
|
|
|
+ component: dynamicWrapper(app, ['combo/detail', 'product'], () => import('../routes/Combo/Edit')),
|
|
|
+ name: '修改课程包',
|
|
|
+ },
|
|
|
'/goods': {
|
|
|
component: dynamicWrapper(app, ['mproduct/mproduct', 'merchant/merchant'], () => import('../routes/MProduct/List')),
|
|
|
},
|
|
@@ -143,20 +147,8 @@ export const getRouterData = (app) => {
|
|
|
component: dynamicWrapper(app, ['mproduct/detail', 'goods', 'tag/tag'], () => import('../routes/MProduct/Edit')),
|
|
|
name: '修改商品',
|
|
|
},
|
|
|
- // '/goods/add': {
|
|
|
- // component: dynamicWrapper(app, [], () => import('../routes/Goods/GoodsProfile')),
|
|
|
- // name: '新建商品'
|
|
|
- // },
|
|
|
- // '/product/package/add': {
|
|
|
- // component: dynamicWrapper(app, ['combo/detail', 'support/support'], () => import('../routes/Combo/detail')),
|
|
|
- // name: '添加课程包',
|
|
|
- // },
|
|
|
- // '/product/package/edit/:id': {
|
|
|
- // component: dynamicWrapper(app, ['combo/detail', 'support/support'], () => import('../routes/Combo/detail')),
|
|
|
- // name: '修改课程包',
|
|
|
- // },
|
|
|
'/order': {
|
|
|
- component: dynamicWrapper(app, ['order/order'], () => import('../routes/Order')),
|
|
|
+ component: dynamicWrapper(app, ['order/order'], () => import('../routes/Order/List')),
|
|
|
},
|
|
|
// '/order/add': {
|
|
|
// component: dynamicWrapper(app, ['order/detail'], () => import('../routes/Order/detail')),
|
|
@@ -166,10 +158,10 @@ export const getRouterData = (app) => {
|
|
|
// component: dynamicWrapper(app, ['order/detail'], () => import('../routes/Order/detail')),
|
|
|
// name: '修改订单',
|
|
|
// },
|
|
|
- '/order/profile/:id': {
|
|
|
- component: dynamicWrapper(app, ['order/detail'], () => import('../routes/Order/detail/orderProfile')),
|
|
|
- name: '订单详情',
|
|
|
- },
|
|
|
+ // '/order/profile/:id': {
|
|
|
+ // component: dynamicWrapper(app, ['order/detail'], () => import('../routes/Order/detail/orderProfile')),
|
|
|
+ // name: '订单详情',
|
|
|
+ // },
|
|
|
'/user': {
|
|
|
component: dynamicWrapper(app, [], () => import('../layouts/UserLayout')),
|
|
|
},
|