From 810c55b592263dad1d97181132b13ea2f9046147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Mon, 10 Apr 2023 10:05:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E9=80=89=E4=BA=BA=E5=91=98=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=E9=80=89=E6=8B=A9=E5=90=8E=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/PersonnelSelection/index.vue | 5 +++++ jero-web/src/components/SelectedBy/index.vue | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/jero-web/src/components/PersonnelSelection/index.vue b/jero-web/src/components/PersonnelSelection/index.vue index 9ee43b9b3..624287933 100644 --- a/jero-web/src/components/PersonnelSelection/index.vue +++ b/jero-web/src/components/PersonnelSelection/index.vue @@ -303,6 +303,11 @@ onCheck(checkedKeys, info) { this.userIds = checkedKeys.checked + if (this.isSingleChoice) { + if (this.userIds.length > 1) { + this.userIds.shift() + } + } this.userName = [] if (this.userIds.length > 0) { for (let i = 0; i < this.userIds.length; i++) { diff --git a/jero-web/src/components/SelectedBy/index.vue b/jero-web/src/components/SelectedBy/index.vue index e81326a50..05d2381f5 100644 --- a/jero-web/src/components/SelectedBy/index.vue +++ b/jero-web/src/components/SelectedBy/index.vue @@ -168,6 +168,12 @@ this.userName.push(res.data.props.dataRef.title) }) } + if (this.isSingleChoice) { + if (this.userIds.length > 1) { + this.userIds.shift() + this.userName.shift() + } + } } } }