From 3565bfa9400b96ca6b3aefe81726ce6b1c871877 Mon Sep 17 00:00:00 2001 From: jiangyinzhi Date: Fri, 17 Apr 2026 09:29:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=B6=E4=BB=96=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../energyEfficiency/constructionInfo.vue | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) 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