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

98 lines
2.0 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: '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: 'teacherSumno'
},
{
title: '最小有效样本数',
align: "center",
dataIndex: 'minNum'
},
{
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',},
};