Browse Source

去掉参数

lex 2 years ago
parent
commit
5ce6f1a067

+ 2 - 2
src/views/unit-test/practice-mode/index.tsx

@@ -77,8 +77,8 @@ export default defineComponent({
           data: {
             page: 1,
             row: 50,
-            categoryId: state.id,
-            courseTypeCode: state.courseTypeCode
+            categoryId: state.id
+            // courseTypeCode: state.courseTypeCode
           }
         })
         const temp = data || []

+ 11 - 11
src/views/unit-test/unit-detail/index.tsx

@@ -92,17 +92,17 @@ export default defineComponent({
         const temp = data.examinationQuestionAdds || []
         temp.forEach((item: any) => {
           const rightAnswers = item.rightAnswers || []
-          const answers = item.answers || []
-          answers.forEach((answer: any) => {
-            const child = rightAnswers.find(
-              (right: any) =>
-                right.examinationQuestionAnswerId === answer.examinationQuestionAnswerId
-            )
-            if (child) {
-              answer.selectRate = child.selectRate
-            }
-          })
-          item.answers = answers
+          // const answers = item.answers || []
+          // answers.forEach((answer: any) => {
+          //   const child = rightAnswers.find(
+          //     (right: any) =>
+          //       right.examinationQuestionAnswerId === answer.examinationQuestionAnswerId
+          //   )
+          //   if (child) {
+          //     answer.selectRate = child.selectRate
+          //   }
+          // })
+          // item.answers = answers
 
           item.userAnswer = formatTeacherAnswer(rightAnswers)
           item.showAnalysis = true