From b483f37e0744f240aeb93adf3bf4e112f6d9fbc5 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 30 Jan 2026 09:23:02 +0800
Subject: [PATCH] 楼栋显示处理

---
 src/views/house/index.vue |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/views/house/index.vue b/src/views/house/index.vue
index 9aaae69..a8935ec 100644
--- a/src/views/house/index.vue
+++ b/src/views/house/index.vue
@@ -199,15 +199,15 @@
                             <div class="content">
                                 <div>
                                     <div>电梯</div>
-                                    <div style="color:#59a9ff">{{ floorInfo.elev }}</div>
+                                    <div style="color:#59a9ff">{{ floorInfo?.elev || '无' }}</div>
                                 </div>
                                 <div v-if="isShowFloorCount">
                                     <div>楼层总数</div>
-                                    <div style="color:#59a9ff">{{ floorInfo.floor_num }}</div>
+                                    <div style="color:#59a9ff">{{ floorInfo?.floor_num || 0 }}</div>
                                 </div>
                                 <div>
                                     <div>户室总数</div>
-                                    <div style="color:#59a9ff">{{ floorInfo.house_num }}</div>
+                                    <div style="color:#59a9ff">{{ floorInfo?.house_num || 0 }}</div>
                                 </div>
                             </div>
                         </div>
@@ -1706,6 +1706,7 @@
             this.isShowUnitChoose = false
             this.BuildListLoading = true
             this.buildingList = []
+            this.floorInfo = {}
             getSearchExtensivelyBgAoiDeepdata(ak, region, ids, infos).then((res) => {
                 let baseUrl
                 if (process.env.NODE_ENV == "development") {
@@ -2698,7 +2699,7 @@
             ).then((res) => {
                 if (buildId) {
                     if (isDuDong == '独栋') {
-                        this.getVillagePersonStatisticInfoByBuildId(buildId)
+                        this.getVillagePersonStatisticInfoByBuildId({buildId})
 
                         this.houseDate = res.data.data.records
                         setTimeout(() => {
@@ -2896,10 +2897,7 @@
                                 res.data.result[0].std_addr_id.split("|")[0]
                             )
 
-                            this.getHouses3DData(res.data.result[0].std_addr_id.split("|")[0], "361102", [
-                                [e.wgs84Position.lng, e.wgs84Position.lat],
-                                e.wgs84Position.alt,
-                            ])
+                            this.residentDetailsClick(res.data.result[0])
                         }
                     }
                 })

--
Gitblit v1.9.3