|
@@ -483,8 +483,13 @@ export default defineComponent({
|
|
|
}
|
|
|
|
|
|
// 判断新建学员是否上限了
|
|
|
+ console.log(
|
|
|
+ forms.studentItem.userId,
|
|
|
+ forms.studentList.length,
|
|
|
+ forms.multi_user_limit
|
|
|
+ );
|
|
|
if (
|
|
|
- !forms.studentItem.userId &&
|
|
|
+ forms.isRegister === 'create' &&
|
|
|
forms.studentList.length >= forms.multi_user_limit
|
|
|
) {
|
|
|
otherParams.showOtherMessage = `同一手机号最多创建${forms.multi_user_limit}个学生`;
|
|
@@ -690,17 +695,18 @@ export default defineComponent({
|
|
|
});
|
|
|
studentInfo.extra.gender = firstStudent.gender;
|
|
|
|
|
|
- forms.isRegister = 'update';
|
|
|
- } else {
|
|
|
- forms.isRegister = 'create';
|
|
|
- forms.isChangeSchool = false;
|
|
|
- studentInfo.extra.nickname = '';
|
|
|
- studentInfo.extra.currentGradeNum = '';
|
|
|
- studentInfo.extra.currentClass = '';
|
|
|
- studentInfo.extra.gender = 1;
|
|
|
- forms.currentClassText = '';
|
|
|
- forms.gradeNumText = '';
|
|
|
+ // forms.isRegister = 'update';
|
|
|
}
|
|
|
+ // else {
|
|
|
+ // forms.isRegister = 'create';
|
|
|
+ // forms.isChangeSchool = false;
|
|
|
+ // studentInfo.extra.nickname = '';
|
|
|
+ // studentInfo.extra.currentGradeNum = '';
|
|
|
+ // studentInfo.extra.currentClass = '';
|
|
|
+ // studentInfo.extra.gender = 1;
|
|
|
+ // forms.currentClassText = '';
|
|
|
+ // forms.gradeNumText = '';
|
|
|
+ // }
|
|
|
} catch {
|
|
|
//
|
|
|
}
|
|
@@ -1837,13 +1843,17 @@ export default defineComponent({
|
|
|
onConfirm={() => {
|
|
|
otherParams.showOtherSchool = false;
|
|
|
if (otherParams.otherType === 'nickname') {
|
|
|
- forms.isRegister = 'update'; // 新建
|
|
|
+ forms.isRegister = 'update'; // 修改
|
|
|
// 直接注册
|
|
|
onSubmit();
|
|
|
} else if (otherParams.otherType === 'change') {
|
|
|
forms.isChangeSchool = true;
|
|
|
// 直接注册
|
|
|
onSubmit();
|
|
|
+ } else if (otherParams.otherType === 'limit') {
|
|
|
+ // 人数超限制
|
|
|
+ forms.isRegister = '';
|
|
|
+ forms.isChangeSchool = false;
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
@@ -1882,7 +1892,7 @@ export default defineComponent({
|
|
|
}
|
|
|
});
|
|
|
studentInfo.extra.gender = firstStudent.gender;
|
|
|
- forms.isRegister = 'update';
|
|
|
+ // forms.isRegister = 'update';
|
|
|
} else {
|
|
|
forms.isRegister = 'create';
|
|
|
forms.isChangeSchool = false;
|