82 lines
1.6 KiB
TypeScript
82 lines
1.6 KiB
TypeScript
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,
|
||
},
|
||
];
|