刘洋 1 year ago
parent
commit
c6e6d01498

+ 5 - 1
src/features/arbitrate/Arbitrate.vue

@@ -69,7 +69,11 @@ import { isNumber } from "lodash-es";
 import type { Question } from "@/types";
 
 const arbitrateIndex = computed(() => {
-  return store.currentTask?.arbitrateIndex;
+  return store.currentTask?.arbitrateIndex == null
+    ? (store.currentTask?.questionList || []).map(
+        (item: any, index: number) => index + 1
+      ) + ""
+    : store.currentTask?.arbitrateIndex;
 });
 const arbitrateIndexArr = computed(() => {
   let str = arbitrateIndex.value;

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

@@ -164,7 +164,7 @@ const activeIndex = computed(() => {
   ).map((indexStr: string) => Number(indexStr) - 1);
 });
 const notInActive = (index: number) => {
-  return activeIndex.value.length && activeIndex.value.indexOf(index) == -1;
+  return activeIndex.value.indexOf(index) == -1;
 };
 
 const emit = defineEmits(["submit", "allZeroSubmit", "unselectiveSubmit"]);

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

@@ -143,7 +143,7 @@ const activeIndex = computed(() => {
   ).map((indexStr: string) => Number(indexStr) - 1);
 });
 const notInActive = (index: number) => {
-  return activeIndex.value.length && activeIndex.value.indexOf(index) == -1;
+  return activeIndex.value.indexOf(index) == -1;
 };
 
 const emit = defineEmits(["submit", "allZeroSubmit", "unselectiveSubmit"]);

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

@@ -301,7 +301,7 @@ const activeIndex = computed(() => {
   ).map((indexStr: string) => Number(indexStr) - 1);
 });
 const notInActive = (index: number) => {
-  return activeIndex.value.length && activeIndex.value.indexOf(index) == -1;
+  return activeIndex.value.indexOf(index) == -1;
 };
 const emit = defineEmits(["submit", "allZeroSubmit", "unselectiveSubmit"]);
 const { dragSpliter, topPercent } = dragSplitPane();