|
@@ -955,11 +955,12 @@ export default {
|
|
|
},
|
|
|
// 选择学生的方法修改
|
|
|
SelectionStudent (val) {
|
|
|
- console.log('选择学生')
|
|
|
+
|
|
|
this.chioseStudent = val;
|
|
|
},
|
|
|
// 新增选中的学生
|
|
|
NewselectionStudent (val) {
|
|
|
+
|
|
|
this.chioseStudent = val;
|
|
|
// 这里新增的添加到选中的学生列表 根据学生id去重
|
|
|
if (this.chioseStudent.length > 0) {
|
|
@@ -1144,12 +1145,16 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
if (this.activeType == 'HIGH_ONLINE') {
|
|
|
+
|
|
|
superFindClassGroups({ classGroupId: this.activeClass }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
let maxNum = res.data.rows[0].expectStudentNum;
|
|
|
if (arr.length + this.activeListStudent.length > maxNum) {
|
|
|
this.$message.error('超过预计招生人数');
|
|
|
return;
|
|
|
+ } else if (this.activeListStudent.length > 5 || this.activeListStudent.length < 3) {
|
|
|
+ this.$message.error('线上技能班必须为3-5人');
|
|
|
+ return;
|
|
|
} else {
|
|
|
addStudents({
|
|
|
classGroupId: this.activeClass,
|
|
@@ -1216,6 +1221,10 @@ export default {
|
|
|
this.$message.error("班级里至少要有一名学生");
|
|
|
return;
|
|
|
}
|
|
|
+ if (this.activeType == 'HIGH_ONLINE' && (this.activeListStudent.length > 5 || this.activeListStudent.length < 3)) {
|
|
|
+ this.$message.error("线上技能班必须为3-5人");
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.infoVisible = true;
|
|
|
},
|
|
|
addWeek () {
|