Kaynağa Gözat

fix:试卷报告的正确率统计

xuqiaoying 3 yıl önce
ebeveyn
işleme
a520afa594

+ 2 - 2
common/request.js

@@ -5,8 +5,8 @@ import api from './api.js'
 var num = 1
 //接口api   
 // export const BASE_URL = 'https://api.xyyxt.net'   //release
-export const BASE_URL = 'https://test.xyyxt.net'   //预发布
-// export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
+// export const BASE_URL = 'https://test.xyyxt.net'   //预发布
+export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test(后端本地)
 // export const BASE_URL = 'http://192.168.1.222:5055'    //后端本地更新到222
 // export const BASE_URL = 'http://192.168.1.24:5055'    //后端本地

+ 6 - 8
pages2/bank/question_report.vue

@@ -13,20 +13,18 @@
 					<view>
 						<!-- 练习 -->
 						<template v-if="examData.doType == 1">
-							{{
-								((reportdata.rightQuestionNum /
+							<!-- ((reportdata.rightQuestionNum /
 									reportdata.doQuestionNum || 0).toFixed(0) *
-									100)
-									
+									100) -->
+							{{ (((reportdata.rightQuestionNum / reportdata.doQuestionNum )|| 0) * 100).toFixed(0)
 							}}%
 						</template>
 						<!-- 考试 -->
 						<template v-if="examData.doType == 2">
-							{{
-								((reportdata.rightQuestionNum /
+							<!-- ((reportdata.rightQuestionNum /
 									reportdata.totalQuestionNum || 0).toFixed(0) *
-									100)
-									
+									100) -->
+							{{ (((reportdata.rightQuestionNum / reportdata.totalQuestionNum )|| 0) * 100).toFixed(0)		
 							}}%
 						</template>
 					<!-- {{ (((reportdata.rightQuestionNum / (reportdata.rightQuestionNum + wrongRecordWrongNum)) || 0) * 100).toFixed(0)}}% -->

+ 1 - 0
pages5/examBank/index.vue

@@ -1507,6 +1507,7 @@ export default {
      * 请求题目列表
      */
     goodsQuestionList() {
+      // app/common/bank/question/list
       this.$api
         .goodsQuestionList({
           examId: this.examId,

+ 1 - 0
pages5/examReport/index.vue

@@ -354,6 +354,7 @@ export default {
 		},
 		mockWrongRecordWrongNum() {
 			return new Promise(resolve => {
+				// /mock/wwrong/record/wrongNum/${data}
 				this.$api.mockWrongRecordWrongNum(this.recordId).then(res => {
 					this.wrongRecordWrongNum = res.data.data || 0;
 					resolve();