From ec6a72e143a60a83fbde3f3a27c334a22e5f3212 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 15 May 2025 16:44:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=B1=E5=83=8F=E8=B4=A8=E6=8E=A7=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E9=85=8D=E7=BD=AE=E6=9C=AA=E5=8B=BE=E9=80=89=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E6=8F=90=E4=BA=A4=E4=BC=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../setting/qc-question/components/DefaultQS.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/trials/trials-panel/setting/qc-question/components/DefaultQS.vue b/src/views/trials/trials-panel/setting/qc-question/components/DefaultQS.vue index 93343be5..305f7345 100644 --- a/src/views/trials/trials-panel/setting/qc-question/components/DefaultQS.vue +++ b/src/views/trials/trials-panel/setting/qc-question/components/DefaultQS.vue @@ -145,14 +145,16 @@ export default { arr.map(item => { this.$refs.qsList.toggleRowSelection(item, selected) }) + let list = [...selection, ...arr] if (selected) { - arr.forEach(item => { + list.forEach(item => { if (!this.selectArr.find(d => d.Id === item.Id)) { - this.selectArr.push(arr) + this.selectArr.push(item) } }) } else { - arr.forEach(item => { + list = [row, ...arr] + list.forEach(item => { let index = this.selectArr.indexOf(d => d.Id === item.Id) if (!~index) { this.selectArr.splice(index, 1)