From 899f292b547f19705162ee5dd874d7deb2560187 Mon Sep 17 00:00:00 2001 From: aaron <> Date: Wed, 8 Jan 2025 09:51:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B7=BB=E5=8A=A0=E6=A5=BC?= =?UTF-8?q?=E6=A0=8B=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/community.js | 9 + src/router/index.js | 4 +- src/views/community/BuildingList.vue | 256 +++++++++++++++++++++------ 3 files changed, 212 insertions(+), 57 deletions(-) diff --git a/src/api/community.js b/src/api/community.js index 0c21e1a..a735afa 100644 --- a/src/api/community.js +++ b/src/api/community.js @@ -25,4 +25,13 @@ export function createCommunity(data) { method: 'post', data }) +} + +// 添加楼栋 +export function createBuilding(data) { + return request({ + url: '/api/community/building', + method: 'post', + data + }) } \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 0bb2a12..7b2217e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -24,9 +24,9 @@ const routes = [ }, { path: '/community/building', - name: 'buildingList', + name: 'BuildingList', component: () => import('../views/community/BuildingList.vue'), - meta: { title: '楼栋列表' } + meta: { title: '楼栋管理' } }, { path: '/community/station', diff --git a/src/views/community/BuildingList.vue b/src/views/community/BuildingList.vue index 24ed61e..c181720 100644 --- a/src/views/community/BuildingList.vue +++ b/src/views/community/BuildingList.vue @@ -2,20 +2,31 @@