Browse Source

工业工程、市政工程页面修改请求体层级

吕宣芝 1 year ago
parent
commit
e06544d656
1 changed files with 18 additions and 76 deletions
  1. 18 76
      src/views/zdsz/engineeringIndustry/index.vue

+ 18 - 76
src/views/zdsz/engineeringIndustry/index.vue

@@ -12,7 +12,14 @@
         <el-input v-model="queryParams.enginName" placeholder="请输入建筑工程名称"></el-input>
       </el-form-item>
       <el-form-item label="工程分类" prop="enginClassification" v-if="engineeType">
-        <el-input v-model="queryParams.enginClassification" placeholder="请输入工程分类"></el-input>
+        <el-select v-model="queryParams.enginClassification" placeholder="请选择工程分类">
+          <el-option
+            v-for="e in dict.type.engin_classification"
+            :key="e.value"
+            :label="e.label"
+            :value="e.value"
+          ></el-option>
+        </el-select>
       </el-form-item>
       <el-form-item>
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
@@ -286,13 +293,13 @@
 
 <script>
 import {
-  getEngineeIndustryList,                            // 查询工程列表
-  addEngineeEngineeIndustry,                         // 新增工程
-  putEngineeEngineeIndustry,                         // 查询工程详情
-  EditEngineeEngineeIndustry,                        // 修改工程
-  DelEngineeEngineeIndustry                          // 删除工程
-} from "@/api/zdsz/engineeringIndustry"
-import EngineePipe from "@/components/EngineePipe"
+  addEngineeEngineeIndustry,
+  DelEngineeEngineeIndustry,
+  EditEngineeEngineeIndustry,
+  getEngineeIndustryList,
+  putEngineeEngineeIndustry
+} from '@/api/zdsz/engineeringIndustry'
+import EngineePipe from '@/components/EngineePipe'
 
 export default {
   name: "openrepair",
@@ -560,6 +567,7 @@ export default {
             this.form.zEngineeringNodeBo = this.zEngineeringInfoBo
             this.form.zEngineeringNodeBo.zEngineeringInfoBo = {}
             this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngiineeringPhotoBoList = this.form.zEngineeringNodeBo.zEngiineeringPhotoBoList
+            this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo = this.form.zEngineeringNodeBo.zEngineeringMaterialBo
             addEngineeEngineeIndustry(this.form).then(res => {
               this.$modal.msgSuccess("新增成功");
               this.open = false;
@@ -570,6 +578,7 @@ export default {
             this.form.zEngineeringNodeBo = this.zEngineeringInfoBo
             this.form.zEngineeringNodeBo.zEngineeringInfoBo = {}
             this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngiineeringPhotoBoList = this.form.zEngineeringNodeBo.zEngiineeringPhotoBoList
+            this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo = this.form.zEngineeringNodeBo.zEngineeringMaterialBo
             EditEngineeEngineeIndustry(this.form).then(res => {
               this.$modal.msgSuccess("修改成功");
               this.open = false;
@@ -582,8 +591,7 @@ export default {
     },
     /** 删除按钮操作 */
     handleDelete(row) {
-      const ids = row.id || this.ids;
-      this.$modal.confirm('是否确认删除维修为"' + ids + '"的数据项?').then(() => {
+      this.$modal.confirm('是否确认删除所选择的数据项?').then(() => {
         this.loading = true;
         return DelEngineeEngineeIndustry(ids);
       }).then(() => {
@@ -603,72 +611,6 @@ export default {
     }
   }
 };
-
-
-// getBuildings(id) {
-//   this.units = []
-//   this.houses = []
-//   this.queryParams.buildingId = undefined
-//   this.queryParams.unitId = undefined
-//   this.queryParams.houseId = undefined
-//   getBuildings(id).then(res => {
-//     this.builds = res.data
-//   })
-// },
-// getUnits(id) {
-//   this.houses = []
-//   this.queryParams.unitId = undefined
-//   this.queryParams.houseId = undefined
-//   getUnits(this.queryParams.areaId,id).then(res => {
-//     this.units = res.data
-//   })
-// },
-// getAreas() {
-//   this.builds = []
-//   this.units = []
-//   this.houses = []
-//   this.queryParams.buildingId = undefined
-//   this.queryParams.unitId = undefined
-//   this.queryParams.houseId = undefined
-//   this.form.buildingId = undefined
-//   this.form.unitId = undefined
-//   this.form.houseId = undefined
-//   getAreas().then(res => {
-//     this.areas = res.data;
-//   });
-// },
-// getHouses() {
-//   this.houses = []
-//   this.queryParams.houseId = undefined
-//   getHouses(this.queryParams.unitId).then(res => {
-//     this.houses = res.data;
-//   });
-// },
-// getBuildings1(id) {
-//   this.units = []
-//   this.houses = []
-//   this.form.buildingId = undefined
-//   this.form.unitId = undefined
-//   this.form.houseId = undefined
-//   getBuildings(id).then(res => {
-//     this.builds = res.data
-//   })
-// },
-// getUnits1(id) {
-//   this.houses = []
-//   this.form.unitId = undefined
-//   this.form.houseId = undefined
-//   getUnits(this.form.areaId,id).then(res => {
-//     this.units = res.data
-//   })
-// },
-// getHouses1() {
-//   this.houses = []
-//   this.form.houseId = undefined
-//   getHouses(this.form.unitId).then(res => {
-//     this.houses = res.data;
-//   });
-// },
 </script>