From fd51a431bb6ee132bdc705357a363f0a29120a53 Mon Sep 17 00:00:00 2001 From: aaron <> Date: Wed, 8 Jan 2025 08:39:26 +0800 Subject: [PATCH] update --- src/api/community.js | 10 ++ src/main.js | 4 +- src/views/community/BuildingList.vue | 181 ++++++++++++++++++++++++--- 3 files changed, 175 insertions(+), 20 deletions(-) diff --git a/src/api/community.js b/src/api/community.js index f85c3d1..78bdf37 100644 --- a/src/api/community.js +++ b/src/api/community.js @@ -1,9 +1,19 @@ import request from '@/utils/request' +// 获取小区列表 export function getCommunityList(params) { return request({ url: '/api/community', method: 'get', params }) +} + +// 获取楼栋列表 +export function getBuildingList(params) { + return request({ + url: '/api/community/building/list', + method: 'get', + params + }) } \ No newline at end of file diff --git a/src/main.js b/src/main.js index f707107..1dfb70b 100644 --- a/src/main.js +++ b/src/main.js @@ -15,7 +15,8 @@ import { Popconfirm, Divider, Tag, - Modal + Modal, + Select } from 'ant-design-vue' import 'ant-design-vue/dist/antd.css' @@ -37,5 +38,6 @@ app.use(Popconfirm) app.use(Divider) app.use(Tag) app.use(Modal) +app.use(Select) app.mount('#app') \ No newline at end of file diff --git a/src/views/community/BuildingList.vue b/src/views/community/BuildingList.vue index 3a0cf0f..24ed61e 100644 --- a/src/views/community/BuildingList.vue +++ b/src/views/community/BuildingList.vue @@ -1,10 +1,34 @@