|
@@ -28,7 +28,7 @@
|
|
|
</div>
|
|
|
<ul class="tw-flex tw-gap-2 tw-mb-0">
|
|
|
<li>
|
|
|
- 已评<span class="highlight-text">{{ store.status.markedCount }}</span>
|
|
|
+ 已评<span class="highlight-text">{{ store.status.personCount }}</span>
|
|
|
</li>
|
|
|
<li v-if="store.setting.topCount">
|
|
|
分配<span class="highlight-text">{{ store.setting.topCount }}</span>
|
|
@@ -110,16 +110,45 @@
|
|
|
>
|
|
|
<AlertOutlined class="icon-font icon-font-size-20" />
|
|
|
</div>
|
|
|
+ <a-popover title="小助手" trigger="hover" class="tw-cursor-pointer">
|
|
|
+ <template #content>
|
|
|
+ <table class="assistant-table">
|
|
|
+ <tr>
|
|
|
+ <td>全卷</td>
|
|
|
+ <td><a-switch v-model:checked="allPaperChecked" /></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>缩略图</td>
|
|
|
+ <td><a-switch v-model:checked="miniMapChecked" /></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>特殊标记</td>
|
|
|
+ <td><a-switch v-model:checked="specialTagChecked" /></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>问题卷</td>
|
|
|
+ <td><a-button @click="openProblemModal">选择问题类型</a-button></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </template>
|
|
|
+ <div class="tw-flex">
|
|
|
+ 小助手
|
|
|
+ <DownOutlined
|
|
|
+ style="font-size: 12px; display: inline-block"
|
|
|
+ class="tw-self-center tw-ml-1"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </a-popover>
|
|
|
<div
|
|
|
@click="openSwitchGroupModal"
|
|
|
class="tw-flex tw-place-content-center tw-cursor-pointer"
|
|
|
style="max-width: 8%"
|
|
|
- :title="group?.title"
|
|
|
+ :title="group?.title + '-' + group?.number"
|
|
|
>
|
|
|
<div
|
|
|
class="tw-overflow-ellipsis tw-overflow-hidden tw-whitespace-nowrap tw-mr-1"
|
|
|
>
|
|
|
- {{ group?.title }}
|
|
|
+ {{ "分组:" + group?.number }}
|
|
|
</div>
|
|
|
<DownOutlined
|
|
|
v-if="store.groups.length > 1"
|
|
@@ -145,10 +174,11 @@
|
|
|
</div>
|
|
|
<MarkChangeProfile ref="changeProfileRef" />
|
|
|
<MarkSwitchGroupDialog ref="switchGroupRef" />
|
|
|
+ <MarkProblemDialog ref="problemRef" />
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { doLogout, getGroups, getHistoryTask } from "@/api/markPage";
|
|
|
+import { doLogout, getHistoryTask } from "@/api/markPage";
|
|
|
import { computed, defineComponent, ref } from "vue";
|
|
|
import { store } from "./store";
|
|
|
import {
|
|
@@ -165,6 +195,7 @@ import {
|
|
|
import { ModeEnum } from "@/types";
|
|
|
import MarkChangeProfile from "./MarkChangeProfile.vue";
|
|
|
import MarkSwitchGroupDialog from "./MarkSwitchGroupDialog.vue";
|
|
|
+import MarkProblemDialog from "./MarkProblemDialog.vue";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: "MarkHeader",
|
|
@@ -180,6 +211,7 @@ export default defineComponent({
|
|
|
QuestionCircleOutlined,
|
|
|
MarkChangeProfile,
|
|
|
MarkSwitchGroupDialog,
|
|
|
+ MarkProblemDialog,
|
|
|
},
|
|
|
setup() {
|
|
|
const modeName = computed(() =>
|
|
@@ -282,6 +314,17 @@ export default defineComponent({
|
|
|
switchGroupRef.value?.showModal();
|
|
|
};
|
|
|
|
|
|
+ const problemRef = ref(null);
|
|
|
+
|
|
|
+ const openProblemModal = () => {
|
|
|
+ // @ts-ignore
|
|
|
+ problemRef.value?.showModal();
|
|
|
+ };
|
|
|
+
|
|
|
+ const allPaperChecked = ref(false);
|
|
|
+ const miniMapChecked = ref(false);
|
|
|
+ const specialTagChecked = ref(false);
|
|
|
+
|
|
|
return {
|
|
|
store,
|
|
|
modeName,
|
|
@@ -301,6 +344,11 @@ export default defineComponent({
|
|
|
openProfileModal,
|
|
|
switchGroupRef,
|
|
|
openSwitchGroupModal,
|
|
|
+ allPaperChecked,
|
|
|
+ miniMapChecked,
|
|
|
+ specialTagChecked,
|
|
|
+ problemRef,
|
|
|
+ openProblemModal,
|
|
|
};
|
|
|
},
|
|
|
});
|
|
@@ -338,4 +386,8 @@ export default defineComponent({
|
|
|
.header-bg-color.ant-btn:hover {
|
|
|
background-color: #5d6d7d !important;
|
|
|
}
|
|
|
+.assistant-table {
|
|
|
+ border-collapse: separate;
|
|
|
+ border-spacing: 0 0.5em;
|
|
|
+}
|
|
|
</style>
|