72 lines
1.4 KiB
TypeScript
72 lines
1.4 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_dictText'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '听课类型',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'tklx_dictText'
|
|||
|
},
|
|||
|
];
|
|||
|
|
|||
|
//查询数据
|
|||
|
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,
|
|||
|
},
|
|||
|
];
|