dbsd_tjbbfx/jeecgboot-vue3/src/views/bl/blTeacherInfo/BlTeacherInfo.data.ts

98 lines
2.0 KiB
TypeScript
Raw Normal View History

2024-06-25 08:55:16 +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[] = [
{
title: '学校名称',
align: "center",
dataIndex: 'schoolName'
},
{
title: '评估单位',
align: "center",
dataIndex: 'pgdw'
},
{
title: '评估日期',
align: "center",
dataIndex: 'pgrq'
},
{
title: '学年',
align: "center",
dataIndex: 'xuenian'
},
{
2024-07-08 19:55:59 +08:00
title: '调查时点',
2024-06-25 08:55:16 +08:00
align: "center",
dataIndex: 'dysd'
},
2024-06-28 19:43:36 +08:00
{
title: '调研总人数',
align: "center",
dataIndex: 'teacherSumno'
},
2024-07-08 19:55:59 +08:00
{
title: '最小有效样本数',
align: "center",
dataIndex: 'minNum'
},
2024-06-25 08:55:16 +08:00
{
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',},
};