dbsd_kczx/src/views/kc/config/KcExportConfigTpkwcqkjzglx....

102 lines
1.9 KiB
TypeScript
Raw Normal View History

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: 'dwmc'
},
{
title: '教师工号',
align: "center",
dataIndex: 'gh'
},
{
title: '教师姓名',
align: "center",
dataIndex: 'xm'
},
{
2023-08-09 00:40:10 +08:00
title: '听课身份',
align: "center",
dataIndex: 'tklx_dictText'
},
{
2023-08-09 00:40:10 +08:00
title: '听课类型',
align: "center",
dataIndex: 'sf'
},
{
title: '状态',
align: "center",
dataIndex: 'zt'
},
{
title: '每学期应听课次数',
align: "center",
dataIndex: 'ytkcs'
},
2023-08-11 01:23:31 +08:00
// {
// title: '每学期应听课次数',
// align: "center",
// dataIndex: 'yskcs'
// },
{
title: '每学期听课次数',
align: "center",
dataIndex: 'tkxttj'
},
];
//查询数据
export const searchFormSchema: FormSchema[] = [
{
label: "教师",
field: 'gh',
component: 'JDictSelectTag',
componentProps:{
dictCode: "xxhbuser,xm,gh"
},
colProps: {span: 6},
},
{
label: "听课类型",
field: 'tklx',
component: 'JDictSelectTag',
componentProps:{
dictCode: "tpkwcqkjzglx"
},
colProps: {span: 6},
},
];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '教师',
field: 'gh',
component: 'JDictSelectTag',
componentProps:{
dictCode: "xxhbuser,xm,gh"
},
},
{
label: '听课类型',
field: 'tklx',
component: 'JDictSelectTag',
componentProps:{
dictCode: "tpkwcqkjzglx"
},
},
// TODO 主键隐藏字段目前写死为ID
{
label: '',
field: 'id',
component: 'Input',
show: false,
},
];