From af3abbdab4decd30a011619cf5c7210e3313ea6d Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 5 Jan 2023 09:53:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=BF=87=E6=BB=A4=E5=99=A8):=20=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=86=B2=E7=AA=81=E5=AF=BC=E8=87=B4=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../panel/filter/filterMain/FilterControl.vue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/frontend/src/views/panel/filter/filterMain/FilterControl.vue b/frontend/src/views/panel/filter/filterMain/FilterControl.vue index 352138253b..846602157d 100644 --- a/frontend/src/views/panel/filter/filterMain/FilterControl.vue +++ b/frontend/src/views/panel/filter/filterMain/FilterControl.vue @@ -280,10 +280,8 @@ export default { datasetParams: { type: Array, default: () => [] - }, - activeName:{ - } + }, data() { return { @@ -344,18 +342,18 @@ export default { hasParam = true } } - if(!hasParam){ + if (!hasParam) { this.allParams.push(this.datasetParams[j]) } } } } }, - 'activeName':{ + 'activeName': { handler(newName, oldName) { - if(this.activeName === 'assembly'){ + if (this.activeName === 'assembly') { this.allParams = JSON.parse(JSON.stringify(this.childViews.datasetParams)) - }else { + } else { if (this.datasetParams.length > 0) { for (var j = 0; j < this.datasetParams.length; j++) { var hasParam = false @@ -364,7 +362,7 @@ export default { hasParam = true } } - if(!hasParam){ + if (!hasParam) { this.allParams.push(this.datasetParams[j]) } }