|
@@ -135,8 +135,8 @@
|
|
|
@click="addNewClass('MIX')">新建合奏班</div>
|
|
|
<div class="add"
|
|
|
@click="addNewClass('HIGH')">基础技能班</div>
|
|
|
- <div class="add"
|
|
|
- @click="addNewClass('HIGH_ONLINE')">线上基础技能班</div>
|
|
|
+ <!-- <div class="add"
|
|
|
+ @click="addNewClass('HIGH_ONLINE')">线上基础技能班</div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1144,34 +1144,36 @@ export default {
|
|
|
this.$message.error("至少添加一名学员");
|
|
|
return;
|
|
|
}
|
|
|
- if (this.activeType == 'HIGH_ONLINE') {
|
|
|
+ // 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,
|
|
|
- userIdsStr: arr.join(",")
|
|
|
- }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.studentVisible = false;
|
|
|
- this.$message.success("添加成功");
|
|
|
- this.getList();
|
|
|
- return
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }else {
|
|
|
- addStudents({
|
|
|
+ // 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,
|
|
|
+ // userIdsStr: arr.join(",")
|
|
|
+ // }).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.studentVisible = false;
|
|
|
+ // this.$message.success("添加成功");
|
|
|
+ // this.getList();
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+
|
|
|
+ // }
|
|
|
+ addStudents({
|
|
|
classGroupId: this.activeClass,
|
|
|
userIdsStr: arr.join(",")
|
|
|
}).then(res => {
|
|
@@ -1181,8 +1183,7 @@ export default {
|
|
|
this.getList();
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
SelectionMix (val) {
|
|
|
this.activeSingleLists = val;
|