|
@@ -23,10 +23,7 @@
|
|
|
<template v-for="(groupNumber, index) in groups" :key="index">
|
|
|
<div class="tw-mb-4 tw-bg-white tw-p-4">
|
|
|
<div
|
|
|
- class="
|
|
|
- tw-flex tw-justify-between tw-place-items-center
|
|
|
- hover:tw-bg-gray-200
|
|
|
- "
|
|
|
+ class="tw-flex tw-justify-between tw-place-items-center hover:tw-bg-gray-200"
|
|
|
@mouseover="addFocusTrack(groupNumber, undefined, undefined)"
|
|
|
@mouseleave="removeFocusTrack"
|
|
|
>
|
|
@@ -43,11 +40,7 @@
|
|
|
<template v-for="(question, index2) in questions" :key="index2">
|
|
|
<div
|
|
|
v-if="question.groupNumber === groupNumber"
|
|
|
- class="
|
|
|
- question
|
|
|
- tw-flex tw-place-items-center tw-mb-1 tw-font-bold
|
|
|
- hover:tw-bg-gray-200
|
|
|
- "
|
|
|
+ class="question tw-flex tw-place-items-center tw-mb-1 tw-font-bold hover:tw-bg-gray-200"
|
|
|
@mouseover="
|
|
|
addFocusTrack(
|
|
|
undefined,
|
|
@@ -128,17 +121,17 @@ watch(
|
|
|
checkedQuestions.splice(0);
|
|
|
}
|
|
|
);
|
|
|
-let groups = $computed(() => {
|
|
|
+const groups = $computed(() => {
|
|
|
const gs = store.currentTask?.questionList.map((q) => q.groupNumber);
|
|
|
return [...new Set(gs)].sort((a, b) => a - b);
|
|
|
});
|
|
|
|
|
|
-let questions = $computed(() => {
|
|
|
+const questions = $computed(() => {
|
|
|
const qs = store.currentTask?.questionList;
|
|
|
return qs;
|
|
|
});
|
|
|
|
|
|
-let markerScore = $computed(() => store.currentTask?.markerScore || 0);
|
|
|
+const markerScore = $computed(() => store.currentTask?.markerScore || 0);
|
|
|
|
|
|
function addToCheckedQuestion(question: Question) {
|
|
|
checkedQuestions.push(question);
|