|
@@ -40,6 +40,7 @@ export default defineComponent({
|
|
|
const loading = ref(false);
|
|
|
// 开始上课
|
|
|
const onAttendClass = async (item: any) => {
|
|
|
+ console.log(item,'onAttendClass')
|
|
|
try {
|
|
|
// 判断是否是切换班级
|
|
|
if (props.type == 'change') {
|
|
@@ -49,7 +50,8 @@ export default defineComponent({
|
|
|
unit: item.lessonCoursewareKnowledgeDetailId,
|
|
|
subjectId: item.subjectId,
|
|
|
name: item.name, // 班级名称
|
|
|
- classGroupId: item.id // 班级编号
|
|
|
+ classGroupId: item.id, // 班级编号
|
|
|
+ preStudentNum:item.preStudentNum
|
|
|
});
|
|
|
} else {
|
|
|
forms.showSubjectClass = true;
|
|
@@ -70,7 +72,8 @@ export default defineComponent({
|
|
|
classGroupId: item.id,
|
|
|
subjectId: prepareStore.getSubjectId,
|
|
|
detailId: prepareStore.getSelectKey,
|
|
|
- lessonCourseId: prepareStore.getBaseCourseware.id
|
|
|
+ lessonCourseId: prepareStore.getBaseCourseware.id,
|
|
|
+ preStudentNum:item.preStudentNum
|
|
|
});
|
|
|
if (window.matchMedia('(display-mode: standalone)').matches) {
|
|
|
state.application = window.matchMedia(
|
|
@@ -119,9 +122,9 @@ export default defineComponent({
|
|
|
const temp: any = [];
|
|
|
result.forEach((item: any) => {
|
|
|
// 判断班级里面有学生的
|
|
|
- if (item.preStudentNum > 0) {
|
|
|
+ // if (item.preStudentNum > 0) {
|
|
|
temp.push(item);
|
|
|
- }
|
|
|
+ // }
|
|
|
});
|
|
|
list.value = temp;
|
|
|
} catch {
|