|
@@ -55,9 +55,14 @@
|
|
|
:modal-append-to-body="true"
|
|
:modal-append-to-body="true"
|
|
|
:append-to-body="true"
|
|
:append-to-body="true"
|
|
|
:lock-scroll="true"
|
|
:lock-scroll="true"
|
|
|
- width="80%"
|
|
|
|
|
|
|
+ width="1040px"
|
|
|
>
|
|
>
|
|
|
- <ExercisePreview :exercise_id="exercise_id" @handleCancle="handleClose" @submitAdd="submitAdd" />
|
|
|
|
|
|
|
+ <ExercisePreview
|
|
|
|
|
+ :exercise_id="exercise_id"
|
|
|
|
|
+ @handleCancle="handleClose"
|
|
|
|
|
+ @submitAdd="submitAdd"
|
|
|
|
|
+ :feed_back="data.property.feed_back"
|
|
|
|
|
+ />
|
|
|
<!-- <iframe v-if="visible" :src="newpath" width="100%" :height="iframeHeight" frameborder="0"></iframe> -->
|
|
<!-- <iframe v-if="visible" :src="newpath" width="100%" :height="iframeHeight" frameborder="0"></iframe> -->
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
<el-dialog
|
|
@@ -68,7 +73,7 @@
|
|
|
:modal-append-to-body="true"
|
|
:modal-append-to-body="true"
|
|
|
:append-to-body="true"
|
|
:append-to-body="true"
|
|
|
:lock-scroll="true"
|
|
:lock-scroll="true"
|
|
|
- :width="isMobile ? '100%' : '80%'"
|
|
|
|
|
|
|
+ :width="isMobile ? '100%' : '1040px'"
|
|
|
@close="handleClose"
|
|
@close="handleClose"
|
|
|
>
|
|
>
|
|
|
<Report
|
|
<Report
|
|
@@ -208,14 +213,15 @@ export default {
|
|
|
handleTimeUpdate(currentTime) {
|
|
handleTimeUpdate(currentTime) {
|
|
|
this.data.file_info_list.forEach((item) => {
|
|
this.data.file_info_list.forEach((item) => {
|
|
|
if (
|
|
if (
|
|
|
- Number(item.currentTime) > Math.floor(currentTime) - 0.3 &&
|
|
|
|
|
- Number(item.currentTime) < Math.floor(currentTime) + 0.3 &&
|
|
|
|
|
|
|
+ Number(item.currentTime) > Number(currentTime) - 0.17 &&
|
|
|
|
|
+ Number(item.currentTime) < Number(currentTime) + 0.17 &&
|
|
|
item.id !== this.first
|
|
item.id !== this.first
|
|
|
) {
|
|
) {
|
|
|
- this.first = item.id;
|
|
|
|
|
|
|
+ this.first = JSON.parse(JSON.stringify(item.id));
|
|
|
this.player.pause();
|
|
this.player.pause();
|
|
|
- this.exercise_id = item.id;
|
|
|
|
|
|
|
+ this.exercise_id = JSON.parse(JSON.stringify(item.id));
|
|
|
this.visible = true;
|
|
this.visible = true;
|
|
|
|
|
+
|
|
|
// GetFileURLMap({ file_id_list: [item.file_id] }).then(({ url_map }) => {
|
|
// GetFileURLMap({ file_id_list: [item.file_id] }).then(({ url_map }) => {
|
|
|
// this.newpath = `${this.file_preview_url}onlinePreview?url=${Base64.encode(url_map[item.file_id])}`;
|
|
// this.newpath = `${this.file_preview_url}onlinePreview?url=${Base64.encode(url_map[item.file_id])}`;
|
|
|
// this.visible = true;
|
|
// this.visible = true;
|
|
@@ -226,18 +232,22 @@ export default {
|
|
|
handleClose() {
|
|
handleClose() {
|
|
|
this.reportFlag = false;
|
|
this.reportFlag = false;
|
|
|
this.player.play();
|
|
this.player.play();
|
|
|
- // setTimeout(() => {
|
|
|
|
|
- // this.first = '';
|
|
|
|
|
- // }, 1000);
|
|
|
|
|
|
|
+ this.first = JSON.parse(JSON.stringify(this.exercise_id));
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.first = '';
|
|
|
|
|
+ }, 1000);
|
|
|
},
|
|
},
|
|
|
- submitAdd(id, answer, content) {
|
|
|
|
|
- this.visible = false;
|
|
|
|
|
- this.player.play();
|
|
|
|
|
|
|
+ submitAdd(id, answer, content, flag) {
|
|
|
|
|
+ this.first = JSON.parse(JSON.stringify(this.exercise_id));
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
- // this.first = '';
|
|
|
|
|
- }, 2000);
|
|
|
|
|
|
|
+ this.first = '';
|
|
|
|
|
+ }, 1000);
|
|
|
this.$set(this.userAnswer, id, answer);
|
|
this.$set(this.userAnswer, id, answer);
|
|
|
this.$set(this.exerciseList, id, content);
|
|
this.$set(this.exerciseList, id, content);
|
|
|
|
|
+ if (flag || this.data.property.feed_back === 'total') {
|
|
|
|
|
+ this.visible = false;
|
|
|
|
|
+ this.player.play();
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
lookReport() {
|
|
lookReport() {
|
|
|
this.player.pause();
|
|
this.player.pause();
|