From 8bf635e997886e92e5b7206785e0c5abbca126c0 Mon Sep 17 00:00:00 2001
From: aaron <>
Date: Thu, 13 Mar 2025 00:01:00 +0800
Subject: [PATCH] update
---
src/api/community.js | 29 +++
src/router/index.js | 7 +
src/views/CommunityDetail.vue | 408 ++++++++++++++++++++++++++++++++++
src/views/Dashboard.vue | 21 +-
4 files changed, 463 insertions(+), 2 deletions(-)
create mode 100644 src/api/community.js
create mode 100644 src/views/CommunityDetail.vue
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"
>
-
+
+
+ {{ text }}
+
+
+
+
+ {{ record.user_count || 0 }}
+
+
{{ record.today_order_count || 0 }}
@@ -119,6 +128,7 @@