刘洋 10 月之前
父节点
当前提交
69864d8af7
共有 2 个文件被更改,包括 28 次插入18 次删除
  1. 16 16
      src/devLoginParams.ts
  2. 12 2
      src/features/mark/MarkBoardTrack.vue

+ 16 - 16
src/devLoginParams.ts

@@ -97,14 +97,14 @@
 // };
 
 /** 255 评卷员 */
-// export const LOGIN_CONFIG = {
-//   isAdmin: false,
-//   forceChange: true,
-//   loginName: "6-X-M_pj01",
-//   password: "123456",
-//   examId: "345",
-//   markerId: "3581",
-// };
+export const LOGIN_CONFIG = {
+  isAdmin: false,
+  forceChange: true,
+  loginName: "pjy-3001-5-1",
+  password: "123456",
+  examId: "414",
+  markerId: "4242",
+};
 
 /** 225 管理员 */
 
@@ -117,14 +117,14 @@
 //   markerId: null,
 // };
 
-export const LOGIN_CONFIG = {
-  isAdmin: true,
-  forceChange: true,
-  loginName: "fwy",
-  password: "123456",
-  examId: "393",
-  markerId: null,
-};
+// export const LOGIN_CONFIG = {
+//   isAdmin: true,
+//   forceChange: true,
+//   loginName: "fwy",
+//   password: "123456",
+//   examId: "393",
+//   markerId: null,
+// };
 
 // export const loginName = "admin-ch";
 // export const password = "123456";

+ 12 - 2
src/features/mark/MarkBoardTrack.vue

@@ -328,7 +328,7 @@ import { cloneDeep } from "lodash-es";
 import { useRoute } from "vue-router";
 
 const route = useRoute();
-const curQuestionIndex = ref<number>(0);
+// const curQuestionIndex = ref<number>(0);
 
 const props = defineProps<{ modal?: boolean; arbitrateIndex?: string }>();
 const activeIndex = computed(() => {
@@ -414,7 +414,7 @@ const willChooseQuestion = (question: any, index: number) => {
   if (notInActive(index)) {
     return;
   }
-  curQuestionIndex.value = index;
+  // curQuestionIndex.value = index;
   chooseQuestion(question);
 };
 let sliceImagesWithTrackListCopy = ref([]);
@@ -503,6 +503,16 @@ function isCurrentQuestion(question: Question) {
   );
 }
 
+const curQuestionIndex = computed(() => {
+  return (
+    store.currentTask?.questionList.findIndex(
+      (q) =>
+        q.mainNumber === store.currentQuestion?.mainNumber &&
+        q.subNumber === store.currentQuestion.subNumber
+    ) ?? 0
+  );
+});
+
 function isCurrentScore(score: number) {
   return store.currentScore === score;
 }