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

82 lines
1.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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[] = [
{
title: '作业名称',
align: "center",
dataIndex: 'mainId'
},
{
title: '作业附件',
align: "center",
dataIndex: 'filePath',
slots: { customRender: 'fileSlot' },
},
{
title: '外网相似律',
align: "center",
dataIndex: 'wwxsl'
},
{
title: '内网相似律',
align: "center",
dataIndex: 'nwxsl'
},
{
title: 'aigc相似律',
align: "center",
dataIndex: 'aigcxsl'
},
{
title: '外网是否通过',
align: "center",
dataIndex: 'wwsftg'
},
{
title: '内网是否通过',
align: "center",
dataIndex: 'nwsftg'
},
{
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,
},
];