From f0426f1f5ab26a030f053f4dee318ae0606f755e Mon Sep 17 00:00:00 2001
From: aaron <>
Date: Wed, 19 Feb 2025 23:25:12 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B0=8F=E5=8C=BA=E7=BC=96?=
=?UTF-8?q?=E8=BE=91=E5=8A=9F=E8=83=BD=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/community.js | 9 ++
src/views/community/CommunityList.vue | 121 ++++++++++++++++++++------
2 files changed, 101 insertions(+), 29 deletions(-)
diff --git a/src/api/community.js b/src/api/community.js
index 96a801b..c5d571f 100644
--- a/src/api/community.js
+++ b/src/api/community.js
@@ -43,4 +43,13 @@ export function updateCommunityStatus(id, status) {
method: 'put',
data: { status }
})
+}
+
+// 添加更新小区的接口
+export function updateCommunity(id, data) {
+ return request({
+ url: `/api/community/${id}`,
+ method: 'put',
+ data
+ })
}
\ No newline at end of file
diff --git a/src/views/community/CommunityList.vue b/src/views/community/CommunityList.vue
index 6778c5f..0b77661 100644
--- a/src/views/community/CommunityList.vue
+++ b/src/views/community/CommunityList.vue
@@ -44,6 +44,11 @@
/>
-
+
+
+ 编辑
+
+
@@ -58,9 +63,9 @@
取消
-
+
保存
@@ -115,7 +120,7 @@