浏览代码

feat: lint

zhangjie 5 月之前
父节点
当前提交
1a60eba725

+ 25 - 25
src/features/arbitrate/MarkHeader.vue

@@ -52,33 +52,33 @@ const modeName = $computed(() =>
   store.setting.mode === "TRACK" ? "轨迹模式" : "普通模式"
   store.setting.mode === "TRACK" ? "轨迹模式" : "普通模式"
 );
 );
 
 
-const exchangeModeName = $computed(() =>
-  store.setting.mode === "TRACK" ? "普通模式" : "轨迹模式"
-);
-async function toggleSettingMode() {
-  if (store.isTrackMode) {
-    store.setting.mode = "COMMON";
-  } else {
-    store.setting.mode = "TRACK";
-  }
+// const exchangeModeName = $computed(() =>
+//   store.setting.mode === "TRACK" ? "普通模式" : "轨迹模式"
+// );
+// async function toggleSettingMode() {
+//   if (store.isTrackMode) {
+//     store.setting.mode = "COMMON";
+//   } else {
+//     store.setting.mode = "TRACK";
+//   }
 
 
-  // store.currentTask.markResult.trackList = store.currentTask.questionList
-  //   .map((q) => q.trackList)
-  //   .flat();
-  // store.currentTask.markResult.specialTagList = [
-  //   ...(store.currentTask.specialTagList ?? []),
-  // ];
-  // store.currentTask.markResult.scoreList = store.currentTask.questionList.map(
-  //   (q) => q.score
-  // );
-  sessionStorage.setItem("arbitrate_local_mode", store.setting.mode);
+//   // store.currentTask.markResult.trackList = store.currentTask.questionList
+//   //   .map((q) => q.trackList)
+//   //   .flat();
+//   // store.currentTask.markResult.specialTagList = [
+//   //   ...(store.currentTask.specialTagList ?? []),
+//   // ];
+//   // store.currentTask.markResult.scoreList = store.currentTask.questionList.map(
+//   //   (q) => q.score
+//   // );
+//   sessionStorage.setItem("arbitrate_local_mode", store.setting.mode);
 
 
-  const body = document.querySelector("body");
-  if (body) body.innerHTML = "重新加载中...";
-  // 等待一秒后,重新加载页面
-  await new Promise((resolve) => setTimeout(resolve, 1000));
-  window.location.reload();
-}
+//   const body = document.querySelector("body");
+//   if (body) body.innerHTML = "重新加载中...";
+//   // 等待一秒后,重新加载页面
+//   await new Promise((resolve) => setTimeout(resolve, 1000));
+//   window.location.reload();
+// }
 
 
 const route = useRoute();
 const route = useRoute();
 let isSingleStudent = !!route.query.historyId;
 let isSingleStudent = !!route.query.historyId;

+ 1 - 6
src/features/mark/MarkBoardTrack.vue

@@ -175,7 +175,7 @@
                   {{
                   {{
                     question.hasSetUnselective
                     question.hasSetUnselective
                       ? "未选做"
                       ? "未选做"
-                      : store.currentTask?.markResult?.scoreList[index] ?? ""
+                      : store.currentTask?.markResult?.scoreList[index] ?? ""
                   }}
                   }}
                 </span>
                 </span>
               </transition-group>
               </transition-group>
@@ -801,11 +801,6 @@ const buttonHeightForSelective = $computed(() =>
     }
     }
   }
   }
   position: relative;
   position: relative;
