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

102 lines
1.9 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: 'dwmc'
},
{
title: '教师工号',
align: "center",
dataIndex: 'gh'
},
{
title: '教师姓名',
align: "center",
dataIndex: 'xm'
},
{
title: '听课身份',
align: "center",
dataIndex: 'tklx_dictText'
},
{
title: '听课类型',
align: "center",
dataIndex: 'sf'
},
{
title: '状态',
align: "center",
dataIndex: 'zt'
},
{
title: '每学期应听课次数',
align: "center",
dataIndex: 'ytkcs'
},
// {
// 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,
},
];