ZhangXianQiang
2024-06-20 4d28d7dfbe09f4d5d59aaff007afe472192a76ab
build:添加mock依赖
4个文件已修改
1个文件已添加
35 ■■■■ 已修改文件
package-lock.json 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mock/index.js 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/index.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/grade-list/data-list/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
package-lock.json
@@ -23,6 +23,7 @@
        "electron": "^30.0.9",
        "electron-builder": "^24.13.3",
        "electron-devtools-installer": "^3.2.0",
        "mockjs": "^1.1.0",
        "postcss": "^8.4.38",
        "sass": "^1.77.4",
        "tailwindcss": "^3.4.3",
@@ -4676,6 +4677,18 @@
        "ufo": "^1.5.3"
      }
    },
    "node_modules/mockjs": {
      "version": "1.1.0",
      "resolved": "https://registry.npmmirror.com/mockjs/-/mockjs-1.1.0.tgz",
      "integrity": "sha512-eQsKcWzIaZzEZ07NuEyO4Nw65g0hdWAyurVol1IPl1gahRwY+svqzfgfey8U8dahLwG44d6/RwEzuK52rSa/JQ==",
      "dev": true,
      "dependencies": {
        "commander": "*"
      },
      "bin": {
        "random": "bin/random"
      }
    },
    "node_modules/ms": {
      "version": "2.1.2",
      "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz",
package.json
@@ -25,6 +25,7 @@
    "electron": "^30.0.9",
    "electron-builder": "^24.13.3",
    "electron-devtools-installer": "^3.2.0",
    "mockjs": "^1.1.0",
    "postcss": "^8.4.38",
    "sass": "^1.77.4",
    "tailwindcss": "^3.4.3",
src/mock/index.js
src/views/exam/index.vue
@@ -125,7 +125,7 @@
          <el-icon :size="50" color="#3680fa"><Timer /></el-icon>
        </div>
        <div class="dialog-info">
          考试时间到,系统自动收卷中.......
          考试结束,系统自动收卷中.......
        </div>
      </div>
    </el-dialog>
@@ -162,6 +162,7 @@
const quitDialog = ref(false);
const submitDialog = ref(false);
const timeDialog = ref(false);
const prevQuestion = () => {
  currentIndex.value--;
@@ -204,20 +205,10 @@
        currentIndex.value = 0;
      }
    }
    // findQuestion(currentType.value, currentIndex.value);
  }
};
const findQuestion = (type, index) => {
  const typeQuestion = examDetail.value.find(typeItem => typeItem.questionType === type);
  if (typeQuestion) {
    const question = typeQuestion.questionList[index];
    if (question) {
      examStore.setActiveQuestion(question);
    }
  }
};
// 退出考试
const closeClick = () => {
@@ -225,8 +216,7 @@
};
const confirmQuit = () => {
  quitDialog.value = false;
  router.back();
  timeOut();
};
// 交卷
@@ -235,8 +225,7 @@
};
const confirmSubmit = () => {
  submitDialog.value = false;
  router.back();
  timeOut();
};
const resetAllDialog = () => {
src/views/grade-list/data-list/index.vue
@@ -32,7 +32,7 @@
            <div class="grade-container flex items-center text-red-600">
              <div class="grade-label mr-1">成绩:</div>
              <div class="grade-num text-lg font-bold">100</div>
              <div class="grade-num text-lg font-bold">60</div>
            </div>
          </div>
          <div class="right-container">