diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue index 5e1e8a2..8667e2b 100644 --- a/src/layouts/BasicLayout.vue +++ b/src/layouts/BasicLayout.vue @@ -73,6 +73,9 @@ 配送时段 + + 小区集合 + @@ -296,6 +299,11 @@ export default defineComponent({ key: 'community-time-periods', title: '配送时段', path: '/community/time-periods' + }, + { + key: 'community-sets', + title: '小区集合', + path: '/community/sets' } ] }, diff --git a/src/router/index.js b/src/router/index.js index 99b4b69..4898072 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -69,6 +69,18 @@ const routes = [ name: 'CommunityTimePeriods', component: () => import('../views/community/TimePeriodList.vue'), meta: { title: '小区配送时段' } + }, + { + path: 'community/sets', + name: 'CommunitySets', + component: () => import('../views/community/CommunitySetList.vue'), + meta: { title: '小区集合' } + }, + { + path: 'community/sets/:id', + name: 'CommunitySetDetail', + component: () => import('../views/community/CommunitySetDetail.vue'), + meta: { title: '小区集合详情' } } ] }, diff --git a/src/views/community/CommunitySetDetail.vue b/src/views/community/CommunitySetDetail.vue new file mode 100644 index 0000000..c6c3b3c --- /dev/null +++ b/src/views/community/CommunitySetDetail.vue @@ -0,0 +1,500 @@ + + + + + + + {{ setInfo.set_name || '加载中...' }} + + 运营商: + {{ setInfo.user_name }} + + + 创建时间: + {{ setInfo.create_time }} + + + + + + + + + + 关联小区列表 + + 添加小区 + + + + + + + + + 移除关联 + + + + + + + + + + + + + + + + + + + + 搜索结果: + + + + + {{ community.name }} + {{ community.address }} + + + + + + + + 确认添加 + + + 取消 + + + + + + 未找到匹配的小区 + + + + 请输入小区名称进行搜索 + + + + + + + + \ No newline at end of file diff --git a/src/views/community/CommunitySetList.vue b/src/views/community/CommunitySetList.vue new file mode 100644 index 0000000..cc40536 --- /dev/null +++ b/src/views/community/CommunitySetList.vue @@ -0,0 +1,441 @@ + + + + + 小区集合 + + 创建小区集合 + + + + + + + + + 查看详情 + + + + + + + + + + + + + + + + + + + + + + {{ searchedUser.nickname || '未设置昵称' }} + {{ formatPhone(searchedUser.phone) }} + + 运营商 + + + + + {{ isUserSelected(searchedUser) ? '已选择' : '选择' }} + + + + + + + {{ selectedUser.nickname || '未设置昵称' }} + {{ formatPhone(selectedUser.phone) }} + + 取消选择 + + + + + + + + + + + + \ No newline at end of file