|
@@ -129,7 +129,7 @@ const groups = computed(() => {
|
|
|
return [...new Set(gs)].sort((a, b) => a - b);
|
|
|
});
|
|
|
|
|
|
-const questions = computed(() => {
|
|
|
+const questions = $computed(() => {
|
|
|
const qs = store.currentTask?.questionList;
|
|
|
return qs;
|
|
|
});
|
|
@@ -146,7 +146,7 @@ function removeCheckedQuestion(question: Question) {
|
|
|
function groupChecked(groupNumber: number) {
|
|
|
return (
|
|
|
checkedQuestions.filter((q) => q.groupNumber === groupNumber).length ===
|
|
|
- questions.value?.filter((q) => q.groupNumber === groupNumber).length
|
|
|
+ questions?.filter((q) => q.groupNumber === groupNumber).length
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -172,7 +172,7 @@ function groupClicked(groupNumber: number) {
|
|
|
checkedQuestions.splice(idx, 1);
|
|
|
});
|
|
|
} else {
|
|
|
- questions.value
|
|
|
+ questions
|
|
|
?.filter((q) => q.groupNumber === groupNumber)
|
|
|
.forEach((q) => {
|
|
|
if (!questionChecked(q)) checkedQuestions.push(q);
|
|
@@ -188,7 +188,7 @@ function addFocusTrack(
|
|
|
store.focusTracks.splice(0);
|
|
|
|
|
|
if (groupNumber) {
|
|
|
- questions.value
|
|
|
+ questions
|
|
|
?.filter((q) => q.groupNumber === groupNumber)
|
|
|
?.map((q) => q.trackList)
|
|
|
.reduce((acc, ts) => acc.concat(ts))
|
|
@@ -196,7 +196,7 @@ function addFocusTrack(
|
|
|
store.focusTracks.push(t);
|
|
|
});
|
|
|
} else {
|
|
|
- questions.value
|
|
|
+ questions
|
|
|
?.map((q) => q.trackList)
|
|
|
.reduce((acc, ts) => acc.concat(ts))
|
|
|
.filter((t) => {
|