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
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '作业附件',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'filePath',
|
|
|
|
|
slots: { customRender: 'fileSlot' },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '外网相似律',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'wwxsl'
|
|
|
|
|
},
|
|
|
|
|
{
|
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: 'wwsftg'
|
2024-05-06 19:41:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
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: 'nwxsl'
|
2024-05-06 19:41:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
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: 'nwsftg'
|
2024-05-06 19:41:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2024-05-07 17:14:14 +08:00
|
|
|
|
title: 'aigc相似律',
|
2024-05-06 19:41:47 +08:00
|
|
|
|
align: "center",
|
2024-05-07 17:14:14 +08:00
|
|
|
|
dataIndex: 'aigcxsl'
|
2024-05-06 19:41:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'aigc是否通过',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'aigcsftg'
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
//查询数据
|
|
|
|
|
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,
|
|
|
|
|
},
|
|
|
|
|
];
|