|
@@ -3,8 +3,8 @@
|
|
|
:style="{ display: store.historyOpen ? 'block' : 'none' }"
|
|
|
class="history-container tw-px-1"
|
|
|
>
|
|
|
- <div class="tw-p-1 tw-flex tw-justify-between tw-place-items-center">
|
|
|
- <div class="tw-text-xl">回评</div>
|
|
|
+ <!-- <div class="tw-p-1 tw-flex tw-justify-between tw-place-items-center">
|
|
|
+ <div class="tw-text-lg main-text-color">回评</div>
|
|
|
<a-button
|
|
|
class="tw-content-end"
|
|
|
shape="circle"
|
|
@@ -12,34 +12,26 @@
|
|
|
>
|
|
|
<template #icon><CloseOutlined /></template>
|
|
|
</a-button>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<!-- :value="secretNumberInput"
|
|
|
@change="updateSecretNumber" -->
|
|
|
- <div class="tw-mt-1 tw-mb-1 tw-flex">
|
|
|
+ <div class="tw-mt-1 tw-mb-1 tw-flex tw-place-items-center">
|
|
|
+ <div class="tw-text-lg main-text-color tw-mr-4 tw-font-bold">回评</div>
|
|
|
<input
|
|
|
v-model="secretNumberInput"
|
|
|
@keydown.stop="() => {}"
|
|
|
@keypress.stop="() => {}"
|
|
|
type="text"
|
|
|
placeholder="查找试卷"
|
|
|
- class="
|
|
|
- tw-w-full
|
|
|
- tw-rounded
|
|
|
- tw-h-8
|
|
|
- tw-border-solid
|
|
|
- tw-border-gray-400
|
|
|
- tw-border-2
|
|
|
- tw-pl-1
|
|
|
- tw-pr-8
|
|
|
- "
|
|
|
+ class="tw-flex-1 tw-rounded tw-h-8 tw-pl-1 tw-pr-8"
|
|
|
@keyup.enter="searchHistoryTask"
|
|
|
/>
|
|
|
<SearchOutlined
|
|
|
- style="margin-left: -30px; font-size: 24px; padding: 3px"
|
|
|
+ style="margin-left: -24px; font-size: 18px; padding: 3px"
|
|
|
@click="searchHistoryTask"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="tw-flex tw-justify-between">
|
|
|
+ <div class="tw-flex tw-justify-between tw-mt-5">
|
|
|
<div class="tw-cursor-pointer tw-flex">编号</div>
|
|
|
<div
|
|
|
@click="toggleOrderBy('markerTime')"
|
|
@@ -47,11 +39,11 @@
|
|
|
>
|
|
|
时间
|
|
|
<CaretUpOutlined
|
|
|
- style="font-size: 20px"
|
|
|
+ style="font-size: 16px"
|
|
|
v-if="order === 'markerTime' && sort === 'ASC'"
|
|
|
/>
|
|
|
<CaretDownOutlined
|
|
|
- style="font-size: 20px"
|
|
|
+ style="font-size: 16px"
|
|
|
v-if="order === 'markerTime' && sort === 'DESC'"
|
|
|
/>
|
|
|
</div>
|
|
@@ -61,42 +53,69 @@
|
|
|
>
|
|
|
分数
|
|
|
<CaretUpOutlined
|
|
|
- style="font-size: 20px"
|
|
|
+ style="font-size: 16px"
|
|
|
v-if="order === 'markerScore' && sort === 'ASC'"
|
|
|
/>
|
|
|
<CaretDownOutlined
|
|
|
- style="font-size: 20px"
|
|
|
+ style="font-size: 16px"
|
|
|
v-if="order === 'markerScore' && sort === 'DESC'"
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<a-spin :spinning="loading" size="large" tip="Loading...">
|
|
|
- <div v-for="(task, index) of store.historyTasks" :key="index">
|
|
|
- <div
|
|
|
- @click="replaceCurrentTask(task)"
|
|
|
- class="
|
|
|
- tw-flex
|
|
|
- tw-justify-between
|
|
|
- tw-place-items-center
|
|
|
- tw-rounded
|
|
|
- tw-cursor-pointer
|
|
|
- "
|
|
|
- :class="store.currentTask === task && 'current-task'"
|
|
|
- >
|
|
|
- <div class="tw-break-words tw-w-1/3">{{ task.secretNumber }}</div>
|
|
|
- <div>
|
|
|
- {{ $filters.datetimeFilter(task.markTime) }}
|
|
|
- </div>
|
|
|
- <div style="width: 30px; text-align: center">
|
|
|
- {{ task.markerScore }}
|
|
|
+ <div style="margin-bottom: -40px; padding-bottom: 40px">
|
|
|
+ <div v-for="(task, index) of store.historyTasks" :key="index">
|
|
|
+ <div
|
|
|
+ @click="replaceCurrentTask(task)"
|
|
|
+ class="
|
|
|
+ tw-flex
|
|
|
+ tw-justify-between
|
|
|
+ tw-place-items-center
|
|
|
+ tw-rounded
|
|
|
+ tw-cursor-pointer
|
|
|
+ tw-font-bold
|
|
|
+ tw-py-2
|
|
|
+ "
|
|
|
+ :class="store.currentTask === task && 'current-task'"
|
|
|
+ >
|
|
|
+ <div class="tw-break-words tw-w-1/3">{{ task.secretNumber }}</div>
|
|
|
+ <div>
|
|
|
+ {{ $filters.datetimeFilter(task.markTime) }}
|
|
|
+ </div>
|
|
|
+ <div style="width: 30px; text-align: right">
|
|
|
+ {{ task.markerScore }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-spin>
|
|
|
- <div class="tw-flex tw-justify-between tw-place-content-center tw-mt-2">
|
|
|
- <a-button @click="previousPage">上一页</a-button>
|
|
|
- <div style="line-height: 30px">第{{ currentPage }}页</div>
|
|
|
- <a-button @click="nextPage">下一页</a-button>
|
|
|
+ <div
|
|
|
+ class="
|
|
|
+ tw-flex tw-justify-between tw-place-content-center tw-mt-2
|
|
|
+ pager-container
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <div class="tw-font-bold" style="line-height: 30px">
|
|
|
+ 第{{ currentPage }}页
|
|
|
+ </div>
|
|
|
+ <div class="tw-flex tw-gap-2">
|
|
|
+ <a-button
|
|
|
+ shape="circle"
|
|
|
+ @click="previousPage"
|
|
|
+ type="primary"
|
|
|
+ title="上一页"
|
|
|
+ >
|
|
|
+ <div class="left-triangle"></div>
|
|
|
+ </a-button>
|
|
|
+ <a-button
|
|
|
+ shape="circle"
|
|
|
+ @click="nextPage"
|
|
|
+ type="primary"
|
|
|
+ title="下一页"
|
|
|
+ >
|
|
|
+ <div class="right-triangle"></div>
|
|
|
+ </a-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -193,7 +212,7 @@ watch(
|
|
|
|
|
|
async function updateHistoryTask({
|
|
|
pageNumber = 1,
|
|
|
- pageSize = 10,
|
|
|
+ pageSize = 20,
|
|
|
order = "markerTime",
|
|
|
sort = "DESC",
|
|
|
secretNumber = null,
|
|
@@ -250,7 +269,7 @@ function previousPage() {
|
|
|
}
|
|
|
}
|
|
|
function nextPage() {
|
|
|
- if (store.historyTasks.length >= 10) {
|
|
|
+ if (store.historyTasks.length >= 20) {
|
|
|
currentPage.value += 1;
|
|
|
}
|
|
|
}
|
|
@@ -274,10 +293,40 @@ function searchHistoryTask() {
|
|
|
|
|
|
<style scoped>
|
|
|
.history-container {
|
|
|
- min-width: 250px;
|
|
|
- border-right: 1px solid grey;
|
|
|
+ min-width: 290px;
|
|
|
+ padding: 20px;
|
|
|
+ font-size: 12px;
|
|
|
+ overflow-y: auto;
|
|
|
+ height: calc(100vh - 56px);
|
|
|
}
|
|
|
.current-task {
|
|
|
- background-color: aqua;
|
|
|
+ background-color: white;
|
|
|
+ padding-left: 5px;
|
|
|
+ margin-left: -5px;
|
|
|
+ padding-right: 5px;
|
|
|
+ margin-right: -5px;
|
|
|
+}
|
|
|
+
|
|
|
+.left-triangle {
|
|
|
+ width: 12px;
|
|
|
+ height: 12px;
|
|
|
+ background-color: white;
|
|
|
+ clip-path: polygon(0 50%, 100% 0, 100% 100%);
|
|
|
+ translate: 60%;
|
|
|
+}
|
|
|
+
|
|
|
+.right-triangle {
|
|
|
+ width: 12px;
|
|
|
+ height: 12px;
|
|
|
+ background-color: white;
|
|
|
+ clip-path: polygon(100% 50%, 0 100%, 0 0);
|
|
|
+ translate: 90%;
|
|
|
+}
|
|
|
+.pager-container {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0px;
|
|
|
+ padding-bottom: 20px;
|
|
|
+ width: 250px;
|
|
|
+ background-color: var(--app-main-bg-color);
|
|
|
}
|
|
|
</style>
|