|
@@ -678,14 +678,14 @@ export default defineComponent({
|
|
|
if (data.school) {
|
|
|
const schoolInfo = data.school || {};
|
|
|
const schoolInstrumentList = schoolInfo.schoolInstrumentList || [];
|
|
|
- if (schoolInfo.schoolInstrumentSetType === 'SCHOOL') {
|
|
|
+ if (schoolInfo.instrumentSetType === 'SCHOOL') {
|
|
|
const instrumentCode = schoolInstrumentList[0]?.instrumentCode;
|
|
|
forms.gradeList = getGradeList(
|
|
|
schoolInfo.gradeYear,
|
|
|
instrumentCode
|
|
|
);
|
|
|
forms.classList = classList;
|
|
|
- } else if (schoolInfo.schoolInstrumentSetType === 'GRADE') {
|
|
|
+ } else if (schoolInfo.instrumentSetType === 'GRADE') {
|
|
|
schoolInstrumentList.forEach((item: any) => {
|
|
|
forms.gradeList.push({
|
|
|
text: GRADE_ENUM[item.gradeNum],
|
|
@@ -696,7 +696,7 @@ export default defineComponent({
|
|
|
});
|
|
|
forms.gradeList.sort((a: any, b: any) => a.value - b.value);
|
|
|
forms.classList = classList;
|
|
|
- } else if (schoolInfo.schoolInstrumentSetType === 'CLASS') {
|
|
|
+ } else if (schoolInfo.instrumentSetType === 'CLASS') {
|
|
|
// 班级
|
|
|
const tempGradeList: any[] = [];
|
|
|
schoolInstrumentList.forEach((item: any) => {
|
|
@@ -783,7 +783,11 @@ export default defineComponent({
|
|
|
forms.classList = classList;
|
|
|
});
|
|
|
return () => (
|
|
|
- <div class={styles['student-register']}>
|
|
|
+ <div
|
|
|
+ class={[
|
|
|
+ styles['student-register'],
|
|
|
+ browser().isTablet ? styles.registrationContainerTablet : ''
|
|
|
+ ]}>
|
|
|
<div class={styles.studentRegisterContainer}>
|
|
|
<div class={[styles.studentSection]}>
|
|
|
<Form labelAlign="left" class={styles.registerForm}>
|