230 lines
3.9 KiB
TypeScript
230 lines
3.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: 'kcbh'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '课程名称',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'kcmc'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '授课教师',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'skjs'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '授课时间',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'sksj',
|
|||
|
customRender:({text}) =>{
|
|||
|
return !text?"":(text.length>10?text.substr(0,10):text);
|
|||
|
},
|
|||
|
},
|
|||
|
{
|
|||
|
title: '上课地点',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'skdd'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '使用教材',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'syjc'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '授课对象',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'skdx'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '授课教授',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'skjiaoshou'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '教学理解',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'jxlj'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '教学态度',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'jxtd'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '教学过程',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'jxgc'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '教学效果',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'jxxg'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '教学特殊',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'jxts'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '总分',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'zf'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '优点或建议',
|
|||
|
align: "center",
|
|||
|
dataIndex: 'ydhjy'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '评价时间',
|
|||
|
align: "center",
|
|||
|
sorter: true,
|
|||
|
dataIndex: 'pjsj'
|
|||
|
},
|
|||
|
];
|
|||
|
|
|||
|
//查询数据
|
|||
|
export const searchFormSchema: FormSchema[] = [
|
|||
|
{
|
|||
|
label: "课程编号",
|
|||
|
field: 'kcbh',
|
|||
|
component: 'Input',
|
|||
|
colProps: {span: 6},
|
|||
|
},
|
|||
|
{
|
|||
|
label: "课程名称",
|
|||
|
field: 'kcmc',
|
|||
|
component: 'Input',
|
|||
|
colProps: {span: 6},
|
|||
|
},
|
|||
|
{
|
|||
|
label: "授课教师",
|
|||
|
field: 'skjs',
|
|||
|
component: 'Input',
|
|||
|
colProps: {span: 6},
|
|||
|
},
|
|||
|
{
|
|||
|
label: "授课时间",
|
|||
|
field: 'sksj',
|
|||
|
component: 'DatePicker',
|
|||
|
colProps: {span: 6},
|
|||
|
},
|
|||
|
{
|
|||
|
label: "上课地点",
|
|||
|
field: 'skdd',
|
|||
|
component: 'Input',
|
|||
|
colProps: {span: 6},
|
|||
|
},
|
|||
|
{
|
|||
|
label: "评价时间",
|
|||
|
field: 'pjsj',
|
|||
|
component: 'DatePicker',
|
|||
|
componentProps: {
|
|||
|
showTime: true,
|
|||
|
},
|
|||
|
colProps: {span: 6},
|
|||
|
},
|
|||
|
];
|
|||
|
|
|||
|
//表单数据
|
|||
|
export const formSchema: FormSchema[] = [
|
|||
|
{
|
|||
|
label: '课程编号',
|
|||
|
field: 'kcbh',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '课程名称',
|
|||
|
field: 'kcmc',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '授课教师',
|
|||
|
field: 'skjs',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '授课时间',
|
|||
|
field: 'sksj',
|
|||
|
component: 'DatePicker',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '上课地点',
|
|||
|
field: 'skdd',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '使用教材',
|
|||
|
field: 'syjc',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '授课对象',
|
|||
|
field: 'skdx',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '授课教授',
|
|||
|
field: 'skjiaoshou',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '教学理解',
|
|||
|
field: 'jxlj',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '教学态度',
|
|||
|
field: 'jxtd',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '教学过程',
|
|||
|
field: 'jxgc',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '教学效果',
|
|||
|
field: 'jxxg',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '教学特殊',
|
|||
|
field: 'jxts',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '总分',
|
|||
|
field: 'zf',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '优点或建议',
|
|||
|
field: 'ydhjy',
|
|||
|
component: 'Input',
|
|||
|
},
|
|||
|
{
|
|||
|
label: '评价时间',
|
|||
|
field: 'pjsj',
|
|||
|
component: 'DatePicker',
|
|||
|
componentProps: {
|
|||
|
showTime: true,
|
|||
|
valueFormat: 'YYYY-MM-DD HH:mm:ss'
|
|||
|
},
|
|||
|
},
|
|||
|
// TODO 主键隐藏字段,目前写死为ID
|
|||
|
{
|
|||
|
label: '',
|
|||
|
field: 'id',
|
|||
|
component: 'Input',
|
|||
|
show: false,
|
|||
|
},
|
|||
|
];
|