102 lines
1.9 KiB
TypeScript
102 lines
1.9 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: '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,
|
||
},
|
||
];
|