|
@@ -100,7 +100,7 @@
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
:id="'bq-' + question.mainNumber + '-' + question.subNumber"
|
|
:id="'bq-' + question.mainNumber + '-' + question.subNumber"
|
|
- class="question tw-rounded tw-p-1 tw-mb-2 tw-cursor-pointer tw-relative"
|
|
|
|
|
|
+ class="question tw-rounded tw-p-1 tw-mb-1 tw-cursor-pointer tw-relative"
|
|
:class="{
|
|
:class="{
|
|
'current-question': isCurrentQuestion(question),
|
|
'current-question': isCurrentQuestion(question),
|
|
disabled: notInActive(index),
|
|
disabled: notInActive(index),
|
|
@@ -142,6 +142,18 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="tw-mb-2">
|
|
|
|
+ <div
|
|
|
|
+ v-if="question.selective"
|
|
|
|
+ class="tw-cursor-pointer tw-font-bold unselective"
|
|
|
|
+ :class="{
|
|
|
|
+ 'current-score': question.hasSetUnselective,
|
|
|
|
+ }"
|
|
|
|
+ @click="setUnselect(question, index)"
|
|
|
|
+ >
|
|
|
|
+ 未选做
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -186,6 +198,7 @@ let scoreStr = $ref("");
|
|
watch(
|
|
watch(
|
|
() => [store.currentQuestion, store.setting.uiSetting["normal.mode"]],
|
|
() => [store.currentQuestion, store.setting.uiSetting["normal.mode"]],
|
|
() => {
|
|
() => {
|
|
|
|
+ console.log("store.currentQuestion?.score", store.currentQuestion?.score);
|
|
if (isNumber(store.currentQuestion?.score)) {
|
|
if (isNumber(store.currentQuestion?.score)) {
|
|
scoreStr = "" + store.currentQuestion?.score;
|
|
scoreStr = "" + store.currentQuestion?.score;
|
|
} else {
|
|
} else {
|
|
@@ -295,6 +308,7 @@ function numberKeyListener(event: KeyboardEvent) {
|
|
}
|
|
}
|
|
const { __index } = store.currentQuestion;
|
|
const { __index } = store.currentQuestion;
|
|
store.currentTask.markResult.scoreList[__index] = score;
|
|
store.currentTask.markResult.scoreList[__index] = score;
|
|
|
|
+ store.currentQuestion.hasSetUnselective = false;
|
|
//
|
|
//
|
|
// scoreStr = "";
|
|
// scoreStr = "";
|
|
// console.log("give score", score);
|
|
// console.log("give score", score);
|
|
@@ -365,9 +379,33 @@ function submit() {
|
|
const buttonHeightForSelective = $computed(() =>
|
|
const buttonHeightForSelective = $computed(() =>
|
|
store.setting.selective && store.setting.enableAllZero ? "36px" : "76px"
|
|
store.setting.selective && store.setting.enableAllZero ? "36px" : "76px"
|
|
);
|
|
);
|
|
|
|
+
|
|
|
|
+function setUnselect(question: Question, index: number) {
|
|
|
|
+ if (!question.hasSetUnselective) {
|
|
|
|
+ const markResult = store.currentTask.markResult;
|
|
|
|
+ markResult.scoreList[index] = null;
|
|
|
|
+ store.currentScore = undefined;
|
|
|
|
+ // scoreStr = "未选做";
|
|
|
|
+ scoreStr = "";
|
|
|
|
+ } else {
|
|
|
|
+ scoreStr = "";
|
|
|
|
+ }
|
|
|
|
+ question.hasSetUnselective = !question.hasSetUnselective;
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
|
|
+.unselective {
|
|
|
|
+ width: 72px;
|
|
|
|
+
|
|
|
|
+ height: 32px;
|
|
|
|
+ font-size: var(--app-secondary-font-size);
|
|
|
|
+ display: grid;
|
|
|
|
+ place-content: center;
|
|
|
|
+ background-color: var(--app-container-bg-color);
|
|
|
|
+
|
|
|
|
+ border-radius: 30px;
|
|
|
|
+}
|
|
.mark-board-track-container {
|
|
.mark-board-track-container {
|
|
max-width: 290px;
|
|
max-width: 290px;
|
|
min-width: 290px;
|
|
min-width: 290px;
|