From 06f3746c8ab05f9fed5740f559f9058a82961df2 Mon Sep 17 00:00:00 2001 From: liujun Date: Wed, 17 Apr 2024 15:23:22 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D=201=E3=80=81=E4=BE=BF?= =?UTF-8?q?=E8=B7=9F=E9=80=89=E6=8B=A9=E5=90=8E=E6=9F=A5=E8=AF=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E6=9C=AA=E5=8F=98=202=E3=80=81=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E4=BA=BA=E5=91=98=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../classMessage/components/initClass.vue | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/src/views/classMessage/classMessage/components/initClass.vue b/src/views/classMessage/classMessage/components/initClass.vue index 0174b31..d58ac9f 100644 --- a/src/views/classMessage/classMessage/components/initClass.vue +++ b/src/views/classMessage/classMessage/components/initClass.vue @@ -104,7 +104,7 @@ border fit highlight-current-row - @select="updateSelect" + @selection-change="updateSelect" > @@ -164,6 +164,7 @@
+
已选择人员数量:{{ ($refs.multipleTable && $refs.multipleTable.selection)?$refs.multipleTable.selection.length:0 }}
已选择人员名称:
this.form.CLASS_SIZE) { + this.$message.error('已超出班级容量') + return + } + this.selectPeopleList = rows } - if (rows.length > this.form.CLASS_SIZE) { - this.$message.error('已超出班级容量') - return - } - this.selectPeopleList = rows }, confirm() { const list = this.$refs.multipleTable.selection @@ -325,6 +328,7 @@ export default { } this.selectPeopleList = [] this.util.BELONG_TO_CORP = '' + this.$refs.multipleTable.clearSelection() }, getDic() { let i = 0 @@ -474,7 +478,9 @@ export default { this.$refs.userPdf.init({ CLASS_MESSAGE_ID: CLASS_MESSAGE_ID }) }, changePeopleList() { - requestFN('/classMessage/getPeopleList?showCount=' + this.form.CLASS_SIZE + '¤tPage=1').then((data) => { + requestFN('/classMessage/getPeopleList?showCount=' + this.form.CLASS_SIZE + '¤tPage=1', + { BELONG_TO_CORP: this.util.BELONG_TO_CORP } + ).then((data) => { this.peopleList = data.varList for (let i = 0; i < this.peopleList.length; i++) { this.peopleList[i].STATUS = ''