dbsd_kczx/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts

107 lines
2.1 KiB
TypeScript
Raw Normal View History

2024-05-06 19:41: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-07 17:14:14 +08:00
title: '学生姓名',
2024-05-06 19:41:47 +08:00
align: "center",
2024-05-07 17:14:14 +08:00
dataIndex: 'studentName'
2024-05-06 19:41:47 +08:00
},
2024-05-08 16:04:27 +08:00
{
title: '学生学号',
align: "center",
dataIndex: 'createBy'
},
2024-05-10 20:01:34 +08:00
{
title: '提交时间',
align: "center",
dataIndex: 'createTime'
},
2024-05-13 20:13:07 +08:00
{
title: '评分',
align: "center",
2024-05-22 13:43:18 +08:00
dataIndex: 'score',
width: '80px'
2024-05-13 20:13:07 +08:00
},
2024-05-13 16:29:57 +08:00
// {
// title: '作业附件',
// align: "center",
// dataIndex: 'filePath',
// slots: { customRender: 'fileSlot' },
// },
// {
// title: '在线预览',
// align: "center",
// dataIndex: 'filePath',
// slots: { customRender: 'fileZxSlot' },
// },
2024-05-21 17:53:16 +08:00
// {
// title: '外网相似率',
// align: "center",
// dataIndex: 'wwxsl'
// },
2024-05-06 19:41:47 +08:00
{
2024-05-23 21:06:35 +08:00
title: '外网检测',
2024-05-06 19:41:47 +08:00
align: "center",
2024-05-21 17:53:16 +08:00
dataIndex: 'wwsftg',
slots: { customRender: 'wwsftgaction' },
2024-05-06 19:41:47 +08:00
},
2024-05-21 17:53:16 +08:00
// {
// title: '内网相似率',
// align: "center",
// dataIndex: 'nwxsl'
// },
2024-05-06 19:41:47 +08:00
{
2024-05-23 21:06:35 +08:00
title: '内网检测',
2024-05-06 19:41:47 +08:00
align: "center",
2024-05-21 17:53:16 +08:00
dataIndex: 'nwsftg',
slots: { customRender: 'nwsftgaction' },
2024-05-06 19:41:47 +08:00
},
2024-05-21 17:53:16 +08:00
// {
// title: 'aigc相似率',
// align: "center",
// dataIndex: 'aigcxsl'
// },
2024-05-06 19:41:47 +08:00
{
2024-05-23 21:06:35 +08:00
title: 'aigc检测',
2024-05-06 19:41:47 +08:00
align: "center",
2024-05-21 17:53:16 +08:00
dataIndex: 'aigcsftg',
slots: { customRender: 'aigcsftgaction' },
2024-05-06 19:41:47 +08:00
},
];
//查询数据
export const searchFormSchema: FormSchema[] = [
{
label: "作业名称",
field: 'mainId',
component: 'Input',
colProps: {span: 6},
},
];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '作业附件',
field: 'filePath',
component: 'JUpload',
componentProps:{
},
dynamicRules: ({model,schema}) => {
return [
{ required: true, message: '请输入作业附件!'},
];
},
},
// TODO 主键隐藏字段目前写死为ID
{
label: '',
field: 'id',
component: 'Input',
show: false,
},
];