From 1b62d07994aab1a80a401fe770a74ee964ebad78 Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Fri, 6 Sep 2024 18:16:05 +0800
Subject: [PATCH] fix
---
src/pages/ques/detail/index.vue | 3 ++-
src/pages/ques/list/index.vue | 14 ++++++++++++--
src/pages/testPaper/detail/index.vue | 10 +++++-----
src/pages/testPaper/preview/index.vue | 9 ++++++---
src/styles/common.scss | 9 +++++++++
5 files changed, 34 insertions(+), 11 deletions(-)
diff --git a/src/pages/ques/detail/index.vue b/src/pages/ques/detail/index.vue
index c121ef5..dc2e99e 100644
--- a/src/pages/ques/detail/index.vue
+++ b/src/pages/ques/detail/index.vue
@@ -120,7 +120,8 @@
分值占比
-
+
%
diff --git a/src/pages/ques/list/index.vue b/src/pages/ques/list/index.vue
index 377efb8..37bb893 100644
--- a/src/pages/ques/list/index.vue
+++ b/src/pages/ques/list/index.vue
@@ -71,9 +71,11 @@
-
+
% --
-
+
%
@@ -249,6 +251,14 @@ export default {
clearTimeout(this.searchTimer)
this.searchTimer = setTimeout(this.initData, 500)
},
+ 'filter.correctRateStart': function () {
+ clearTimeout(this.searchTimer)
+ this.searchTimer = setTimeout(this.initData, 500)
+ },
+ 'filter.correctRateEnd': function () {
+ clearTimeout(this.searchTimer)
+ this.searchTimer = setTimeout(this.initData, 500)
+ },
},
mounted () {
const { referrer1 } = this.$store.state.user
diff --git a/src/pages/testPaper/detail/index.vue b/src/pages/testPaper/detail/index.vue
index 3400866..db742e0 100644
--- a/src/pages/testPaper/detail/index.vue
+++ b/src/pages/testPaper/detail/index.vue
@@ -742,11 +742,11 @@ export default {
this.addQuesVisible = false
},
// 编辑试题完成后把新的试题信息带过来
- updateQues (ques) {
- ques.questionAnswerVersionsList = ques.questionAnswerVersions
- delete ques.questionAnswerVersions
- ques.score = ''
- this.curType.examQuestions[this.curQuesIndex] = Object.assign(this.curRow, ques)
+ async updateQues (ques) {
+ const res = await this.$post(`${this.api.findQuestion}?questionId=${ques.questionId}&version=${ques.version}`)
+ const r = res.message
+ r.score = ''
+ this.curType.examQuestions[this.curQuesIndex] = Object.assign(this.curRow, r)
this.handleQuesInfo(this.curType.examQuestions[this.curQuesIndex])
this.calcDifficult()
},
diff --git a/src/pages/testPaper/preview/index.vue b/src/pages/testPaper/preview/index.vue
index 5f8e898..ad16621 100644
--- a/src/pages/testPaper/preview/index.vue
+++ b/src/pages/testPaper/preview/index.vue
@@ -31,7 +31,7 @@
+ @click="scrollToQues(ques, item)">
{{ j + 1 }}
@@ -290,9 +290,12 @@ export default {
window.requestAnimationFrame(scroll)
},
// 答题卡题目点击滚动
- scrollToQues (e) {
+ scrollToQues (e, item) {
+ item.shrink = false
const el = document.querySelector('#ques' + e.id)
- el && this.scrollToSmooth(el.offsetTop - document.querySelector('#quesWrap').offsetTop, 200)
+ this.$nextTick(() => {
+ el && this.scrollToSmooth(el.offsetTop - document.querySelector('#quesWrap').offsetTop, 200)
+ })
},
// 答题卡筛选
filterStatus (e) {
diff --git a/src/styles/common.scss b/src/styles/common.scss
index ba557cf..05c7ec2 100644
--- a/src/styles/common.scss
+++ b/src/styles/common.scss
@@ -433,6 +433,15 @@
text-align: center;
color: #a3a3a3;
}
+.hide-spin {
+ input::-webkit-inner-spin-button {
+ -webkit-appearance: none !important;
+ }
+
+ input::-webkit-outer-spin-button {
+ -webkit-appearance: none !important;
+ }
+}
.fill-scores {
.fill-title {
margin-bottom: 10px;