From d7dca690cedd12e271f0ee0b9050679d73796f5c Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 06 一月 2025 09:28:10 +0800
Subject: [PATCH] 1

---
 admin/src/views/project/housingList.vue |   25 ++++++++++++++++---------
 1 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/admin/src/views/project/housingList.vue b/admin/src/views/project/housingList.vue
index 8b09283..776a306 100644
--- a/admin/src/views/project/housingList.vue
+++ b/admin/src/views/project/housingList.vue
@@ -17,8 +17,8 @@
       </el-form-item>
       <section>
         <el-button type="primary" @click="search">鎼滅储</el-button>
-        <el-button type="primary" :loading="isWorking.export" v-permissions="['business:ywroom:exportExcel']"
-          @click="exportExcel">瀵煎嚭</el-button>
+        <!-- <el-button type="primary" :loading="isWorking.export" v-permissions="['business:ywroom:exportExcel']"
+          @click="exportExcel">瀵煎嚭</el-button> -->
         <el-button @click="reset">閲嶇疆</el-button>
       </section>
     </el-form>
@@ -27,8 +27,8 @@
       <ul class="toolbar" v-permissions="['business:ywroom:create', 'business:ywroom:delete']">
         <li><el-button type="primary" @click="editClick()" icon="el-icon-plus"
             v-permissions="['business:ywroom:create']">鏂板缓</el-button></li>
-        <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete"
-            v-permissions="['business:ywroom:delete']">鍒犻櫎</el-button></li>
+        <!-- <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete"
+            v-permissions="['business:ywroom:delete']">鍒犻櫎</el-button></li> -->
       </ul>
       <el-table v-loading="isWorking.search" :data="tableData.list" stripe @selection-change="handleSelectionChange">
         <el-table-column type="selection" width="55"></el-table-column>
@@ -38,7 +38,13 @@
         <el-table-column prop="roomNum" label="鎴垮彿" min-width="60px"></el-table-column>
         <el-table-column prop="rentArea" label="璁$闈㈢Н(m虏)" min-width="80px"></el-table-column>
         <el-table-column prop="feeArea" label="璁¤垂闈㈢Н(m虏)" min-width="80px"></el-table-column>
-        <el-table-column prop="feeArea" label="绉熻祦鐘舵��" min-width="80px"></el-table-column>
+        <el-table-column prop="" label="绉熻祦鐘舵��" min-width="80px">
+          <template v-slot="{row}">
+            <span v-if="row.leaseStatus == 0">寰呯</span>
+            <span v-else-if="row.leaseStatus == 1">宸茬</span>
+            <span v-else>-</span>
+          </template>
+        </el-table-column>
         <el-table-column prop="isInvestment" label="鎷涘晢鐘舵��" min-width="60px">
           <template v-slot="scope">
             <span v-if="scope.row.isInvestment == 1" class="green">鎷涘晢</span>
@@ -53,7 +59,7 @@
             <el-button type="text" @click="deleteById(row)" icon="el-icon-delete"
               v-permissions="['business:ywroom:delete']">鍒犻櫎</el-button>
           </template>
-        </el-table-column>
+        </el-table-column> 
       </el-table>
       <pagination @size-change="handleSizeChange" @current-change="handlePageChange" :pagination="tableData.pagination">
       </pagination>
@@ -101,6 +107,8 @@
       },
       projectList: [],
       buildList: [],
+      
+      filters: {}
     }
   },
   created() {
@@ -121,17 +129,16 @@
     },
     changeProject(e) {
       this.searchForm.buildingId = ''
-      getBuildList({ id: e }).then(res => {
+      getBuildList({ projectId: e }).then(res => {
         this.buildList = res || []
       })
     },
     editClick(row) {
       if (row && row.id) {
-        this.$refs.operaYwRoomWindow.open('缂栬緫鎴块棿')
+        this.$refs.operaYwRoomWindow.open('缂栬緫鎴块棿', row)
       } else {
         this.$refs.operaYwRoomWindow.open('鏂板缓鎴块棿')
       }
-      this.$refs.operaYwRoomWindow.getProject()
     },
   }
 }

--
Gitblit v1.9.3