|
@@ -1,62 +1,61 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div style="margin-top: 10px" class="app-contain">
|
|
|
|
|
- <a-row :gutter="50">
|
|
|
|
|
- <a-col :span="18">
|
|
|
|
|
- <a-table
|
|
|
|
|
- :loading="listLoading"
|
|
|
|
|
- :data-source="tableData"
|
|
|
|
|
- :columns="columns"
|
|
|
|
|
- row-key="id"
|
|
|
|
|
- :custom-row="customRow"
|
|
|
|
|
- :pagination="false"
|
|
|
|
|
- >
|
|
|
|
|
- <template #bodyCell="{ column, record }">
|
|
|
|
|
- <template v-if="column.key === 'status'">
|
|
|
|
|
- <a-tag :color="statusTagFormatter(record.status)">
|
|
|
|
|
- {{ statusTextFormatter(record.status) }}
|
|
|
|
|
- </a-tag>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-else-if="column.key === 'action'">
|
|
|
|
|
- <template v-if="record.status === 1">
|
|
|
|
|
- <router-link :to="{ path: '/student/edit', query: { id: record.id } }" target="_blank">
|
|
|
|
|
- <a-button type="link" size="small">批改</a-button>
|
|
|
|
|
- </router-link>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-else-if="record.status === 2">
|
|
|
|
|
- <router-link :to="{ path: '/student/read', query: { id: record.id } }" target="_blank">
|
|
|
|
|
- <a-button type="link" size="small">查看试卷</a-button>
|
|
|
|
|
- </router-link>
|
|
|
|
|
- </template>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <div style="margin-top: 10px" class="app-contain">
|
|
|
|
|
+ <a-row :gutter="50">
|
|
|
|
|
+ <a-col :span="18">
|
|
|
|
|
+ <a-table
|
|
|
|
|
+ :loading="listLoading"
|
|
|
|
|
+ :data-source="tableData"
|
|
|
|
|
+ :columns="columns"
|
|
|
|
|
+ row-key="id"
|
|
|
|
|
+ :custom-row="customRow"
|
|
|
|
|
+ :pagination="false"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #bodyCell="{ column, record }">
|
|
|
|
|
+ <template v-if="column.key === 'status'">
|
|
|
|
|
+ <a-tag :color="statusTagFormatter(record.status)">
|
|
|
|
|
+ {{ statusTextFormatter(record.status) }}
|
|
|
|
|
+ </a-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else-if="column.key === 'action'">
|
|
|
|
|
+ <template v-if="record.status === 1">
|
|
|
|
|
+ <router-link :to="{ path: '/student/edit', query: { id: record.id } }" target="_blank">
|
|
|
|
|
+ <a-button type="link" size="small">批改</a-button>
|
|
|
|
|
+ </router-link>
|
|
|
</template>
|
|
</template>
|
|
|
- </a-table>
|
|
|
|
|
- <a-pagination
|
|
|
|
|
- v-if="total > 0"
|
|
|
|
|
- :total="total"
|
|
|
|
|
- :current="queryParam.pageIndex"
|
|
|
|
|
- :page-size="queryParam.pageSize"
|
|
|
|
|
- @change="onPageChange"
|
|
|
|
|
- @showSizeChange="onPageSizeChange"
|
|
|
|
|
- :show-size-changer="true"
|
|
|
|
|
- :page-size-options="['10', '20', '50', '100']"
|
|
|
|
|
- style="margin-top: 20px"
|
|
|
|
|
- />
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="6">
|
|
|
|
|
- <a-card class="record-answer-info">
|
|
|
|
|
- <a-descriptions :column="1" bordered size="small">
|
|
|
|
|
- <a-descriptions-item label="系统判分">{{ selectItem.systemScore }}</a-descriptions-item>
|
|
|
|
|
- <a-descriptions-item label="最终得分">{{ selectItem.userScore }}</a-descriptions-item>
|
|
|
|
|
- <a-descriptions-item label="试卷总分">{{ selectItem.paperScore }}</a-descriptions-item>
|
|
|
|
|
- <a-descriptions-item label="正确题数">{{ selectItem.questionCorrect }}</a-descriptions-item>
|
|
|
|
|
- <a-descriptions-item label="总题数">{{ selectItem.questionCount }}</a-descriptions-item>
|
|
|
|
|
- <a-descriptions-item label="用时">{{ selectItem.doTime }}</a-descriptions-item>
|
|
|
|
|
- </a-descriptions>
|
|
|
|
|
- </a-card>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <template v-else-if="record.status === 2">
|
|
|
|
|
+ <router-link :to="{ path: '/student/read', query: { id: record.id } }" target="_blank">
|
|
|
|
|
+ <a-button type="link" size="small">查看试卷</a-button>
|
|
|
|
|
+ </router-link>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-table>
|
|
|
|
|
+ <a-pagination
|
|
|
|
|
+ v-if="total > 0"
|
|
|
|
|
+ :total="total"
|
|
|
|
|
+ :current="queryParam.pageIndex"
|
|
|
|
|
+ :page-size="queryParam.pageSize"
|
|
|
|
|
+ @change="onPageChange"
|
|
|
|
|
+ @showSizeChange="onPageSizeChange"
|
|
|
|
|
+ :show-size-changer="true"
|
|
|
|
|
+ :page-size-options="['10', '20', '50', '100']"
|
|
|
|
|
+ style="margin-top: 20px"
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="6">
|
|
|
|
|
+ <a-card class="record-answer-info">
|
|
|
|
|
+ <a-descriptions :column="1" bordered size="small">
|
|
|
|
|
+ <a-descriptions-item label="系统判分">{{ selectItem.systemScore }}</a-descriptions-item>
|
|
|
|
|
+ <a-descriptions-item label="最终得分">{{ selectItem.userScore }}</a-descriptions-item>
|
|
|
|
|
+ <a-descriptions-item label="试卷总分">{{ selectItem.paperScore }}</a-descriptions-item>
|
|
|
|
|
+ <a-descriptions-item label="正确题数">{{ selectItem.questionCorrect }}</a-descriptions-item>
|
|
|
|
|
+ <a-descriptions-item label="总题数">{{ selectItem.questionCount }}</a-descriptions-item>
|
|
|
|
|
+ <a-descriptions-item label="用时">{{ selectItem.doTime }}</a-descriptions-item>
|
|
|
|
|
+ </a-descriptions>
|
|
|
|
|
+ </a-card>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
@@ -64,10 +63,6 @@
|
|
|
import { useExamStore } from '@/store/exam'
|
|
import { useExamStore } from '@/store/exam'
|
|
|
import examPaperAnswerApi from '@/api/student/examPaperAnswer'
|
|
import examPaperAnswerApi from '@/api/student/examPaperAnswer'
|
|
|
import { parseTime } from '@/utils/exam'
|
|
import { parseTime } from '@/utils/exam'
|
|
|
- import Footer from "@/views/portal/components/Footer.vue";
|
|
|
|
|
- import Header from "@/views/portal/components/Header.vue";
|
|
|
|
|
- import TallList from "@/views/resourceDetails/components/TallList.vue";
|
|
|
|
|
- import VideoDetails from "@/views/resourceDetails/components/VideoDetails.vue";
|
|
|
|
|
const examStore = useExamStore()
|
|
const examStore = useExamStore()
|
|
|
|
|
|
|
|
const queryParam = reactive({
|
|
const queryParam = reactive({
|
|
@@ -89,7 +84,6 @@
|
|
|
const columns = [
|
|
const columns = [
|
|
|
{ title: '序号', dataIndex: 'id', key: 'id', width: 90 },
|
|
{ title: '序号', dataIndex: 'id', key: 'id', width: 90 },
|
|
|
{ title: '名称', dataIndex: 'paperName', key: 'paperName' },
|
|
{ title: '名称', dataIndex: 'paperName', key: 'paperName' },
|
|
|
- { title: '学科', dataIndex: 'subjectName', key: 'subjectName', width: 70 },
|
|
|
|
|
{
|
|
{
|
|
|
title: '状态',
|
|
title: '状态',
|
|
|
dataIndex: 'status',
|
|
dataIndex: 'status',
|