Переглянути джерело

切换到单个乐团,出勤、练习的接口也要传乐团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 || {};
     };