From 2ca25ccd12fe81b857c4dbc40520d725b04c5b59 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: Tue, 24 Jun 2025 00:52:25 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=8C=E6=88=90=E6=8A=95?=
=?UTF-8?q?=E8=AF=89=E5=BB=BA=E8=AE=AE=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/room/roomApi.js | 21 +++++
src/components/room/roomTree.vue | 145 ++++++++++++++++++++++++++++++
src/views/oa/addComplaintList.vue | 14 ++-
src/views/oa/complaintList.vue | 2 +-
src/views/room/roomLang.js | 2 +
5 files changed, 180 insertions(+), 4 deletions(-)
create mode 100644 src/components/room/roomTree.vue
diff --git a/src/api/room/roomApi.js b/src/api/room/roomApi.js
index 1b47b8622..e57327f33 100644
--- a/src/api/room/roomApi.js
+++ b/src/api/room/roomApi.js
@@ -1,4 +1,5 @@
import request from '@/utils/request'
+import { getCommunityId } from '@/api/community/communityApi'
// 查询房屋列表
export function queryRooms(params) {
@@ -87,4 +88,24 @@ export function queryRoomsWithOutSell(params) {
reject(error)
})
})
+}
+
+// 查询房间树形数据
+export function queryRoomsTree(params) {
+ return new Promise((resolve, reject) => {
+ const communityId = getCommunityId()
+ request({
+ url: '/room.queryRoomsTree',
+ method: 'get',
+ params: {
+ ...params,
+ communityId
+ }
+ }).then(response => {
+ const res = response.data
+ resolve(res)
+ }).catch(error => {
+ reject(error)
+ })
+ })
}
\ No newline at end of file
diff --git a/src/components/room/roomTree.vue b/src/components/room/roomTree.vue
new file mode 100644
index 000000000..a933ad96f
--- /dev/null
+++ b/src/components/room/roomTree.vue
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+ {{ node.label }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/oa/addComplaintList.vue b/src/views/oa/addComplaintList.vue
index 4f7f8ca46..85eabc5b2 100644
--- a/src/views/oa/addComplaintList.vue
+++ b/src/views/oa/addComplaintList.vue
@@ -19,8 +19,8 @@
-
-
+
+
{{ $t('addComplaint.register') }}
@@ -58,12 +58,15 @@
+
+