From 4e4d8f585b0d538d2275cefa9a44435d426cc14e Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Mon, 03 Apr 2023 19:29:05 +0800
Subject: [PATCH] 户室弹窗修改

---
 src/views/house/index.vue |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/views/house/index.vue b/src/views/house/index.vue
index 6ca2413..8c0310c 100644
--- a/src/views/house/index.vue
+++ b/src/views/house/index.vue
@@ -187,7 +187,7 @@
                                                 <!-- :class="[{ 'chuzu': value.houseType == '出租' }, { 'zizhu': value.houseType == '自住' }, { 'kongzhi': value.houseType == '空置' }, { 'shangye': value.houseType == '商业' }]" -->
                                                 {{ value.properties.fojcu }}
                                                 <!-- <div class="flow"></div>
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="warning"></div>-->
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="warning"></div>-->
                                             </div>
                                         </div>
                                     </div>
@@ -337,7 +337,7 @@
                 :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }"
                 :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }" v-loading="residentLoading"
                 element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading"
-                element-loading-background="rgba(17, 38, 163, 1)">
+                element-loading-background="rgba(17, 38, 163, 1)" :empty-text="residentNoDataText">
                 <el-table-column prop="realName" label="姓名"></el-table-column>
                 <el-table-column prop="phone" label="电话"></el-table-column>
                 <el-table-column prop="cardNo" label="身份证号"></el-table-column>
@@ -420,6 +420,7 @@
             searchTreeShowFlag: false,
             peopleNoDataText: ' ',
             jqNoDataText: ' ',
+            residentNoDataText: ' ',
             keyPeopleLoading: false,
             policeInfoLoading: false,
             isHaveNoPic: false,
@@ -971,6 +972,7 @@
             this.residentDetailsTitle = `${curHousingName}${this.unitOptions.filter((item) => item.value == this.unitValue)[0].label
                 }${params.properties.fojcu}住户信息`
             this.residentDetailsShow = true
+            this.residentNoDataText = ' '
             this.residentLoading = true
             console.log("residentDetailsClick-params", params)
             this.$EventBus.$emit("showHouse3D", {
@@ -1413,7 +1415,6 @@
                     this.peoplePage.total = res.data.data.total
                     setTimeout(() => {
                         this.keyPeopleLoading = false
-                        this.residentLoading = false
                         if (res.data.data.records.length == 0) {
                             if (status == '') {
                                 this.peopleNoDataText = '暂无户籍人口信息'
@@ -1424,6 +1425,12 @@
                     }, 500)
                 } else {
                     this.houseDate = res.data.data.records
+                    setTimeout(() => {
+                        this.residentLoading = false
+                    }, 500)
+                    if (res.data.data.records.length == 0) {
+                        this.residentNoDataText = '暂无户室信息'
+                    }
                 }
             }).catch((res) => {
                 setTimeout(() => {

--
Gitblit v1.9.3