From ab701df859cd79ae036f8cc86268137d2c8da8ee Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Thu, 22 Feb 2024 18:00:56 +0800
Subject: [PATCH] 消防自查导出、消防自查和场所检查增加场所类别字段

---
 src/views/publicSecurity/components/userHouseList.vue |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/views/publicSecurity/components/userHouseList.vue b/src/views/publicSecurity/components/userHouseList.vue
index 60c580c..778dab7 100644
--- a/src/views/publicSecurity/components/userHouseList.vue
+++ b/src/views/publicSecurity/components/userHouseList.vue
@@ -839,8 +839,14 @@
     mounted() {},
     methods: {
       init(row) {
-        console.log(JSON.stringify(row))
-        this.query.regionCode = row.communityCode
+        if (row.regionCode) {
+          this.query.regionCode = row.regionCode.slice(0, 10)
+        }
+        if (row.communityCode) {
+          this.query.regionCode = row.communityCode
+        }
+        this.query.labelId = row.labelId
+        this.query.parentId = 103
         this.onLoad(this.page, this.query)
       },
       onsubmit() {
@@ -864,6 +870,7 @@
           this.labelForm.houseCode = this.currentRow.houseCode
           this.labelForm.householdId = this.currentRow.id
           this.labelForm.labelId = this.currentLabel.id
+          this.labelForm.userId = this.currentRow.associatedUserId
           this.labelForm.lableType = 1
 
           saveOrUpdateHouseholdLabel(this.labelForm).then(res => {
@@ -1119,4 +1126,4 @@
   .box .el-scrollbar__wrap {
     overflow: scroll;
   }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3