소스 검색

切换到单个乐团,出勤、练习的接口也要传乐团id

liushengqiang 1 년 전
부모
커밋
7afce863e6
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/views/home/contentItem.tsx

+ 4 - 2
src/views/home/contentItem.tsx

@@ -67,7 +67,8 @@ export default defineComponent({
     /** 出勤统计 */
     const getAttendanceStat = async (period: string) => {
       const res = await api_schoolIndexAttendanceStat({
-        period
+        period,
+        musicGroupId: musicGroupId.value
       });
       data.studentAttendance = res.data || {};
     };
@@ -75,7 +76,8 @@ export default defineComponent({
     /** 练习统计 */
     const getLessonStat = async (period: string) => {
       const res = await api_schoolIndexLessonStat({
-        period
+        period,
+        musicGroupId: musicGroupId.value
       });
       data.studentLessons = res.data || {};
     };