JX.LI преди 1 година
родител
ревизия
3c640741e7
променени са 3 файла, в които са добавени 11 реда и са изтрити 6 реда
  1. 4 2
      src/views/gas/order/index.vue
  2. 3 2
      src/views/gas/order/index1.vue
  3. 4 2
      src/views/gas/order/index3.vue

+ 4 - 2
src/views/gas/order/index.vue

@@ -626,12 +626,15 @@ export default {
       this.form.areaName =  this.areaList.filter(item => item.id == areaId )[0].name
       getBuilding(areaId).then(response => {
         this.buildingList = response.data
+        this.getUnit(this.form.buildingId)
       })
     },
     getUnit(buildingId) {
       this.form.buildingName =  this.buildingList.filter(item => item.id == buildingId )[0].name
       getUnit(buildingId).then(response => {
         this.unitList = response.data
+        this.getHouse(this.form.unitId)
+
       })
     },
     getHouse(unitId) {
@@ -742,8 +745,7 @@ export default {
         this.open = true
         this.title = '修改工程管理'
         this.getBuilding(this.form.areaId)
-        this.getUnit(this.form.buildingId)
-        this.getHouse(this.form.unitId)
+
       })
     },
     /** 复审按钮操作 */

+ 3 - 2
src/views/gas/order/index1.vue

@@ -359,11 +359,13 @@ export default {
     getBuilding(areaId) {
       getBuilding(areaId).then(response => {
         this.buildingList = response.data;
+        this.getUnit(this.form.buildingId);
       });
     },
     getUnit(buildingId) {
       getUnit(buildingId).then(response => {
         this.unitList = response.data;
+        this.getHouse(this.form.unitId);
       });
     },
     getHouse(unitId) {
@@ -448,8 +450,7 @@ export default {
         this.open = true;
         this.title = "审核信息";
         this.getBuilding(this.form.areaId);
-        this.getUnit(this.form.buildingId);
-        this.getHouse(this.form.unitId);
+
       });
     },
     /** 提交按钮 */

+ 4 - 2
src/views/gas/order/index3.vue

@@ -377,11 +377,14 @@ export default {
     getBuilding(areaId) {
       getBuilding(areaId).then(response => {
         this.buildingList = response.data;
+        this.getUnit(this.form.buildingId);
       });
     },
     getUnit(buildingId) {
       getUnit(buildingId).then(response => {
         this.unitList = response.data;
+        this.getHouse(this.form.unitId);
+
       });
     },
     getHouse(unitId) {
@@ -469,8 +472,7 @@ export default {
         this.open = true;
         this.title = "修改工程管理";
         this.getBuilding(this.form.areaId);
-        this.getUnit(this.form.buildingId);
-        this.getHouse(this.form.unitId);
+
       });
     },
     /** 提交按钮 */