From 6747314cc9902f5ac3966991c0244ebc07844ce6 Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Thu, 29 Aug 2024 13:54:22 +0800
Subject: [PATCH] fix
---
src/views/course/contentSettings.vue | 4 +-
src/views/match/manage/theoryReport.vue | 23 +-
.../contentSettings/index.vue | 2 +-
src/views/theoreticalCourse/preview/index.vue | 581 +++++++++---------
src/views/theoryExam/index.vue | 2 +-
5 files changed, 305 insertions(+), 307 deletions(-)
diff --git a/src/views/course/contentSettings.vue b/src/views/course/contentSettings.vue
index d7be973..6d293b5 100644
--- a/src/views/course/contentSettings.vue
+++ b/src/views/course/contentSettings.vue
@@ -634,7 +634,7 @@ export default {
width: "100%",
autoplay: false,
vid: fileId,
- playauth: res.data.playAuth,
+ playauth: res.playAuth,
encryptType: 1 //当播放私有加密流时需要设置。
}, player => {
this.downloadFile(row.name, player._urls[0].Url)
@@ -649,7 +649,7 @@ export default {
// 阿里云视频点播
if (row.fileId) {
this.$get(`${this.api.getPlayAuth}/${row.fileId}`).then(res => {
- this.playAuth = res.data.playAuth;
+ this.playAuth = res.playAuth;
if (this.player) {
this.player.replayByVidAndPlayAuth(row.fileId, this.playAuth);
} else {
diff --git a/src/views/match/manage/theoryReport.vue b/src/views/match/manage/theoryReport.vue
index 6a36775..6fa3482 100644
--- a/src/views/match/manage/theoryReport.vue
+++ b/src/views/match/manage/theoryReport.vue
@@ -36,7 +36,7 @@
导出报告
- 标准实验报告
+ 标准成绩报告
@@ -75,7 +75,7 @@
- {{ info.timeSum }}
+ {{ info.timeSum }}分钟
@@ -126,7 +126,7 @@
{{ ques.difficult }}
-
+
({{ ques.questionScore }}分)
@@ -139,7 +139,7 @@
{{ numToLetter(j) }}.
-
+
@@ -149,19 +149,20 @@
【知识点】
- {{ kp.name }}
+ {{ kp.name
+ }}
【解析】
+ v-html="ques.questionAnswerVersionsList[0].answerAnalysis" class="html-parse">
暂无解析
@@ -314,7 +315,7 @@ export default {
const quesAnswer = []
opts && opts.map((m, j) => {
const selected = userAnswer.includes(m.optionNumber)
- m.optCorrect = m.answerIsCorrect ? (selected ? 1 : -1) : (selected ? 0 : -1) // 用户选择的结果跟正确答案是否匹配(1正确,0错误,-1未选择)
+ m.optCorrect = m.answerIsCorrect ? 1 : (selected ? 0 : -1) // 用户选择的结果跟正确答案是否匹配(1正确,0错误,-1未选择)
m.answerIsCorrect && quesAnswer.push(type === 'judgement' ? m.optionText : numToLetter(j))
})
n.quesAnswer = quesAnswer.join('')
@@ -398,7 +399,7 @@ export default {
// 答题卡题目点击滚动
scrollToQues (e) {
const el = document.querySelector('#ques' + e.id)
- el && this.scrollToSmooth(el.offsetTop - document.querySelector('#quesWrap').offsetTop + 200, 200)
+ el && this.scrollToSmooth(el.offsetTop - document.querySelector('#right').offsetTop, 200)
},
// 答题卡筛选
filterStatus (e) {
@@ -612,10 +613,8 @@ samp {
.left {
width: 290px;
- max-height: calc(100vh - 267px);
margin-right: 15px;
background-color: #fff;
- overflow: auto;
.title {
padding: 10px 0;
@@ -631,7 +630,9 @@ samp {
}
.type-wrap {
+ max-height: calc(100vh - 369px);
padding: 10px;
+ overflow: auto;
.type {
margin-bottom: 20px;
diff --git a/src/views/theoreticalCourse/contentSettings/index.vue b/src/views/theoreticalCourse/contentSettings/index.vue
index 3dd1e51..0a78558 100644
--- a/src/views/theoreticalCourse/contentSettings/index.vue
+++ b/src/views/theoreticalCourse/contentSettings/index.vue
@@ -705,7 +705,7 @@ export default {
// 阿里云视频点播
if (row.fileId) {
this.$get(`${this.api.getPlayAuth}/${row.fileId}`).then(res => {
- this.playAuth = res.data.playAuth;
+ this.playAuth = res.playAuth;
if (this.player) {
this.player.replayByVidAndPlayAuth(row.fileId, this.playAuth);
} else {
diff --git a/src/views/theoreticalCourse/preview/index.vue b/src/views/theoreticalCourse/preview/index.vue
index 4783799..00662c9 100644
--- a/src/views/theoreticalCourse/preview/index.vue
+++ b/src/views/theoreticalCourse/preview/index.vue
@@ -1,78 +1,46 @@
-
+
-
+
-
-
+
+
-
+
-
-
+
+
-
-
+
+
-
+
-
+
-
+
{{ currentPage }} / {{ pageCount }}
-
+
-
+
-
-
+
-
-