소스 검색

考试分析

la 2 년 전
부모
커밋
ab7ea0c0cd
1개의 변경된 파일21개의 추가작업 그리고 81개의 파일을 삭제
  1. 21 81
      src/pages/ksfx/stu_ksfx.vue

+ 21 - 81
src/pages/ksfx/stu_ksfx.vue

@@ -95,8 +95,10 @@
 }
 </route>
 <script setup>
-import { InfoFilled } from '@element-plus/icons-vue'
-import examIcon from '@/assets/ksfx/examIcon.png'
+import { InfoFilled } from '@element-plus/icons-vue';
+import examIcon from '@/assets/ksfx/examIcon.png';
+import {student_ksfx_list} from "@/pages/ksfx/api";
+
 import { useRouter } from "vue-router";
 import { skeletonProps } from 'element-plus';
 const router = useRouter();
@@ -104,86 +106,24 @@ const router = useRouter();
 
 const scoreMarkSwitch = $ref(true);
 
-let examArrlist = [
-  {
-    examN: "2022-2023年下学期九年级月考",
-    attendExamNum: 1234,
-    fullScore: 180,
-    maxScore: 164,
-    examPaperList: [
-      {
-        scoreN: 99,
-        subName: "语文",
-        ObjectiveQuestion: 66,
-        SubjectiveQuestions: 33
-      },
-      {
-        scoreN: 0,
-        subName: "数学",
-        ObjectiveQuestion: 0,
-        SubjectiveQuestions: 0
-      },
-      {
-        scoreN: 99,
-        subName: "语文",
-        ObjectiveQuestion: 66,
-        SubjectiveQuestions: 33
-      },
-      {
-        scoreN: 0,
-        subName: "数学",
-        ObjectiveQuestion: 0,
-        SubjectiveQuestions: 0
-      },
-      {
-        scoreN: 99,
-        subName: "语文",
-        ObjectiveQuestion: 66,
-        SubjectiveQuestions: 33
-      }
-    ]
-  },
-  {
-    examN: "2022-2023年下学期九年级月考",
-    attendExamNum: 1234,
-    fullScore: 180,
-    maxScore: 164,
-    examPaperList: [
-      {
-        scoreN: 99,
-        subName: "语文",
-        ObjectiveQuestion: 66,
-        SubjectiveQuestions: 33
-      },
-      {
-        scoreN: 0,
-        subName: "数学",
-        ObjectiveQuestion: 0,
-        SubjectiveQuestions: 0
-      },
-      {
-        scoreN: 99,
-        subName: "语文",
-        ObjectiveQuestion: 66,
-        SubjectiveQuestions: 33
-      },
-      {
-        scoreN: 0,
-        subName: "数学",
-        ObjectiveQuestion: 0,
-        SubjectiveQuestions: 0
-      },
-      {
-        scoreN: 99,
-        subName: "语文",
-        ObjectiveQuestion: 66,
-        SubjectiveQuestions: 33
+let examArrlist = ref()
+onMounted(() => {
+  initData();
+});
+const initData = () => {
+  let transObj = {
+    xueke_id: '',
+    grade_id: '',
+    school_id:''
+  }
+  student_ksfx_list(transObj)
+    .then(res => {
+      if (res.code == "1") {
+        examArrlist.value = res.data.data.examArrlist;
       }
-    ]
-  },
-
-]
-
+    })
+  .catch(error=>{console.log(error)})
+}
 //跳转
 const linkTo = (item) => {
   router.push(item);