Bladeren bron

Merge branch 'zdsz3.0' of http://192.168.10.18:3000/sunwei/zdsz_vue into zdsz3.0

付宇航 1 jaar geleden
bovenliggende
commit
b0b2f200cc
1 gewijzigde bestanden met toevoegingen van 12 en 16 verwijderingen
  1. 12 16
      src/views/zdsz/engineeringIndustry/index.vue

+ 12 - 16
src/views/zdsz/engineeringIndustry/index.vue

@@ -296,8 +296,8 @@
       ref="ConstructionDetails"
       :status="status"
       :currentCollapses="currentCollapses"
-      @updateNodeOption = "updateNodeOption"
-      enginType="工业工程"
+      @updateNodeOption="updateNodeOption"
+      :enginType="this.$route.query.type == '1' ? '工业工程' : '市政工程'"
     />
   </div>
 </template>
@@ -343,7 +343,7 @@ export default {
       loading: true,
       // 选中数组
       ids: [],
-      status:null,
+      status: null,
       // 非单个禁用
       single: true,
       // 非多个禁用
@@ -478,9 +478,9 @@ export default {
           {required: true, message: "图片不能为空", trigger: ['change', 'blur'], validator: validatePicPass}
         ],
       },
-      searchParams:{
-        enginName:null,             // 工程名称
-        enginClassification:null,   // 工程分类
+      searchParams: {
+        enginName: null,             // 工程名称
+        enginClassification: null,   // 工程分类
       },
       currentType: null, // 附件组件类型 put修改 add新增
     };
@@ -494,10 +494,10 @@ export default {
     this.getList();
   },
   mounted() {
-    // 手动渲染
-    // setInterval(() => {
-    //   this.$forceUpdate()
-    // }, 500)
+    // 获取材质
+    getEnginMaterialQualityList({enginType: this.$route.query.type == '1' ? '工业工程' : '市政工程'}).then(res => {
+      this.materialQualityList = res.data
+    });
   },
   methods: {
     validateState(rule, value, callback) {
@@ -535,7 +535,7 @@ export default {
         }
       })
     },
-    updateNodeOption(value){
+    updateNodeOption(value) {
       console.log(this.form);
       console.log(value)
       this.form.files = this.form.pics
@@ -556,6 +556,7 @@ export default {
     },
     //添加用料信息
     addzEngineeringMaterBo(row) {
+
       const id = row.id
       putEngineeEngineeIndustry(id).then(response => {
         this.loading = false;
@@ -675,11 +676,6 @@ export default {
     /** 查询市政工程|工业工程列表 */
     getList(val) {
       this.loading = true;
-      let enginType = this.form.zEngineeringNodeBo.type;
-      // 获取材质
-      getEnginMaterialQualityList({enginType}).then(res => {
-        this.materialQualityList = res.data
-      });
       getEngineeIndustryList(val || {}).then(res => {
         this.comprehensiveList = res.rows;
         this.total = res.total;