Просмотр исходного кода

修改市政工程列表数据

wangzhe 1 год назад
Родитель
Сommit
d1431c000e

+ 2 - 2
src/components/ConstructionDetails/index.vue

@@ -1326,12 +1326,12 @@ export default {
     getwelding(_,idx)
     {
       this.currentCollapses[idx].welding = [...arguments][0][0].map(e=>e.url) || [];
-      console.log(this.currentCollapses[idx].welding)
+      console.log("焊接照片===",this.currentCollapses[idx].welding)
     },
     getaczoiling(_,idx)
     {
       this.currentCollapses[idx].aczoiling = [...arguments][0][0].map(e=>e.url) || [];
-      console.log(this.currentCollapses[idx].aczoiling)
+      console.log("防腐照片===",this.currentCollapses[idx].aczoiling)
     },
     getpiping(_,idx)
     {

+ 6 - 2
src/views/zdsz/engineeringIndustry/index.vue

@@ -833,7 +833,9 @@ export default {
             this.zEngineeringNodeBo.zEngineeringInfoBo = response.data.zEngineeringNodeBoList[0].zEngineeringInfoBoList[0]
           }
         }
-        this.form.enginClassification = this.form.enginClassification.split(",");
+        if(this.form.enginClassification){
+          this.form.enginClassification = this.form.enginClassification.split(",");
+        }
 
         this.title = (this.form.type === '1' ? "修改工业工程" : "修改市政工程");
         this.currentType = 'put'
@@ -848,8 +850,10 @@ export default {
         this.form.zEngineeringNodeBo = this.zEngineeringNodeBo
         this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo = this.zEngineeringMaterialBo
       }
-      if (this.form.enginClassification != [] && this.form.enginClassification.length>0) {
+      if (this.form.enginClassification && this.form.enginClassification != [] && this.form.enginClassification.length>0) {
         this.form.enginClassification = this.form.enginClassification.join(',');
+      }else {
+        this.form.enginClassification = ""
       }
       this.$refs["form"].validate(valid => {
         if (valid) {