付宇航 1 anno fa
parent
commit
e29fc51e81

+ 7 - 1
src/views/zdsz/enginMaterialQuality/index.vue

@@ -83,7 +83,7 @@
           <dict-tag v-for="item in scope.row.enginType.split(',')" :options="dict.type.engin_type" :value="item"/>
         </template>
       </el-table-column>
-      <el-table-column label="材质名称" align="center" prop="name"/>
+      <el-table-column label="材质名称" align="center" prop="name" />
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button
@@ -236,6 +236,12 @@ export default {
     },
     /** 重置按钮操作 */
     resetQuery() {
+      this.queryParams= {
+        pageNum: 1,
+        pageSize: 10,
+        enginType: undefined,
+        name: undefined,
+      },
       this.resetForm("queryForm");
       this.handleQuery();
     },

+ 2 - 2
src/views/zdsz/enginSpecifications/index.vue

@@ -2,7 +2,7 @@
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
       <el-form-item label="材质" prop="materId">
-        <el-select v-model="queryParams.materId" placeholder="请选择所属工程">
+        <el-select v-model="queryParams.materId" placeholder="请选择材质">
           <el-option
             v-for="dict in enginMaterialQualityList"
             :key="dict.id"
@@ -114,7 +114,7 @@
     <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
       <el-form ref="form" :model="form" :rules="rules" label-width="80px">
         <el-form-item label="材质" prop="materId">
-          <el-select v-model="form.materId" placeholder="请选择所属工程" style="width: 100%">
+          <el-select v-model="form.materId" placeholder="请选择材质" style="width: 100%">
             <el-option
               v-for="dict in enginMaterialQualityList"
               :key="dict.id"

+ 14 - 5
src/views/zdsz/engineeringCivil/index.vue

@@ -945,16 +945,16 @@ export default {
           {required: true, message: "行政区不能为空", trigger: "change"}
         ],
         areaId: [
-          {required: true, message: "小区id不能为空", trigger: "change"}
+          {required: true, message: "小区不能为空", trigger: "change"}
         ],
         buildingId: [
-          {required: true, message: "楼宇id不能为空", trigger: "change"}
+          {required: true, message: "楼宇不能为空", trigger: "change"}
         ],
         unitId: [
-          {required: true, message: "单元id不能为空", trigger: "change"}
+          {required: true, message: "单元不能为空", trigger: "change"}
         ],
         houseId: [
-          {required: true, message: "房间id不能为空", trigger: "change"}
+          {required: true, message: "房间不能为空", trigger: "change"}
         ],
         enginType: [
           {required: true, message: "工程类型不能为空", trigger: "change"}
@@ -1210,6 +1210,10 @@ export default {
       this.queryParams.areaId = null
       this.queryParams.buildingId = null
       this.queryParams.unitId = null
+      this.communityOptions = [];
+      this.buildingOptions = [];
+      this.unitOptions=[];
+      this.houseOptions=[];
       getAreaList({district}).then(res => {
         this.communityOptions = res.data
       })
@@ -1218,18 +1222,23 @@ export default {
     communityHasChanged(areaId) {
       this.queryParams.buildingId = null
       this.queryParams.unitId = null
+      this.buildingOptions = [];
+      this.unitOptions=[];
+      this.houseOptions=[];
       getBuildingList({areaId}).then(res => {
         this.buildingOptions = res.data
       })
     },
     buildingHasChanged(buildingId, areaId) {
-      console.log(buildingId)
+      this.unitOptions=[];
+      this.houseOptions=[];
       this.queryParams.unitId = null
       getUnits(buildingId).then(res => {
         this.unitOptions = res.data
       })
     },
     unitHasChanged(unitId) {
+      this.houseOptions=[];
       getHousesList({unitId}).then(res => {
         console.log(res)
         this.houseOptions = res.data

+ 1 - 1
src/views/zdsz/engineeringInfrastructure/index.vue

@@ -63,7 +63,7 @@
       <el-table-column label="工程地址" align="center" prop="enginAddre" />
       <el-table-column label="建设单位" align="center" prop="constructUnit" />
       <el-table-column label="开工时间" align="center" prop="startTime" />
-      <el-table-column label="备注" align="center" prop="enginContent" show-overflow-tooltip/>
+      <el-table-column label="施工内容" align="center" prop="enginContent" show-overflow-tooltip/>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="400">
         <template slot-scope="scope">
             <el-button

+ 10 - 0
src/views/zdsz/house/index.vue

@@ -352,6 +352,16 @@ export default {
     },
     /** 重置按钮操作 */
     resetQuery() {
+      this.queryParams= {
+        pageNum: 1,
+          pageSize: 10,
+          areaId: undefined,
+          buildingId: undefined,
+          unitId: undefined,
+          name: undefined,
+      };
+      this.builds = []
+      this.units = []
       this.resetForm("queryForm");
 
       this.handleQuery();