Browse Source

修改年级问题

lex 1 year ago
parent
commit
a7a8035a20

+ 9 - 5
dist/project/initiation.html

@@ -317,6 +317,10 @@
             { text: '三年级', value: 3 },
             { text: '四年级', value: 4 },
             { text: '五年级', value: 5 },
+            { text: '六年级', value: 6 },
+            { text: '七年级', value: 7 },
+            { text: '八年级', value: 8 },
+            { text: '九年级', value: 9 }
           ], // 年级数组列表
           classList: classList,
           columns: [],
@@ -388,11 +392,11 @@
           if (schoolDetail.data.code === 200 && schoolDetail.data.data) {
             var schoolSystem = schoolDetail.data.data.schoolSystem || 'sixYearSystem'
             this.schoolId = schoolDetail.data.data.id
-            if (schoolSystem === 'sixYearSystem') {
-              this.currentGrade.push({ text: '六年级', value: 6 }, { text: '初一', value: 7 }, { text: '初二', value: 8 }, { text: '初三', value: 9 })
-            } else {
-              this.currentGrade.push({ text: '初一', value: 6 }, { text: '初二', value: 7 }, { text: '初三', value: 8 }, { text: '初四', value: 9 })
-            }
+            // if (schoolSystem === 'sixYearSystem') {
+            //   this.currentGrade.push({ text: '六年级', value: 6 }, { text: '初一', value: 7 }, { text: '初二', value: 8 }, { text: '初三', value: 9 })
+            // } else {
+            //   this.currentGrade.push({ text: '初一', value: 6 }, { text: '初二', value: 7 }, { text: '初三', value: 8 }, { text: '初四', value: 9 })
+            // }
           }
 
 

+ 9 - 5
public/project/initiation.html

@@ -317,6 +317,10 @@
             { text: '三年级', value: 3 },
             { text: '四年级', value: 4 },
             { text: '五年级', value: 5 },
+            { text: '六年级', value: 6 },
+            { text: '七年级', value: 7 },
+            { text: '八年级', value: 8 },
+            { text: '九年级', value: 9 }
           ], // 年级数组列表
           classList: classList,
           columns: [],
@@ -388,11 +392,11 @@
           if (schoolDetail.data.code === 200 && schoolDetail.data.data) {
             var schoolSystem = schoolDetail.data.data.schoolSystem || 'sixYearSystem'
             this.schoolId = schoolDetail.data.data.id
-            if (schoolSystem === 'sixYearSystem') {
-              this.currentGrade.push({ text: '六年级', value: 6 }, { text: '初一', value: 7 }, { text: '初二', value: 8 }, { text: '初三', value: 9 })
-            } else {
-              this.currentGrade.push({ text: '初一', value: 6 }, { text: '初二', value: 7 }, { text: '初三', value: 8 }, { text: '初四', value: 9 })
-            }
+            // if (schoolSystem === 'sixYearSystem') {
+            //   this.currentGrade.push({ text: '六年级', value: 6 }, { text: '初一', value: 7 }, { text: '初二', value: 8 }, { text: '初三', value: 9 })
+            // } else {
+            //   this.currentGrade.push({ text: '初一', value: 6 }, { text: '初二', value: 7 }, { text: '初三', value: 8 }, { text: '初四', value: 9 })
+            // }
           }
 
 

+ 28 - 21
src/school/orchestra/modal/student-list.tsx

