|
@@ -42,7 +42,10 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="单元" prop="unitId">
|
|
|
- <el-select v-model="queryParams1.unitId" placeholder="请选择单元" filterable clearable>
|
|
|
+ <el-select v-model="queryParams1.unitId" placeholder="请选择单元" filterable clearable
|
|
|
+ @change="queryParams1.houseId = undefined;getHouseList1(queryParams1.unitId)"
|
|
|
+ @clear="queryParams1.houseId = undefined;houseList=[]"
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="obj in unitList"
|
|
|
:key="obj.id"
|
|
@@ -51,6 +54,16 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="房间" prop="houseId">
|
|
|
+ <el-select v-model="queryParams1.houseId" placeholder="请选择房间" filterable clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="obj in houseList"
|
|
|
+ :key="obj.id"
|
|
|
+ :label="obj.name"
|
|
|
+ :value="obj.id"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="工程类型" prop="enginType">
|
|
|
<el-select v-model="queryParams1.enginType" placeholder="请选择工程类型" clearable
|
|
|
@change="enginTypeHasChangeds"
|
|
@@ -796,6 +809,7 @@ import {
|
|
|
import {getAreaList} from "@/api/zdsz/area";
|
|
|
import {getBuildingList} from "@/api/zdsz/building";
|
|
|
import {getUnits} from "@/api/zdsz/unit";
|
|
|
+import {getHouses} from "@/api/zdsz/house";
|
|
|
import {getDicts} from "@/api/system/dict/data";
|
|
|
import EnginNodeInfo from "@/components/EnginNodeInfo/index";
|
|
|
import EngineePipe from '@/components/EngineePipe'
|
|
@@ -1299,6 +1313,7 @@ export default {
|
|
|
areaList: [],
|
|
|
buildingList: [],
|
|
|
unitList: [],
|
|
|
+ houseList: [],
|
|
|
currentDistrict: null, // 当前行政区
|
|
|
currentCommunity: null, // 当前小区
|
|
|
currentBuilding: null, // 当前楼宇
|
|
@@ -1750,6 +1765,11 @@ export default {
|
|
|
return
|
|
|
getUnits(buildingId).then(res => this.unitList = res.data)
|
|
|
},
|
|
|
+ getHouseList1(unitId) {
|
|
|
+ if (unitId === undefined || unitId == null || unitId === '')
|
|
|
+ return
|
|
|
+ getHouses(unitId).then(res => this.houseList = res.data)
|
|
|
+ },
|
|
|
/** 查询民用工程列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|