diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue
index c65c6e2..b370bcf 100644
--- a/src/layouts/navbar/index.vue
+++ b/src/layouts/navbar/index.vue
@@ -86,11 +86,11 @@ export default {
index: '/wrongBook/list',
title: '错题练习'
},
- {
- icon: 'menu-icon icon-msg',
- index: '/messageBoard/list',
- title: '交流互动'
- }
+ // {
+ // icon: 'menu-icon icon-msg',
+ // index: '/messageBoard/list',
+ // title: '交流互动'
+ // }
],
menus: [],
actives: {
diff --git a/src/pages/exam/do/index.vue b/src/pages/exam/do/index.vue
index f2434bb..abe712d 100644
--- a/src/pages/exam/do/index.vue
+++ b/src/pages/exam/do/index.vue
@@ -75,16 +75,7 @@
-
+
上传文件
@@ -212,7 +203,7 @@ export default {
this.judgeScore = data.trueOrFalseQuestionsList.length ? data.trueOrFalseQuestionsList[0].judgeScore : 0
this.fillBlanksScore = data.fillInTheBlanklist.length ? data.fillInTheBlanklist[0].fillBlanksScore : 0
this.briefAnswerScore = data.shortAnswerList.length ? data.shortAnswerList[0].briefAnswerScore : 0
- this.scoreList = [this.singlePoint,this.multipleChoiceScore,this.fillBlanksScore,this.briefAnswerScore,this.briefAnswerScore]
+ this.scoreList = [this.singlePoint * this.singleCount,this.multipleChoiceScore * this.multipleCount,this.judgeScore * this.judgeCount,this.fillBlanksScore * this.fillBlankCount,this.briefAnswerScore * this.briefAnswerCount]
this.handleOptions()
}).catch(err => {})
@@ -241,7 +232,7 @@ export default {
}else if(i == 3){
let answer = answered.userAnswer.split('<>');
[...document.querySelectorAll(`.stem${i}${k} input`)].map((n,j) => {
- n.value = answer[j]
+ if(answer[j]) n.value = answer[j]
})
n.val = answered.userAnswer
if(answer.filter(n => n).length) n.hadAnswer = 1
@@ -453,9 +444,7 @@ export default {
})
this.$post(`${this.api.coverGzAnswerDetails}?userId=${this.userId}&testPaperId=${this.testPaperId}&assessmentId=${this.assessmentId}`).then(res => {
- this.$post(`${this.api.addGzAnswerDetails}`,data1)
- .then(res => {})
- .catch(err => {})
+ this.$post(`${this.api.addGzAnswerDetails}`,data1).then(res => {}).catch(err => {})
}).catch(err => {})
}
},
diff --git a/src/pages/index/list/index.vue b/src/pages/index/list/index.vue
index 7fe76f8..42c3dc9 100644
--- a/src/pages/index/list/index.vue
+++ b/src/pages/index/list/index.vue
@@ -102,7 +102,7 @@
-
+
diff --git a/src/pages/wrongBook/do/index.vue b/src/pages/wrongBook/do/index.vue
index 6528287..774637b 100644
--- a/src/pages/wrongBook/do/index.vue
+++ b/src/pages/wrongBook/do/index.vue
@@ -4,34 +4,34 @@
-
-
单选题(共{{singleCount}}题,合计{{singlePoint}}分)
+
+
单选题(共{{singleCount}}题)
- {{n}}
+ {{n}}
-
-
多选题(共{{multipleCount}}题,合计{{multipleChoiceScore}}分)
+
+
多选题(共{{multipleCount}}题)
- {{n}}
+ {{n}}
-
-
判断题(共{{judgeCount}}题,合计{{judgeScore}}分)
+
+
判断题(共{{judgeCount}}题)
- {{n}}
+ {{n}}
-
-
填空题(共{{fillBlankCount}}题,合计{{fillBlanksScore}}分)
+
+
填空题(共{{fillBlankCount}}题)
- {{n}}
+ {{n}}
-
-
简答题(共{{briefAnswerCount}}题,合计{{briefAnswerScore}}分)
+
+
简答题(共{{briefAnswerCount}}题)
- {{n}}
+ {{n}}
@@ -43,7 +43,7 @@
-
{{questionType[k]}}(共{{subjects[k].length}}题,合计{{scoreList[k]}}分)
+
{{questionType[k]}}(共{{subjects[k].length}}题)
@@ -119,6 +119,11 @@ export default {
judgeAnsweredCount: 0,
fillBlankAnsweredCount: 0,
briefAnswerAnsweredCount: 0,
+ singleAnswered: [],
+ multipleAnswered: [],
+ judgeAnswered: [],
+ fillBlankAnswered: [],
+ briefAnswerAnswered: [],
singlePoint: 0,
multipleChoiceScore: 0,
diff --git a/src/setting.js b/src/setting.js
index feb76d6..6bc0566 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -16,7 +16,7 @@ const Setting = {
showProgressBar: true,
// 接口请求地址
// apiBaseURL: env === 'development' ? 'http://192.168.31.151:8001' : 'http://39.108.250.202:8000',
- apiBaseURL: env === 'development' ? 'http://39.108.250.202:9000' : 'http://39.108.250.202:9000',
+ apiBaseURL: env === 'development' ? 'http://192.168.31.151:8001' : 'http://39.108.250.202:9000',
// 接口请求返回错误时,弹窗的持续时间,单位:秒
modalDuration: 3,
// 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice