ZhangXianQiang
2024-06-26 c28f27e7a03e9c14422ae787d412c286b6ad501c
src/store/modules/grade.js
@@ -1,6 +1,6 @@
import { ref, computed } from 'vue';
import { defineStore } from 'pinia';
export const useGradeStore = defineStore('exam', () => {
export const useGradeStore = defineStore('grade', () => {
  const examInfo = ref({
    examId: 1,
    examName: '考试名称',
@@ -9,6 +9,7 @@
    examStartTime: '2021-01-01',
    examEndTime: '2021-01-01',
    examTime: 5,
    examGrade: 60
  });
  const examType = ref({
@@ -31,6 +32,7 @@
          "gradeLevel": null,
          "subjectId": 2,
          "title": "1+1=?",
          "img": '/test_question.png',
          "items": [
            {
              "prefix": "A",
@@ -98,6 +100,7 @@
          "gradeLevel": null,
          "subjectId": 2,
          "title": "1+1=?",
          "img": '/test_question.png',
          "items": [
            {
              "prefix": "A",
@@ -179,11 +182,74 @@
            }
          ],
          "analyze": "问小朋友",
          "correct": "A,B,D",
          "right": "B,C",
          "score": "5",
          "difficult": 5,
          "isRight": false
        },
        {
          "id": null,
          "questionType": 1,
          "gradeLevel": null,
          "subjectId": 2,
          "title": "1+1=?",
          "img": '/test_question.png',
          "items": [
            {
              "prefix": "A",
              "content": "1"
            },
            {
              "prefix": "B",
              "content": "2"
            },
            {
              "prefix": "C",
              "content": "3"
            },
            {
              "prefix": "D",
              "content": "4"
            }
          ],
          "analyze": "问小朋友",
          "correct": "B,C",
          "right": "B,C",
          "score": "5",
          "difficult": 5,
          "isRight": true
        },
        {
          "id": null,
          "questionType": 1,
          "gradeLevel": null,
          "subjectId": 2,
          "title": "1+1=?",
          "items": [
            {
              "prefix": "A",
              "content": "1"
            },
            {
              "prefix": "B",
              "content": "2"
            },
            {
              "prefix": "C",
              "content": "3"
            },
            {
              "prefix": "D",
              "content": "4"
            }
          ],
          "analyze": "问小朋友",
          "correct": "",
          "right": "B,C",
          "score": "5",
          "difficult": 5,
          "isRight": false
        }
      ]
    },
@@ -197,6 +263,7 @@
          "subjectId": 2,
          "title": "测试音频1",
          "audioFile": '/test.mp3',
          "img": '/test_question.png',
          "items": [
            {
              "prefix": "A",