From 9ee7fad99bab381cd52c02e99fc6a6637da552a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Wed, 31 Aug 2022 13:50:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/studentInfo/index.vue | 6 +-- src/views/system/teacherInfo/index.vue | 59 ++++++++++++++++---------- 2 files changed, 40 insertions(+), 25 deletions(-) diff --git a/src/views/system/studentInfo/index.vue b/src/views/system/studentInfo/index.vue index 2dbdd3c..00eaeac 100644 --- a/src/views/system/studentInfo/index.vue +++ b/src/views/system/studentInfo/index.vue @@ -1243,11 +1243,11 @@ export default { }, // 家长选中数据 handleSelectionChange2(val) { - // console.log(val); - this.parentlist = this.parentlist.filter((e) => e.id != val.id); + console.log(this.parentlist); if (this.parentlist.length == 2) { - this.$message.error("最多选择两位"); + return this.$message.error("最多选择两位"); } else { + this.parentlist = this.parentlist.filter((e) => e.id != val.id); this.parentlist.push(val); } if (this.parent1 == "") { diff --git a/src/views/system/teacherInfo/index.vue b/src/views/system/teacherInfo/index.vue index f46390a..2a9f92d 100644 --- a/src/views/system/teacherInfo/index.vue +++ b/src/views/system/teacherInfo/index.vue @@ -198,11 +198,7 @@ >{{ kindergartenName }} - + - + @@ -302,8 +302,11 @@ - - + +