2023-07-23 01:29:23 +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[] = [
|
|
|
|
|
{
|
2023-07-28 00:57:45 +08:00
|
|
|
|
title: '学院',
|
2023-07-23 01:29:23 +08:00
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'dwmc'
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-07-28 00:57:45 +08:00
|
|
|
|
title: '教师工号',
|
2023-07-23 01:29:23 +08:00
|
|
|
|
align: "center",
|
2023-07-28 00:57:45 +08:00
|
|
|
|
dataIndex: 'gh'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '教师姓名',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'xm'
|
2023-07-23 01:29:23 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-09 00:40:10 +08:00
|
|
|
|
title: '听课身份',
|
2023-07-23 01:29:23 +08:00
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'tklx_dictText'
|
|
|
|
|
},
|
2023-07-28 00:57:45 +08:00
|
|
|
|
{
|
2023-08-09 00:40:10 +08:00
|
|
|
|
title: '听课类型',
|
2023-07-28 00:57:45 +08:00
|
|
|
|
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'
|
|
|
|
|
},
|
2023-07-23 01:29:23 +08:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
//查询数据
|
|
|
|
|
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,
|
|
|
|
|
},
|
|
|
|
|
];
|