|
@@ -118,6 +118,7 @@
|
|
|
<template v-if="category == 'EEP'">
|
|
<template v-if="category == 'EEP'">
|
|
|
<BookEep
|
|
<BookEep
|
|
|
v-if="view_content && view_content.content && chapterId"
|
|
v-if="view_content && view_content.content && chapterId"
|
|
|
|
|
+ ref="previewEEP"
|
|
|
:id="chapterId"
|
|
:id="chapterId"
|
|
|
:content="view_content.content"
|
|
:content="view_content.content"
|
|
|
:content-group-row-list="view_content.content_group_row_list"
|
|
:content-group-row-list="view_content.content_group_row_list"
|
|
@@ -234,6 +235,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
async created() {
|
|
async created() {
|
|
|
|
|
+ console.log("2026-12-04");
|
|
|
const _this = this;
|
|
const _this = this;
|
|
|
if (_this.AccessToken) {
|
|
if (_this.AccessToken) {
|
|
|
const Mname = "login_control-ParseAccessToken";
|
|
const Mname = "login_control-ParseAccessToken";
|
|
@@ -250,8 +252,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
if (_this.ViewMode === "Answer") {
|
|
if (_this.ViewMode === "Answer") {
|
|
|
// 答题模式下 显示提交按钮 隐藏查看答案按钮
|
|
// 答题模式下 显示提交按钮 隐藏查看答案按钮
|
|
|
- this.showSaveFlag = true;
|
|
|
|
|
|
|
+ // this.showSaveFlag = true;
|
|
|
this.isAnswerItemShow = false;
|
|
this.isAnswerItemShow = false;
|
|
|
|
|
+ this.getUserAnswer();
|
|
|
} else if (_this.ViewMode === "Result") {
|
|
} else if (_this.ViewMode === "Result") {
|
|
|
this.isAnswerItemShow = false;
|
|
this.isAnswerItemShow = false;
|
|
|
this.TaskModel = "ANSWER";
|
|
this.TaskModel = "ANSWER";
|
|
@@ -267,6 +270,8 @@ export default {
|
|
|
function (event) {
|
|
function (event) {
|
|
|
if (event.data === "Selected") {
|
|
if (event.data === "Selected") {
|
|
|
_this.finishPreviewGroupIds();
|
|
_this.finishPreviewGroupIds();
|
|
|
|
|
+ } else if (event.data === "SubmitCourse" && _this.category === "NPC") {
|
|
|
|
|
+ _this.$refs.previewBook.submitUserAnswerNPC();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
false
|
|
false
|
|
@@ -379,6 +384,7 @@ export default {
|
|
|
const _this = this;
|
|
const _this = this;
|
|
|
_this.context = null;
|
|
_this.context = null;
|
|
|
}
|
|
}
|
|
|
|
|
+ this.loading = false;
|
|
|
if (_this.ViewMode !== "Result") {
|
|
if (_this.ViewMode !== "Result") {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
}
|
|
}
|
|
@@ -438,10 +444,12 @@ export default {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
if (res.status === 1) {
|
|
if (res.status === 1) {
|
|
|
this.$message.success("提交成功");
|
|
this.$message.success("提交成功");
|
|
|
|
|
+ window.parent.postMessage("RequestSuccess", "*");
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
|
|
+ window.parent.postMessage("RequestFail", "*");
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
const AppID = this.AppID;
|
|
const AppID = this.AppID;
|
|
@@ -464,10 +472,12 @@ export default {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
if (res.status === 1) {
|
|
if (res.status === 1) {
|
|
|
this.$message.success("提交成功");
|
|
this.$message.success("提交成功");
|
|
|
|
|
+ window.parent.postMessage("RequestSuccess", "*");
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
|
|
+ window.parent.postMessage("RequestFail", "*");
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|