From c76069a7228f2992b44868255b98afcb656716ba Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Tue, 16 Mar 2021 16:59:44 +0800
Subject: [PATCH] .
---
src/pages/achievement/list/examResults.vue | 6 ------
src/pages/achievement/list/practiceResults.vue | 6 ------
src/pages/assessment/list/index.vue | 1 -
src/pages/practice/list/index.vue | 1 -
src/pages/quesBank/list/globalQuesBank.vue | 2 +-
src/pages/quesBank/list/quesDialog.vue | 12 +++---------
src/pages/testPaper/add/index.vue | 4 +++-
src/pages/testPaper/list/myTestPaper.vue | 2 +-
8 files changed, 8 insertions(+), 26 deletions(-)
diff --git a/src/pages/achievement/list/examResults.vue b/src/pages/achievement/list/examResults.vue
index ec3bae3..d5419fc 100644
--- a/src/pages/achievement/list/examResults.vue
+++ b/src/pages/achievement/list/examResults.vue
@@ -56,12 +56,6 @@
header-align="center"
@selection-change="handleSelectionChange"
>
-
-
-
diff --git a/src/pages/practice/list/index.vue b/src/pages/practice/list/index.vue
index eef32a6..3490cba 100644
--- a/src/pages/practice/list/index.vue
+++ b/src/pages/practice/list/index.vue
@@ -20,7 +20,6 @@
-
diff --git a/src/pages/quesBank/list/globalQuesBank.vue b/src/pages/quesBank/list/globalQuesBank.vue
index bcddde2..7846b7e 100644
--- a/src/pages/quesBank/list/globalQuesBank.vue
+++ b/src/pages/quesBank/list/globalQuesBank.vue
@@ -48,7 +48,7 @@
查看
- 取消共享
+ 取消共享
diff --git a/src/pages/quesBank/list/quesDialog.vue b/src/pages/quesBank/list/quesDialog.vue
index 64a57ab..c24401c 100644
--- a/src/pages/quesBank/list/quesDialog.vue
+++ b/src/pages/quesBank/list/quesDialog.vue
@@ -12,9 +12,9 @@
-
+
-
+
@@ -296,13 +296,6 @@ export default {
if(this.topicForm.typeId == 3){
this.topicForm.optionA = '正确'
this.topicForm.optionB = '错误'
- if(this.topicForm.aisTrue == 1){
- this.topicForm.aisTrue = true
- this.topicForm.answer = 'A'
- }else{
- this.topicForm.bisTrue = true
- this.topicForm.answer = 'B'
- }
}
if(topicForm.typeId == 1 || topicForm.typeId == 2 || topicForm.typeId == 3){
for(let n in topicForm) {
@@ -321,6 +314,7 @@ export default {
if(topicForm.questionType == '单选题' && answer.length > 1) return this.$message.warning('单选题只能设置一个正确选项!')
if(topicForm.questionType == '多选题' && answer.length < 2) return this.$message.warning('多选题必须设置至少两个正确选项!')
if(isInvalidAnswer) return this.$message.warning('正确答案选项为空,请重新设置!');
+ if(topicForm.typeId == 3) answer = topicForm.aisTrue == 1 ? 'a' : 'b'
this.topicForm.answer = answer.toUpperCase()
}else if(this.topicForm.typeId == 5){
if(!this.fillList.length || this.fillList.every(n => n === '')) return this.$message.warning('请至少添加一个正确答案!')
diff --git a/src/pages/testPaper/add/index.vue b/src/pages/testPaper/add/index.vue
index 1c02094..d0e2493 100644
--- a/src/pages/testPaper/add/index.vue
+++ b/src/pages/testPaper/add/index.vue
@@ -440,7 +440,9 @@ export default {
if(this.courses === '') return this.$message.warning('请填写所属课程')
if(this.degree === '') return this.$message.warning('请选择难易程度')
if(this.duration === '') return this.$message.warning('请填写建议时长')
- if(qid === '') return this.$message.warning('请选择试题')
+ }
+ if(qid === '') return this.$message.warning('请选择试题')
+ if(status == 1){
if(this.totalScore < 100) return this.$message.warning('总分值未满100分,请重新设置')
if(this.totalScore > 100) return this.$message.warning('总分值超过100分,请重新设置')
}
diff --git a/src/pages/testPaper/list/myTestPaper.vue b/src/pages/testPaper/list/myTestPaper.vue
index f3f7957..2cef6d9 100644
--- a/src/pages/testPaper/list/myTestPaper.vue
+++ b/src/pages/testPaper/list/myTestPaper.vue
@@ -158,7 +158,7 @@
发布
- 预览
+ 预览
复制
修改
删除