|
|
@@ -82,6 +82,7 @@
|
|
|
:book-background="context.background"
|
|
|
:component-user-answer="bookAnswerContent"
|
|
|
:row-checked="previewGroupId"
|
|
|
+ :change-chapter="getCoursewareContentView"
|
|
|
:permiss-control="{
|
|
|
can_answer: false,
|
|
|
can_judge_correct: false,
|
|
|
@@ -149,53 +150,56 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
this.getTaskMaterialStudentExamAnswer().then(() => {
|
|
|
- GetCoursewareContent_View({ id: this.curCoursewareId }).then((res) => {
|
|
|
- const { content, category, book_theme_color, book_font_size } = res;
|
|
|
- if (!content) {
|
|
|
- this.context = null;
|
|
|
- return;
|
|
|
- }
|
|
|
- this.category = category;
|
|
|
- if (category === 'OC' || category.length === 0 || category === 'AILP') {
|
|
|
- return this.$message.warning('该课件类型已被废弃');
|
|
|
- }
|
|
|
- if (category === 'NPC') {
|
|
|
- this.themeColor = book_theme_color;
|
|
|
- this.dialogWidth = '900px';
|
|
|
- this.context = JSON.parse(content);
|
|
|
- return;
|
|
|
- }
|
|
|
- if (category === 'NNPE') {
|
|
|
- this.dialogWidth = '900px';
|
|
|
- this.themeColor = book_theme_color;
|
|
|
- this.context = JSON.parse(content);
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (category === 'RLC') {
|
|
|
- this.dialogWidth = '900px';
|
|
|
- this.themeColor = book_theme_color;
|
|
|
- this.bookFontSize = book_font_size;
|
|
|
- this.context = JSON.parse(content);
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (category === 'NEW') {
|
|
|
- this.dialogWidth = '1190px';
|
|
|
- this.context = JSON.parse(content);
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (category === 'EEP') {
|
|
|
- this.dialogWidth = '1300px';
|
|
|
- this.context = res;
|
|
|
- return;
|
|
|
- }
|
|
|
- });
|
|
|
+ this.getCoursewareContentView();
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ getCoursewareContentView(id) {
|
|
|
+ GetCoursewareContent_View({ id: id || this.curCoursewareId }).then((res) => {
|
|
|
+ const { content, category, book_theme_color, book_font_size } = res;
|
|
|
+ if (!content) {
|
|
|
+ this.context = null;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.category = category;
|
|
|
+ if (category === 'OC' || category.length === 0 || category === 'AILP') {
|
|
|
+ return this.$message.warning('该课件类型已被废弃');
|
|
|
+ }
|
|
|
+ if (category === 'NPC') {
|
|
|
+ this.themeColor = book_theme_color;
|
|
|
+ this.dialogWidth = '900px';
|
|
|
+ this.context = JSON.parse(content);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (category === 'NNPE') {
|
|
|
+ this.dialogWidth = '900px';
|
|
|
+ this.themeColor = book_theme_color;
|
|
|
+ this.context = JSON.parse(content);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (category === 'RLC') {
|
|
|
+ this.dialogWidth = '900px';
|
|
|
+ this.themeColor = book_theme_color;
|
|
|
+ this.bookFontSize = book_font_size;
|
|
|
+ this.context = JSON.parse(content);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (category === 'NEW') {
|
|
|
+ this.dialogWidth = '1190px';
|
|
|
+ this.context = JSON.parse(content);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (category === 'EEP') {
|
|
|
+ this.dialogWidth = '1300px';
|
|
|
+ this.context = res;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
getTaskMaterialStudentExamAnswer() {
|
|
|
return GetTaskMaterialStudentExamAnswer({
|
|
|
material_id: this.curCoursewareId,
|