ll
liukangdong
2024-12-02 798dcfbbc3ab2a81d1e873b25e00bf5e4ed03aa7
admin/src/views/project/housingList.vue
@@ -34,7 +34,7 @@
        <el-table-column type="selection" width="55"></el-table-column>
        <el-table-column prop="projectName" label="项目" min-width="100px"></el-table-column>
        <el-table-column prop="buildingName" label="楼宇" min-width="70px"></el-table-column>
        <el-table-column prop="floor" label="楼层" min-width="60px"></el-table-column>
        <el-table-column prop="floorName" label="楼层" min-width="60px"></el-table-column>
        <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>
@@ -101,6 +101,8 @@
      },
      projectList: [],
      buildList: [],
      filters: {}
    }
  },
  created() {
@@ -121,17 +123,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()
    },
  }
}