|
@@ -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) {
|