233 lines
3.7 KiB
TypeScript
233 lines
3.7 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: 'kcmc'
|
||
},
|
||
{
|
||
title: '开课院系',
|
||
align: "center",
|
||
dataIndex: 'kkdw'
|
||
},
|
||
{
|
||
title: '上课教师工号',
|
||
align: "center",
|
||
dataIndex: 'jgh'
|
||
},
|
||
{
|
||
title: '上课教师',
|
||
align: "center",
|
||
dataIndex: 'skjs'
|
||
},
|
||
{
|
||
title: '上课时间',
|
||
align: "center",
|
||
dataIndex: 'sksj'
|
||
},
|
||
{
|
||
title: '课程节次',
|
||
align: "center",
|
||
dataIndex: 'hh'
|
||
},
|
||
{
|
||
title: '上课地点',
|
||
align: "center",
|
||
dataIndex: 'skdd'
|
||
},
|
||
{
|
||
title: '听课教师工号',
|
||
align: "center",
|
||
dataIndex: 'tkjgh'
|
||
},
|
||
{
|
||
title: '听课教师',
|
||
align: "center",
|
||
dataIndex: 'tkjs'
|
||
},
|
||
{
|
||
title: '评课时间',
|
||
align: "center",
|
||
dataIndex: 'pksj'
|
||
},
|
||
{
|
||
title: '答案1',
|
||
align: "center",
|
||
dataIndex: 'ans1'
|
||
},
|
||
{
|
||
title: '答案2',
|
||
align: "center",
|
||
dataIndex: 'ans2'
|
||
},
|
||
{
|
||
title: '答案3',
|
||
align: "center",
|
||
dataIndex: 'ans3'
|
||
},
|
||
{
|
||
title: '答案4',
|
||
align: "center",
|
||
dataIndex: 'ans4'
|
||
},
|
||
{
|
||
title: '答案5',
|
||
align: "center",
|
||
dataIndex: 'ans5'
|
||
},
|
||
{
|
||
title: '答案6',
|
||
align: "center",
|
||
dataIndex: 'ans6'
|
||
},
|
||
{
|
||
title: '答案7',
|
||
align: "center",
|
||
dataIndex: 'ans7'
|
||
},
|
||
{
|
||
title: '答案8',
|
||
align: "center",
|
||
dataIndex: 'ans8'
|
||
},
|
||
{
|
||
title: '答案9',
|
||
align: "center",
|
||
dataIndex: 'ans9'
|
||
},
|
||
{
|
||
title: '答案10',
|
||
align: "center",
|
||
dataIndex: 'ans10'
|
||
},
|
||
{
|
||
title: '学年学期',
|
||
align: "center",
|
||
dataIndex: 'xnxq'
|
||
},
|
||
];
|
||
|
||
//查询数据
|
||
export const searchFormSchema: FormSchema[] = [
|
||
];
|
||
|
||
//表单数据
|
||
export const formSchema: FormSchema[] = [
|
||
{
|
||
label: '课程名称',
|
||
field: 'kcmc',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '开课院系',
|
||
field: 'kkdw',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '上课教师工号',
|
||
field: 'jgh',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '上课教师',
|
||
field: 'skjs',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '上课时间',
|
||
field: 'sksj',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '课程节次',
|
||
field: 'hh',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '上课地点',
|
||
field: 'skdd',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '听课教师工号',
|
||
field: 'tkjgh',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '听课教师',
|
||
field: 'tkjs',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '评课时间',
|
||
field: 'pksj',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '答案1',
|
||
field: 'ans1',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '答案2',
|
||
field: 'ans2',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '答案3',
|
||
field: 'ans3',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '答案4',
|
||
field: 'ans4',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '答案5',
|
||
field: 'ans5',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '答案6',
|
||
field: 'ans6',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '答案7',
|
||
field: 'ans7',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '答案8',
|
||
field: 'ans8',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '答案9',
|
||
field: 'ans9',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '答案10',
|
||
field: 'ans10',
|
||
component: 'InputTextArea',
|
||
},
|
||
{
|
||
label: '学年学期',
|
||
field: 'xnxq',
|
||
component: 'Input',
|
||
},
|
||
// TODO 主键隐藏字段,目前写死为ID
|
||
{
|
||
label: '',
|
||
field: 'id',
|
||
component: 'Input',
|
||
show: false,
|
||
},
|
||
];
|