ZhangXianQiang
2024-07-01 8ccf0848c12460cbfb939c1f8da6e11a602eccea
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",
@@ -51,9 +53,10 @@
          ],
          "analyze": "问小朋友",
          "correct": "A",
          "right": "B",
          "right": "A",
          "score": "3",
          "difficult": 5
          "difficult": 5,
          "isRight": true
        },
        {
          "id": null,
@@ -83,7 +86,8 @@
          "correct": "A",
          "right": "B",
          "score": "3",
          "difficult": 5
          "difficult": 5,
          "isRight": false
        }
      ]
    },
@@ -96,6 +100,7 @@
          "gradeLevel": null,
          "subjectId": 2,
          "title": "1+1=?",
          "img": '/test_question.png',
          "items": [
            {
              "prefix": "A",
@@ -118,7 +123,8 @@
          "correct": "A,B",
          "right": "A,B,C",
          "score": "5",
          "difficult": 5
          "difficult": 5,
          "isRight": false
        },
        {
          "id": null,
@@ -148,7 +154,102 @@
          "correct": "A,D",
          "right": "B,C",
          "score": "5",
          "difficult": 5
          "difficult": 5,
          "isRight": false
        },
        {
          "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": "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
        }
      ]
    },
@@ -162,6 +263,7 @@
          "subjectId": 2,
          "title": "测试音频1",
          "audioFile": '/test.mp3',
          "img": '/test_question.png',
          "items": [
            {
              "prefix": "A",
@@ -184,7 +286,8 @@
          "correct": "",
          "right": "B",
          "score": "3",
          "difficult": 5
          "difficult": 5,
          "isRight": false
        },
        {
          "id": null,
@@ -215,7 +318,8 @@
          "correct": "D",
          "right": "A",
          "score": "3",
          "difficult": 5
          "difficult": 5,
          "isRight": false
        }
      ]
    },