diff --git a/src/views/energyEfficiency/constructionInfo.vue b/src/views/energyEfficiency/constructionInfo.vue index 90399f7..0c46d3a 100644 --- a/src/views/energyEfficiency/constructionInfo.vue +++ b/src/views/energyEfficiency/constructionInfo.vue @@ -13,6 +13,7 @@ + @@ -998,6 +999,10 @@ export default { // ele.disabled = false // } // }) + }else{ + this.showData.buildType1 = this.option[i].text + this.mainActiveIndex = i + } } @@ -1276,18 +1281,22 @@ export default { this.mainActiveIndex = 0 res.data.forEach((v, i) => { if(v.code == select) this.mainActiveIndex = i - const list = v.child.map((ele) => { - return { - text: ele.name, - id: ele.code, - pCode: ele.pCode - } - }) + let list = [] + if(v.child){ + list = v.child.map((ele) => { + return { + text: ele.name, + id: ele.code, + pCode: ele.pCode + } + }) + } + arr.push({ text: v.name, value: v.code, children: list, - disabled: select!=5&&!(v.code == select) + disabled: select!=6&&!(v.code == select) }) }) this.option = arr