@@ -28,7 +28,10 @@ export const classStr = {
   3: '三年级',
   4: '四年级',
   5: '五年级',
-  6: '六年级'
+  6: '六年级',
+  7: '七年级',
+  8: '八年级',
+  9: '九年级'
 }
 
 export default defineComponent({
@@ -62,7 +65,11 @@ export default defineComponent({
         { text: '二年级', value: 2 },
         { text: '三年级', value: 3 },
         { text: '四年级', value: 4 },
-        { text: '五年级', value: 5 }
+        { text: '五年级', value: 5 },
+        { text: '六年级', value: 6 },
+        { text: '七年级', value: 7 },
+        { text: '八年级', value: 8 },
+        { text: '九年级', value: 9 }
       ] as any, // 年级列表
       check: [] as any,
       checkboxRefs: [] as any,
@@ -162,25 +169,25 @@ export default defineComponent({
     onMounted(() => {
       console.log(props.selectStudentIds, 'onmount')
       // 判断年级
-      if (baseState.user.data.school?.schoolSystem === 'sixYearSystem') {
-        state.classList.push(
-          ...[
-            { text: '六年级', value: 6 },
-            { text: '初一', value: 7 },
-            { text: '初二', value: 8 },
-            { text: '初三', value: 9 }
-          ]
-        )
-      } else {
-        state.classList.push(
-          ...[
-            { text: '初一', value: 6 },
-            { text: '初二', value: 7 },
-            { text: '初三', value: 8 },
-            { text: '初四', value: 9 }
-          ]
-        )
-      }
+      // if (baseState.user.data.school?.schoolSystem === 'sixYearSystem') {
+      //   state.classList.push(
+      //     ...[
+      //       { text: '六年级', value: 6 },
+      //       { text: '初一', value: 7 },
+      //       { text: '初二', value: 8 },
+      //       { text: '初三', value: 9 }
+      //     ]
+      //   )
+      // } else {
+      //   state.classList.push(
+      //     ...[
+      //       { text: '初一', value: 6 },
+      //       { text: '初二', value: 7 },
+      //       { text: '初三', value: 8 },
+      //       { text: '初四', value: 9 }
+      //     ]
+      //   )
+      // }
 
       if (props.orchestraList.length > 0) {
         const o: any = props.orchestraList[0]

+ 22 - 18
src/student/music-group/pre-apply/component/apply.tsx

@@ -51,7 +51,11 @@ export default defineComponent({
         { text: '二年级', value: 2 },
         { text: '三年级', value: 3 },
         { text: '四年级', value: 4 },
-        { text: '五年级', value: 5 }
+        { text: '五年级', value: 5 },
+        { text: '六年级', value: 6 },
+        { text: '七年级', value: 7 },
+        { text: '八年级', value: 8 },
+        { text: '九年级', value: 9 }
       ], // 年级数组列表
       classList: classList,
       subjectList: [] as any, // 声部列表
@@ -180,23 +184,23 @@ export default defineComponent({
       // console.log('pre register code: ' + state.code)
       await getSubjects()
       // 判断学年制
-      if (props.schoolSystem === 'sixYearSystem') {
-        state.currentGrade.push(
-          { text: '六年级', value: 6 },
-          { text: '初一', value: 7 },
-          { text: '初二', value: 8 },
-          { text: '初三', value: 9 }
-        )
-      } else {
-        state.classList.push(
-          ...[
-            { text: '初一', value: 6 },
-            { text: '初二', value: 7 },
-            { text: '初三', value: 8 },
-            { text: '初四', value: 9 }
-          ]
-        )
-      }
+      // if (props.schoolSystem === 'sixYearSystem') {
+      //   state.currentGrade.push(
+      //     { text: '六年级', value: 6 },
+      //     { text: '初一', value: 7 },
+      //     { text: '初二', value: 8 },
+      //     { text: '初三', value: 9 }
+      //   )
+      // } else {
+      //   state.classList.push(
+      //     ...[
+      //       { text: '初一', value: 6 },
+      //       { text: '初二', value: 7 },
+      //       { text: '初三', value: 8 },
+      //       { text: '初四', value: 9 }
+      //     ]
+      //   )
+      // }
       await studentRegister()
 
       // 判断是否有授权码

+ 25 - 21
src/student/pre-register-active/index.tsx

@@ -30,7 +30,11 @@ export default defineComponent({
         { text: '二年级', value: 2 },
         { text: '三年级', value: 3 },
         { text: '四年级', value: 4 },
-        { text: '五年级', value: 5 }
+        { text: '五年级', value: 5 },
+        { text: '六年级', value: 6 },
+        { text: '七年级', value: 7 },
+        { text: '八年级', value: 8 },
+        { text: '九年级', value: 9 }
       ], // 年级数组列表
       showPicker: false,
       classPicker: false,
@@ -141,26 +145,26 @@ export default defineComponent({
         const { data } = await request.get(
           '/api-student/open/orchestra/detail/' + forms.orchestraId
         )
-        const schoolSystem = data.schoolSystem || 'sixYearSystem'
-        if (schoolSystem === 'sixYearSystem') {
-          forms.currentGradeList.push(
-            ...[
-              { text: '六年级', value: 6 },
-              { text: '初一', value: 7 },
-              { text: '初二', value: 8 },
-              { text: '初三', value: 9 }
-            ]
-          )
-        } else {
-          forms.currentGradeList.push(
-            ...[
-              { text: '初一', value: 6 },
-              { text: '初二', value: 7 },
-              { text: '初三', value: 8 },
-              { text: '初四', value: 9 }
-            ]
-          )
-        }
+        // const schoolSystem = data.schoolSystem || 'sixYearSystem'
+        // if (schoolSystem === 'sixYearSystem') {
+        //   forms.currentGradeList.push(
+        //     ...[
+        //       { text: '六年级', value: 6 },
+        //       { text: '初一', value: 7 },
+        //       { text: '初二', value: 8 },
+        //       { text: '初三', value: 9 }
+        //     ]
+        //   )
+        // } else {
+        //   forms.currentGradeList.push(
+        //     ...[
+        //       { text: '初一', value: 6 },
+        //       { text: '初二', value: 7 },
+        //       { text: '初三', value: 8 },
+        //       { text: '初四', value: 9 }
+        //     ]
+        //   )
+        // }
         forms.parentConferencesAgenda = data.parentConferencesAgenda
 
         // 判断是否获取微信code码