From d005f980c691bd788ff051378900d42a0694914d Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 20 Dec 2022 17:10:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=BF=87=E6=BB=A4=E5=99=A8):=20=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=8C=83=E5=9B=B4=E8=BF=87=E6=BB=A4=E5=99=A8=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=AE=BE=E7=BD=AE=E5=A4=9A=E4=B8=AA=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=9B=86=E6=97=B6=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/panel/filter/filterMain/FilterControl.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/panel/filter/filterMain/FilterControl.vue b/frontend/src/views/panel/filter/filterMain/FilterControl.vue index 32d4512603..46d2117b18 100644 --- a/frontend/src/views/panel/filter/filterMain/FilterControl.vue +++ b/frontend/src/views/panel/filter/filterMain/FilterControl.vue @@ -360,9 +360,12 @@ export default { changeDynamicParams(val, name) { const start = this.attrs.startParameters ? JSON.parse(JSON.stringify(this.attrs.startParameters)) : [] - const end = this.attrs.endParameters ? JSON.parse(JSON.stringify(this.attrs.endParameters)) : [] + let end = this.attrs.endParameters ? JSON.parse(JSON.stringify(this.attrs.endParameters)) : [] if (end?.length) { - end[0] += '_START_END_SPLIT' + end = end.map(item => { + item = item + '_START_END_SPLIT' + return item + }) } this.attrs.parameters = [...new Set([...start, ...end])] }, @@ -393,6 +396,12 @@ export default { enableParametersChange(value) { if (!value) { this.attrs.parameters = [] + if (this.attrs.startParameters?.length) { + this.attrs.startParameters = [] + } + if (this.attrs.endParameters?.length) { + this.attrs.endParameters = [] + } } this.fillAttrs2Filter() },