|
@@ -15,9 +15,9 @@
|
|
|
:class="[
|
|
|
'board-score',
|
|
|
'score-icon',
|
|
|
- { 'is-current': Object.is(store.currentSpecialTag, '√') },
|
|
|
+ { 'is-current': store.currentSpecialTag === '√' },
|
|
|
]"
|
|
|
- @click="chooseSpecialTag('√')"
|
|
|
+ @click="chooseSpecialTag('√', 'RIGHT')"
|
|
|
>
|
|
|
<img src="@/assets/icons/icon-right.svg" />
|
|
|
</div>
|
|
@@ -25,9 +25,11 @@
|
|
|
:class="[
|
|
|
'board-score',
|
|
|
'score-icon',
|
|
|
- { 'is-current': Object.is(store.currentSpecialTag, '乄') },
|
|
|
+ {
|
|
|
+ 'is-current': store.currentSpecialTag === '乄',
|
|
|
+ },
|
|
|
]"
|
|
|
- @click="chooseSpecialTag('乄')"
|
|
|
+ @click="chooseSpecialTag('乄', 'HALF_RIGTH')"
|
|
|
>
|
|
|
乄
|
|
|
</div>
|
|
@@ -35,9 +37,9 @@
|
|
|
:class="[
|
|
|
'board-score',
|
|
|
'score-icon',
|
|
|
- { 'is-current': Object.is(store.currentSpecialTag, 'X') },
|
|
|
+ { 'is-current': store.currentSpecialTag === 'X' },
|
|
|
]"
|
|
|
- @click="chooseSpecialTag('X')"
|
|
|
+ @click="chooseSpecialTag('X', 'WRONG')"
|
|
|
>
|
|
|
<img src="@/assets/icons/icon-wrong.svg" />
|
|
|
</div>
|
|
@@ -45,10 +47,10 @@
|
|
|
:class="[
|
|
|
'board-score',
|
|
|
'score-icon',
|
|
|
- { 'is-current': Object.is(store.currentSpecialTag, '○') },
|
|
|
+ { 'is-current': store.currentSpecialTag === '○' },
|
|
|
]"
|
|
|
title="标记圆圈"
|
|
|
- @click="chooseSpecialTag('○')"
|
|
|
+ @click="chooseSpecialTag('○', 'CIRCLE')"
|
|
|
>
|
|
|
<img src="@/assets/icons/icon-circle.svg" />
|
|
|
</div>
|
|
@@ -56,10 +58,10 @@
|
|
|
:class="[
|
|
|
'board-score',
|
|
|
'score-icon',
|
|
|
- { 'is-current': store.currentTextSign },
|
|
|
+ { 'is-current': store.currentSpecialTagType === 'TEXT' },
|
|
|
]"
|
|
|
title="标记文本"
|
|
|
- @click="chooseTextSign"
|
|
|
+ @click="chooseSpecialTag('', 'TEXT')"
|
|
|
>
|
|
|
<img class="icon-text" src="@/assets/icons/icon-text.svg" />
|
|
|
</div>
|
|
@@ -110,19 +112,15 @@ function clearAllTagsOfCurrentTask() {
|
|
|
store.currentTask.markResult.specialTagList = [];
|
|
|
}
|
|
|
|
|
|
-function chooseSpecialTag(tagName: string) {
|
|
|
+function chooseSpecialTag(tagName: string, tagType: string) {
|
|
|
if (store.currentSpecialTag === tagName) {
|
|
|
store.currentSpecialTag = undefined;
|
|
|
+ store.currentSpecialTagType = undefined;
|
|
|
} else {
|
|
|
store.currentSpecialTag = tagName;
|
|
|
+ store.currentSpecialTagType = tagType;
|
|
|
store.currentScore = undefined;
|
|
|
}
|
|
|
- store.currentTextSign = false;
|
|
|
-}
|
|
|
-function chooseTextSign() {
|
|
|
- store.currentTextSign = !store.currentTextSign;
|
|
|
- store.currentSpecialTag = undefined;
|
|
|
- store.currentScore = undefined;
|
|
|
}
|
|
|
|
|
|
const close = () => {
|