2024-05-10 21:15:47 +08:00
|
|
|
|
import {BasicColumn} from '/@/components/Table';
|
|
|
|
|
import {FormSchema} from '/@/components/Table';
|
|
|
|
|
import { rules} from '/@/utils/helper/validator';
|
|
|
|
|
import { render } from '/@/utils/common/renderUtils';
|
|
|
|
|
//列表数据
|
|
|
|
|
export const columns: BasicColumn[] = [
|
|
|
|
|
{
|
2024-05-21 17:53:16 +08:00
|
|
|
|
title: '测验名称',
|
2024-05-10 21:15:47 +08:00
|
|
|
|
align: "center",
|
2024-05-10 21:22:52 +08:00
|
|
|
|
dataIndex: 'title',
|
|
|
|
|
width: 200
|
2024-05-10 21:15:47 +08:00
|
|
|
|
},
|
2024-05-13 23:04:21 +08:00
|
|
|
|
{
|
|
|
|
|
title: '学号',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'userId',
|
|
|
|
|
width: 100
|
|
|
|
|
},
|
2024-05-10 21:15:47 +08:00
|
|
|
|
{
|
|
|
|
|
title: '学生',
|
|
|
|
|
align: "center",
|
2024-05-10 21:22:52 +08:00
|
|
|
|
dataIndex: 'userName',
|
|
|
|
|
width: 100
|
2024-05-10 21:15:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '得分',
|
|
|
|
|
align: "center",
|
2024-05-10 21:22:52 +08:00
|
|
|
|
dataIndex: 'score',
|
|
|
|
|
width: 80
|
2024-05-10 21:15:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2024-05-21 17:53:16 +08:00
|
|
|
|
title: '总分',
|
2024-05-10 21:15:47 +08:00
|
|
|
|
align: "center",
|
2024-05-10 21:22:52 +08:00
|
|
|
|
dataIndex: 'totalScore',
|
|
|
|
|
width: 80
|
2024-05-10 21:15:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '答卷时间',
|
2024-05-13 23:04:21 +08:00
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'openTime',
|
|
|
|
|
width: 150
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '交卷时间',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'commitTime',
|
|
|
|
|
width: 150
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '答卷用时',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'answerSfm',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '学期学年',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'xqxn',
|
|
|
|
|
width: 80
|
|
|
|
|
},
|
2024-05-15 21:12:55 +08:00
|
|
|
|
// {
|
|
|
|
|
// title: '课程名称',
|
|
|
|
|
// align: "center",
|
|
|
|
|
// dataIndex: 'kcmc',
|
|
|
|
|
// width: 200
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// title: '作答开始时间',
|
|
|
|
|
// align: "center",
|
|
|
|
|
// dataIndex: 'startTime',
|
|
|
|
|
// width: 150
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// title: '作答结束时间',
|
|
|
|
|
// align: "center",
|
|
|
|
|
// dataIndex: 'endTime',
|
|
|
|
|
// width: 150
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// title: '问卷描述',
|
|
|
|
|
// align: "center",
|
|
|
|
|
// dataIndex: 'content',
|
|
|
|
|
// width: 200
|
|
|
|
|
// },
|
2024-05-13 23:04:21 +08:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const dccolumns: BasicColumn[] = [
|
|
|
|
|
{
|
2024-05-21 17:53:16 +08:00
|
|
|
|
title: '测验名称',
|
2024-05-13 23:04:21 +08:00
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'title',
|
|
|
|
|
width: 200
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '学号',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'userId',
|
|
|
|
|
width: 100
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '学生',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'userName',
|
|
|
|
|
width: 100
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '答卷时间',
|
2024-05-10 21:15:47 +08:00
|
|
|
|
align: "center",
|
2024-05-10 21:22:52 +08:00
|
|
|
|
dataIndex: 'openTime',
|
|
|
|
|
width: 150
|
2024-05-10 21:15:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '交卷时间',
|
|
|
|
|
align: "center",
|
2024-05-10 21:22:52 +08:00
|
|
|
|
dataIndex: 'commitTime',
|
|
|
|
|
width: 150
|
2024-05-10 21:15:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '答卷用时',
|
|
|
|
|
align: "center",
|
2024-05-10 21:22:52 +08:00
|
|
|
|
dataIndex: 'answerSfm',
|
|
|
|
|
width: 80
|
2024-05-10 21:15:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '学期学年',
|
|
|
|
|
align: "center",
|
2024-05-10 21:22:52 +08:00
|
|
|
|
dataIndex: 'xqxn',
|
|
|
|
|
width: 80
|
2024-05-10 21:15:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '课程名称',
|
|
|
|
|
align: "center",
|
2024-05-10 21:22:52 +08:00
|
|
|
|
dataIndex: 'kcmc',
|
|
|
|
|
width: 200
|
2024-05-10 21:15:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '开始时间',
|
|
|
|
|
align: "center",
|
2024-05-10 21:22:52 +08:00
|
|
|
|
dataIndex: 'startTime',
|
|
|
|
|
width: 150
|
2024-05-10 21:15:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '结束时间',
|
|
|
|
|
align: "center",
|
2024-05-10 21:22:52 +08:00
|
|
|
|
dataIndex: 'endTime',
|
|
|
|
|
width: 150
|
2024-05-10 21:15:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '问卷描述',
|
|
|
|
|
align: "center",
|
2024-05-10 21:22:52 +08:00
|
|
|
|
dataIndex: 'content',
|
|
|
|
|
width: 200
|
2024-05-10 21:15:47 +08:00
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
//查询数据
|
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
//表单数据
|
|
|
|
|
export const formSchema: FormSchema[] = [
|
|
|
|
|
// TODO 主键隐藏字段,目前写死为ID
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'id',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
];
|