From 7a697ec7b672f1f3942a661bb189c961b9f8ad39 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Mon, 26 Dec 2022 17:40:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E6=9C=AC=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=20#4144=20=20=E4=BB=AA=E8=A1=A8=E6=9D=BF?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/elVisualSelect/index.vue | 5 ++++- frontend/src/views/panel/list/PanelViewShow.vue | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/elVisualSelect/index.vue b/frontend/src/components/elVisualSelect/index.vue index 299c20ad56..e812824b95 100644 --- a/frontend/src/components/elVisualSelect/index.vue +++ b/frontend/src/components/elVisualSelect/index.vue @@ -145,7 +145,10 @@ export default { return this.selectValue === id && 'selected' }, selectAllChange(val) { - const vals = val ? [...this.list.map(ele => ele.id)] : [] + let vals = val ? [...this.list.map(ele => ele.id)] : [] + if (this.keyWord.trim() && val) { + vals = this.list.filter(item => item.text.includes(this.keyWord.trim())).map(ele => ele.id) + } this.visualChange(vals) this.selectValue = vals this.$emit('change', vals) diff --git a/frontend/src/views/panel/list/PanelViewShow.vue b/frontend/src/views/panel/list/PanelViewShow.vue index 0d7f65fb38..c5bde619c0 100644 --- a/frontend/src/views/panel/list/PanelViewShow.vue +++ b/frontend/src/views/panel/list/PanelViewShow.vue @@ -151,7 +151,6 @@