diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue
index 2825ce0..36bf89e 100644
--- a/src/layouts/BasicLayout.vue
+++ b/src/layouts/BasicLayout.vue
@@ -25,14 +25,24 @@
用户列表
-
- 运营商管理
-
配送员列表
+
+
+
+
+ 运营商管理
+
+ 运营商列表
+
+
+ 片区管理
+
+
+
@@ -73,8 +83,8 @@
配送时段
-
- 小区集合
+
+ 时段原型管理
@@ -118,9 +128,6 @@
系统配置
-
- 时段配置
-
任务管理
@@ -191,7 +198,8 @@ import {
SettingOutlined,
ShoppingOutlined,
MoneyCollectOutlined,
- GiftOutlined
+ GiftOutlined,
+ TeamOutlined
} from '@ant-design/icons-vue'
import { useRouter, useRoute } from 'vue-router'
@@ -209,7 +217,8 @@ export default defineComponent({
SettingOutlined,
ShoppingOutlined,
MoneyCollectOutlined,
- GiftOutlined
+ GiftOutlined,
+ TeamOutlined
},
setup() {
const router = useRouter()
@@ -250,11 +259,6 @@ export default defineComponent({
title: '用户列表',
path: '/user/list'
},
- {
- key: 'user-partner',
- title: '运营商管理',
- path: '/user/partner'
- },
{
key: 'deliveryman-list',
title: '配送员列表',
@@ -262,6 +266,24 @@ export default defineComponent({
}
]
},
+ {
+ key: 'partner',
+ icon: () => h(TeamOutlined),
+ title: '运营商管理',
+ path: '/partner',
+ children: [
+ {
+ key: 'partner-list',
+ title: '运营商列表',
+ path: '/partner/list'
+ },
+ {
+ key: 'partner-area',
+ title: '片区管理',
+ path: '/partner/area'
+ }
+ ]
+ },
{
key: 'order',
icon: () => h(ShoppingOutlined),
@@ -320,9 +342,9 @@ export default defineComponent({
path: '/community/time-periods'
},
{
- key: 'community-sets',
- title: '小区集合',
- path: '/community/sets'
+ key: 'time-period-templates',
+ title: '时段原型管理',
+ path: '/community/time-period-templates'
}
]
},
@@ -383,11 +405,6 @@ export default defineComponent({
title: '系统配置',
path: '/system/config'
},
- {
- key: 'system-time-periods',
- title: '时段配置',
- path: '/system/time-periods'
- },
{
key: 'system-tasks',
title: '任务管理',
diff --git a/src/router/index.js b/src/router/index.js
index 588d21c..5706d1f 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -26,7 +26,7 @@ const routes = [
path: '/user/partner',
name: 'PartnerList',
component: () => import('../views/user/PartnerList.vue'),
- meta: { title: '运营商管理' }
+ meta: { title: '运营商列表' }
},
{
path: '/deliveryman/list',
@@ -70,6 +70,12 @@ const routes = [
component: () => import('../views/community/TimePeriodList.vue'),
meta: { title: '小区配送时段' }
},
+ {
+ path: 'community/time-period-templates',
+ name: 'TimePeriodTemplates',
+ component: () => import('@/views/system/TimePeriodList.vue'),
+ meta: { title: '时段原型管理' }
+ },
{
path: 'community/sets',
name: 'CommunitySets',
@@ -124,11 +130,6 @@ const routes = [
component: () => import('@/views/system/ConfigList.vue'),
meta: { title: '系统配置' }
},
- {
- path: 'time-periods',
- component: () => import('@/views/system/TimePeriodList.vue'),
- meta: { title: '时段配置' }
- },
{
path: 'tasks',
component: () => import('@/views/system/TaskManager.vue'),
@@ -162,6 +163,30 @@ const routes = [
meta: { title: '提现管理' }
}
]
+ },
+ {
+ path: '/partner',
+ component: BasicLayout,
+ children: [
+ {
+ path: 'list',
+ name: 'PartnerList',
+ component: () => import('../views/user/PartnerList.vue'),
+ meta: { title: '运营商列表' }
+ },
+ {
+ path: 'area',
+ name: 'PartnerArea',
+ component: () => import('../views/community/CommunitySetList.vue'),
+ meta: { title: '片区管理' }
+ },
+ {
+ path: 'area/:id',
+ name: 'PartnerAreaDetail',
+ component: () => import('../views/community/CommunitySetDetail.vue'),
+ meta: { title: '片区详情' }
+ }
+ ]
}
]
diff --git a/src/views/community/CommunitySetDetail.vue b/src/views/community/CommunitySetDetail.vue
index e4d18c2..d3cfb35 100644
--- a/src/views/community/CommunitySetDetail.vue
+++ b/src/views/community/CommunitySetDetail.vue
@@ -52,7 +52,7 @@