From a22bcf76d84a4aa88c3f2fa98a7d0777fc6a8a3f Mon Sep 17 00:00:00 2001 From: liujun Date: Thu, 13 Jun 2024 18:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD=E4=B8=8D?= =?UTF-8?q?=E5=A5=BD=E4=BD=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../classMessage/classMessage/components/initClass.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/classMessage/classMessage/components/initClass.vue b/src/views/classMessage/classMessage/components/initClass.vue index 5039c3f..99fb041 100644 --- a/src/views/classMessage/classMessage/components/initClass.vue +++ b/src/views/classMessage/classMessage/components/initClass.vue @@ -284,7 +284,8 @@ export default { CLASS_SIZE: '', // 班级容量 CLASS_STATUS: '', // 班级状态(0-待开班、1-已开班、2-完成) VALIDITY_PERIOD: [], - CLASS_MESSAGE_ID: '' + CLASS_MESSAGE_ID: '', + peopleList: [] }, util: { BELONG_TO_CORP: '', @@ -522,6 +523,11 @@ export default { this.fullscreenFlag = !this.fullscreenFlag }, addSelect(row) { + if (this.form.CLASS_SIZE === '' || !this.form.CLASS_SIZE) { + this.$message.error('请先选择班级容量') + this.$refs.multipleTable.clearSelection() + return + } this.selectPeopleList.push(row) this.$refs.multipleTable.toggleRowSelection(row) },