-  .tihao {
-    &:hover {
-      // font-weight: bold;
-    }
-  }
 }
 }
 
 
 .current-question {
 .current-question {

+ 6 - 6
src/features/mark/MarkHistory.vue

@@ -201,7 +201,7 @@ import type {
 import { watch, computed, ref } from "vue";
 import { watch, computed, ref } from "vue";
 import { store } from "@/store/store";
 import { store } from "@/store/store";
 import {
 import {
-  SearchOutlined,
+  // SearchOutlined,
   CaretDownOutlined,
   CaretDownOutlined,
   CaretUpOutlined,
   CaretUpOutlined,
 } from "@ant-design/icons-vue";
 } from "@ant-design/icons-vue";
@@ -379,21 +379,21 @@ EventBus.on("should-reload-history", (needCut?: any) => {
           if (data[0]) {
           if (data[0]) {
             if (needCut) {
             if (needCut) {
               store.historyTasks.splice(indexOfTasks, 1);
               store.historyTasks.splice(indexOfTasks, 1);
-              replaceCurrentTask(store.historyTasks[indexOfTasks]);
+              await replaceCurrentTask(store.historyTasks[indexOfTasks]);
             } else {
             } else {
               // 如果原任务依然存在
               // 如果原任务依然存在
               store.historyTasks.splice(indexOfTasks, 1, data[0]);
               store.historyTasks.splice(indexOfTasks, 1, data[0]);
-              replaceCurrentTask(store.historyTasks[indexOfTasks]);
+              await replaceCurrentTask(store.historyTasks[indexOfTasks]);
             }
             }
           } else {
           } else {
             // 问题卷会查找不到,这里直接删除此任务
             // 问题卷会查找不到,这里直接删除此任务
             store.historyTasks.splice(indexOfTasks, 1);
             store.historyTasks.splice(indexOfTasks, 1);
-            replaceCurrentTask(store.historyTasks[indexOfTasks]);
+            await replaceCurrentTask(store.historyTasks[indexOfTasks]);
           }
           }
         } else {
         } else {
           // 问题卷会将清除它作为 currentTask ,然后刷新当前页
           // 问题卷会将清除它作为 currentTask ,然后刷新当前页
           store.historyTasks = data;
           store.historyTasks = data;
-          replaceCurrentTask(store.historyTasks[0]);
+          await replaceCurrentTask(store.historyTasks[0]);
         }
         }
       }
       }
     } finally {
     } finally {
@@ -404,7 +404,7 @@ EventBus.on("should-reload-history", (needCut?: any) => {
 
 
 async function updateHistoryTask({
 async function updateHistoryTask({
   pageNumber = 1,
   pageNumber = 1,
-  pageSize = 20,
+  // pageSize = 20,
   order = "markerTime",
   order = "markerTime",
   sort = "DESC",
   sort = "DESC",
   secretNumber = null,
   secretNumber = null,

+ 1 - 1
src/features/mark/MultiMediaMarkBody.vue

@@ -84,7 +84,7 @@ const showScore = (question: QuestionForRender) =>
 
 
 let questions: QuestionForRender[] = $ref([]);
 let questions: QuestionForRender[] = $ref([]);
 async function updateStudentAnswerJSON() {
 async function updateStudentAnswerJSON() {
-  return getStudentAnswerJSON(store.currentTask?.jsonUrl as string);
+  return getStudentAnswerJSON(store.currentTask?.jsonUrl );
 }
 }
 
 
 function getDomByRichTextJSON(rt: Array<RichTextJSON> | RichTextJSON | null) {
 function getDomByRichTextJSON(rt: Array<RichTextJSON> | RichTextJSON | null) {

+ 1 - 1
src/features/student/importInspect/MarkBoardInspect.vue

@@ -104,7 +104,7 @@ import {
   addFocusTrack,
   addFocusTrack,
   removeFocusTrack,
   removeFocusTrack,
 } from "@/features/mark/use/focusTracks";
 } from "@/features/mark/use/focusTracks";
-import { MinusCircleOutlined, MinusCircleFilled } from "@ant-design/icons-vue";
+import { MinusCircleFilled } from "@ant-design/icons-vue";
 
 
 const emit = defineEmits(["makeTag", "fetchTask"]);
 const emit = defineEmits(["makeTag", "fetchTask"]);
 const props = defineProps<{
 const props = defineProps<{

+ 1 - 1
src/features/student/scoreVerify/MarkBoardInspect.vue

@@ -104,7 +104,7 @@ import {
   addFocusTrack,
   addFocusTrack,
   removeFocusTrack,
   removeFocusTrack,
 } from "@/features/mark/use/focusTracks";
 } from "@/features/mark/use/focusTracks";
-import { MinusCircleOutlined, MinusCircleFilled } from "@ant-design/icons-vue";
+import { MinusCircleFilled } from "@ant-design/icons-vue";
 
 
 const emit = defineEmits(["makeTag", "fetchTask"]);
 const emit = defineEmits(["makeTag", "fetchTask"]);
 const props = defineProps<{
 const props = defineProps<{

+ 2 - 2
src/features/student/studentInspect/MarkBoardInspect.vue

@@ -157,7 +157,7 @@
 <script setup lang="ts">
 <script setup lang="ts">
 import type { Question } from "@/types";
 import type { Question } from "@/types";
 import { message } from "ant-design-vue";
 import { message } from "ant-design-vue";
-import { MinusCircleOutlined, MinusCircleFilled } from "@ant-design/icons-vue";
+import { MinusCircleFilled } from "@ant-design/icons-vue";
 import { reactive, watch } from "vue";
 import { reactive, watch } from "vue";
 import { store } from "@/store/store";
 import { store } from "@/store/store";
 import {
 import {
@@ -176,7 +176,7 @@ const willAddFocusTrack = (
   // }
   // }
 };
 };
 
 
-const { isMultComments, hasScrollToBottom } = defineProps<{
+const { hasScrollToBottom } = defineProps<{
   isMultComments: boolean;
   isMultComments: boolean;
   hasScrollToBottom: boolean;
   hasScrollToBottom: boolean;
 }>();
 }>();