|
@@ -1214,8 +1214,8 @@ export default {
|
|
|
console.log(res)
|
|
|
let newData = res.data
|
|
|
let zEngineeringNodeBo = {
|
|
|
- type:res.data.zEngineeringNodeBoList[0].type || null,
|
|
|
- zEngineeringInfoBo:res.data.zEngineeringNodeBoList[0].zEngineeringInfoBo
|
|
|
+ type:res.data.zEngineeringNodeBoList.length >0 && res.data.zEngineeringNodeBoList[0].type || null,
|
|
|
+ zEngineeringInfoBo:res.data.zEngineeringNodeBoList.length >0 && res.data.zEngineeringNodeBoList[0].zEngineeringInfoBo || null,
|
|
|
}
|
|
|
newData.zEngineeringNodeBo = zEngineeringNodeBo
|
|
|
this.currentType = 'put'
|