diff --git a/src/api/community.js b/src/api/community.js new file mode 100644 index 0000000..67ca8d4 --- /dev/null +++ b/src/api/community.js @@ -0,0 +1,29 @@ +import request from '../utils/request'; + +/** + * 获取小区详情 + * @param {string} communityId 小区ID + * @returns {Promise} 返回小区详情数据 + */ +export function getCommunityDetail(communityId) { + return request({ + url: `/api/partner/community/${communityId}`, + method: 'get' + }); +} + +/** + * 获取小区配送员列表 + * @param {Object} params 查询参数 + * @param {string} params.community_id 小区ID + * @param {number} params.page 页码 + * @param {number} params.pageSize 每页条数 + * @returns {Promise} 返回配送员列表数据 + */ +export function getCommunityDeliveryStaff(params) { + return request({ + url: '/api/community/delivery-staff', + method: 'get', + params + }); +} \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 1adc4ea..ac83c29 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -23,6 +23,13 @@ const routes = [ component: () => import('../views/Dashboard.vue'), meta: { title: '仪表盘', icon: 'dashboard' } }, + { + path: 'community/:id', + name: 'CommunityDetail', + component: () => import('../views/CommunityDetail.vue'), + meta: { title: '小区详情', icon: 'home' }, + props: true + }, { path: 'finance', redirect: '/finance/account', diff --git a/src/views/CommunityDetail.vue b/src/views/CommunityDetail.vue new file mode 100644 index 0000000..e5b57bc --- /dev/null +++ b/src/views/CommunityDetail.vue @@ -0,0 +1,408 @@ + + + + + \ No newline at end of file diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index f8ce6bd..e153941 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -90,7 +90,16 @@ rowKey="community_id" > - + + + + + +