Browse Source

feat: 去掉效度

zhangjie 5 months ago
parent
commit
c5e41bff12

+ 23 - 23
src/modules/college/chartOption.js

@@ -842,14 +842,14 @@ export const getDistinctionAnalyseOption = datas => {
           params[0].data.detailName,
           `区分度:${params[0].value}`,
           `容易度:${params[1].value}`,
-          `信度:${params[2].value}`,
-          `效度:${params[3].value}`
+          `信度:${params[2].value}`
+          // `效度:${params[3].value}`
         ].join("<br />");
       }
     },
     legend: {
       top: 0,
-      data: ["区分度", "容易度", "信度", "效度"],
+      data: ["区分度", "容易度", "信度"],
       itemWidth: 8,
       itemHeight: 8,
       itemGap: 22,
@@ -1002,27 +1002,27 @@ export const getDistinctionAnalyseOption = datas => {
             detailName: item.detailName
           };
         })
-      },
-      {
-        type: "line",
-        name: "效度",
-        showSymbol: false,
-        smooth: true,
-        symbol: "circle",
-        yAxisIndex: 1,
-        // lineStyle: {
-        //   color: "#FE5D4E"
-        // },
-        // itemStyle: {
-        //   color: "#FE5D4E"
-        // },
-        data: datas.map((item, index) => {
-          return {
-            value: item.xd,
-            detailName: item.detailName
-          };
-        })
       }
+      // {
+      //   type: "line",
+      //   name: "效度",
+      //   showSymbol: false,
+      //   smooth: true,
+      //   symbol: "circle",
+      //   yAxisIndex: 1,
+      //   // lineStyle: {
+      //   //   color: "#FE5D4E"
+      //   // },
+      //   // itemStyle: {
+      //   //   color: "#FE5D4E"
+      //   // },
+      //   data: datas.map((item, index) => {
+      //     return {
+      //       value: item.xd,
+      //       detailName: item.detailName
+      //     };
+      //   })
+      // }
     ]
   };
 

+ 2 - 2
src/modules/college/course/owner-course-exam-analysis/OwnerCourseExamAnalysis.vue

@@ -531,8 +531,8 @@ export default {
               detailName: elem.questionName,
               validity: elem.validity,
               scoreRate: elem.scoreRate / 100,
-              sind: toPrecision(Math.abs(Math.sin(elem.scoreRate) / 2)),
-              xd: toPrecision(Math.abs(Math.sin(elem.scoreRate + 10) / 2))
+              sind: toPrecision(Math.abs(Math.sin(elem.scoreRate) / 2))
+              // xd: toPrecision(Math.abs(Math.sin(elem.scoreRate + 10) / 2))
             };
           });