|
@@ -356,6 +356,10 @@ export default defineComponent({
|
|
|
data.classId = props.classId || query.classId;
|
|
|
data.preStudentNum = props.preStudentNum || query.preStudentNum;
|
|
|
window.addEventListener('message', iframeHandle);
|
|
|
+ if (data.classId) {
|
|
|
+ const res = await api_cousseScheduleDetail(data.classId);
|
|
|
+ data.courseId = res.data.useChapterLessonCoursewareId;
|
|
|
+ }
|
|
|
getDetail();
|
|
|
getLessonCoursewareDetail();
|
|
|
if (data.type === 'preview') {
|
|
@@ -2207,17 +2211,8 @@ export default defineComponent({
|
|
|
onChange={async (val: any) => {
|
|
|
data.modelTrainStatus = val.status;
|
|
|
// getCoursewareList();
|
|
|
- if (val.saveWork) {
|
|
|
- try {
|
|
|
- const res =
|
|
|
- await api_teacherChapterLessonCoursewareDetail(
|
|
|
- data.courseId
|
|
|
- );
|
|
|
-
|
|
|
- data.lessonPreTrainingId = res.data.lessonPreTrainingId;
|
|
|
- } catch {
|
|
|
- //
|
|
|
- }
|
|
|
+ if (val.saveWork && data.classId) {
|
|
|
+ data.lessonPreTrainingId = val.lessonPreTrainingId;
|
|
|
}
|
|
|
}}
|
|
|
/>
|