소스 검색

調整學年篩選欄字串

osbert 4 년 전
부모
커밋
f4a51ebe1a
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      TEAMModelOS/ClientApp/src/view/student-account/Index.vue
  2. 1 0
      TEAMModelOS/Controllers/Client/HiTeachController.cs

+ 1 - 1
TEAMModelOS/ClientApp/src/view/student-account/Index.vue

@@ -833,7 +833,7 @@ export default {
                     }
                     let res = pData.grades.map(item => {
                         return {
-                            label: `${item.name}(${year}级)`,
+                            label: `${item}(${year}级)`,
                             value: year--
                         }
                     })

+ 1 - 0
TEAMModelOS/Controllers/Client/HiTeachController.cs

@@ -171,6 +171,7 @@ namespace TEAMModelOS.Controllers.Client
                                     classExtobj.stuCnt = stuCount;
                                     classExtobj.grpCnt = 0;
                                     classExtobj.gradeId = null;
+                                    classExtobj.year = 0;
 
                                     classes.Add(classExtobj);
                                 }