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 @@