88 lines
1.8 KiB
TypeScript
88 lines
1.8 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: 'schoolName'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '评估单位',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'pgdw'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '评估日期',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'pgrq'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '学年',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'xuenian'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '调研时点',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'dysd'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '导入',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'dysd',
|
|||
|
slots: { customRender: 'importXlsBtn' },
|
|||
|
},
|
|||
|
];
|
|||
|
|
|||
|
//查询数据
|
|||
|
export const searchFormSchema: FormSchema[] = [
|
|||
|
];
|
|||
|
|
|||
|
//表单数据
|
|||
|
export const formSchema: FormSchema[] = [
|
|||
|
{
|
|||
|
label: '学校名称',
|
|||
|
field: 'schoolName',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '评估单位',
|
|||
|
field: 'pgdw',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '评估日期',
|
|||
|
field: 'pgrq',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '学年',
|
|||
|
field: 'xuenian',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '调研时点',
|
|||
|
field: 'dysd',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
// TODO 主键隐藏字段,目前写死为ID
|
|||
|
{
|
|||
|
label: '',
|
|||
|
field: 'id',
|
|||
|
component: 'Input',
|
|||
|
show: false,
|
|||
|
},
|
|||
|
];
|
|||
|
|
|||
|
// 高级查询数据
|
|||
|
export const superQuerySchema = {
|
|||
|
schoolName: {title: '学校名称',order: 0,view: 'text', type: 'string',},
|
|||
|
pgdw: {title: '评估单位',order: 1,view: 'text', type: 'string',},
|
|||
|
pgrq: {title: '评估日期',order: 2,view: 'text', type: 'string',},
|
|||
|
xuenian: {title: '学年',order: 3,view: 'text', type: 'string',},
|
|||
|
dysd: {title: '调研时点',order: 4,view: 'text', type: 'string',},
|
|||
|
};
|