From e8715235f9865e2c00ef40f08ee495c6319a9ae1 Mon Sep 17 00:00:00 2001 From: shaoyong Date: Mon, 25 Dec 2023 16:29:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E4=BA=BA=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/qcIncome/selectUser.vue | 11 +++++++---- src/views/quality/qcProduce/index.vue | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/views/quality/qcIncome/selectUser.vue b/src/views/quality/qcIncome/selectUser.vue index 33b94e7..a7e9c5e 100644 --- a/src/views/quality/qcIncome/selectUser.vue +++ b/src/views/quality/qcIncome/selectUser.vue @@ -126,12 +126,15 @@ export default { // 多选框选中数据 handleBomSelectionChange(selection) { - if(selection.length>1){ + /* if(selection.length>1){ this.$modal.msgSuccess("只能选一个"); - } + } */ + - this.ids = selection[0].userCode; - this.idsName = selection[0].userName; + /* this.ids = selection[0].userCode; + this.idsName = selection[0].userName; */ + this.ids = selection.map(item => item.userCode).join(','); + this.idsName = selection.map(item => item.userName).join(','); }, diff --git a/src/views/quality/qcProduce/index.vue b/src/views/quality/qcProduce/index.vue index 511c8b9..c359ddd 100644 --- a/src/views/quality/qcProduce/index.vue +++ b/src/views/quality/qcProduce/index.vue @@ -186,8 +186,8 @@ /> - - + +