|
@@ -26,7 +26,7 @@
|
|
|
|
|
|
<div v-if="groups" class="tw-flex-grow tw-overflow-auto tw-my-5">
|
|
<div v-if="groups" class="tw-flex-grow tw-overflow-auto tw-my-5">
|
|
<template v-for="(groupNumber, index) in groups" :key="index">
|
|
<template v-for="(groupNumber, index) in groups" :key="index">
|
|
- <div class="tw-mb-4 tw-bg-white tw-p-4">
|
|
|
|
|
|
+ <div class="tw-mb-4 tw-bg-white tw-p-4 tw-pl-5 tw-pr-3">
|
|
<div
|
|
<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)"
|
|
@mouseover="addFocusTrack(groupNumber, undefined, undefined)"
|
|
@@ -39,6 +39,7 @@
|
|
<div
|
|
<div
|
|
v-if="question.groupNumber === groupNumber"
|
|
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"
|
|
|
|
+ :class="{ uncalculate: question.uncalculate }"
|
|
@mouseover="
|
|
@mouseover="
|
|
addFocusTrack(
|
|
addFocusTrack(
|
|
undefined,
|
|
undefined,
|
|
@@ -48,12 +49,18 @@
|
|
"
|
|
"
|
|
@mouseleave="removeFocusTrack"
|
|
@mouseleave="removeFocusTrack"
|
|
>
|
|
>
|
|
- <span class="tw-flex-1">
|
|
|
|
|
|
+ <a-tooltip placement="left">
|
|
|
|
+ <template #title>
|
|
|
|
+ <span>未计入总分</span>
|
|
|
|
+ </template>
|
|
|
|
+ <MinusCircleFilled class="uncalculate-icon" />
|
|
|
|
+ </a-tooltip>
|
|
|
|
+ <span class="question-title">
|
|
{{ question.title }} {{ question.mainNumber }}-{{
|
|
{{ question.title }} {{ question.mainNumber }}-{{
|
|
question.subNumber
|
|
question.subNumber
|
|
}}
|
|
}}
|
|
</span>
|
|
</span>
|
|
- <span class="tw-flex-1 tw-text-center">
|
|
|
|
|
|
+ <span class="tw-text-center question-score">
|
|
{{ question.score === -1 ? "未选做" : question.score || 0 }}
|
|
{{ question.score === -1 ? "未选做" : question.score || 0 }}
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
@@ -91,10 +98,14 @@ import {
|
|
addFocusTrack,
|
|
addFocusTrack,
|
|
removeFocusTrack,
|
|
removeFocusTrack,
|
|
} from "@/features/mark/use/focusTracks";
|
|
} from "@/features/mark/use/focusTracks";
|
|
|
|
+import { MinusCircleOutlined, MinusCircleFilled } from "@ant-design/icons-vue";
|
|
|
|
|
|
const emit = defineEmits(["makeTag", "fetchTask"]);
|
|
const emit = defineEmits(["makeTag", "fetchTask"]);
|
|
-const props =
|
|
|
|
- defineProps<{ tagged: boolean; isFirst: boolean; isLast: boolean }>();
|
|
|
|
|
|
+const props = defineProps<{
|
|
|
|
+ tagged: boolean;
|
|
|
|
+ isFirst: boolean;
|
|
|
|
+ isLast: boolean;
|
|
|
|
+}>();
|
|
let checkedQuestions: Question[] = reactive([]);
|
|
let checkedQuestions: Question[] = reactive([]);
|
|
|
|
|
|
watch(
|
|
watch(
|
|
@@ -155,6 +166,31 @@ function makeTag(isTag: boolean) {
|
|
min-width: 80px;
|
|
min-width: 80px;
|
|
background-color: var(--app-container-bg-color);
|
|
background-color: var(--app-container-bg-color);
|
|
}
|
|
}
|
|
|
|
+.question-title {
|
|
|
|
+ flex: 1;
|
|
|
|
+}
|
|
|
|
+.question-score {
|
|
|
|
+ flex-basis: 56px;
|
|
|
|
+ padding: 0 3px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.question.uncalculate {
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.question .uncalculate-icon {
|
|
|
|
+ display: none;
|
|
|
|
+ color: red;
|
|
|
|
+ position: absolute;
|
|
|
|
+ font-size: 15px;
|
|
|
|
+ left: -16px;
|
|
|
|
+ top: 0.3em;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.question.uncalculate .uncalculate-icon {
|
|
|
|
+ display: block;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
|
|
.full-width-btn {
|
|
.full-width-btn {
|
|
width: 100%;
|
|
width: 100%;
|