ZhangXianQiang
2024-06-20 1f33c401da7a7a7b67222af7400dba66d65b6a9a
src/store/modules/exam.js
@@ -8,12 +8,13 @@
    examStatus: '考试状态',
    examStartTime: '2021-01-01',
    examEndTime: '2021-01-01',
    examTime: 60,
    examTime: 5,
  });
  const examType = ref({
    1: '单选题',
    2: '多选题',
    3: '音频题'
  });
  const currentType = ref(1);
@@ -205,7 +206,72 @@
          "difficult": 5
        }
      ]
    }
    },
    {
      questionType: 3,
      questionList: [
        {
          "id": null,
          "questionType": 1,
          "gradeLevel": null,
          "subjectId": 2,
          "title": "测试音频1",
          "audioFile": '/test.mp3',
          "items": [
            {
              "prefix": "A",
              "content": "1"
            },
            {
              "prefix": "B",
              "content": "2"
            },
            {
              "prefix": "C",
              "content": "3"
            },
            {
              "prefix": "D",
              "content": "4"
            }
          ],
          "analyze": "问小朋友",
          "correct": "",
          "score": "3",
          "difficult": 5
        },
        {
          "id": null,
          "questionType": 1,
          "gradeLevel": null,
          "subjectId": 2,
          "title": "测试音频2",
          "audioFile": '/test.mp3',
          "items": [
            {
              "prefix": "A",
              "content": "1"
            },
            {
              "prefix": "B",
              "content": "2"
            },
            {
              "prefix": "C",
              "content": "3"
            },
            {
              "prefix": "D",
              "content": "4"
            }
          ],
          "analyze": "问小朋友",
          "correct": "",
          "score": "3",
          "difficult": 5
        }
      ]
    },
  ]);
  const getActiveQuestion = computed(() => {
@@ -248,7 +314,7 @@
  const setProgress = (progress) => {
    answerProgress.value = progress;
  }
  };
  return {