dbsd_kczx/src/views/kc/kcKechengExclude/KcKechengExclude.data.ts

185 lines
3.2 KiB
TypeScript
Raw Normal View History

2024-03-26 18:32:17 +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[] = [
{
title: '课程名称',
align: "center",
dataIndex: 'kcmc'
},
{
title: '教工号',
align: "center",
dataIndex: 'jgh'
},
{
title: '授课教师',
align: "center",
dataIndex: 'skjs'
},
{
title: '开课单位',
align: "center",
dataIndex: 'kkdw'
},
{
title: '课程性质',
align: "center",
dataIndex: 'kcxz'
},
{
title: '上课地点',
align: "center",
dataIndex: 'skdd'
},
{
title: '授课时间',
align: "center",
dataIndex: 'sksj'
},
{
title: '授课周次',
align: "center",
dataIndex: 'jkzc'
},
{
title: '学年学期【orcl】',
align: "center",
dataIndex: 'xnxq'
},
{
title: '课程大类',
align: "center",
dataIndex: 'kcdl'
},
{
title: '是否前台展示',
align: "center",
dataIndex: 'sfqtzs'
},
{
title: '学年学期【系统自用】',
align: "center",
dataIndex: 'xqxn'
},
];
//查询数据
export const searchFormSchema: FormSchema[] = [
{
label: "课程名称",
field: 'kcmc',
component: 'Input',
colProps: {span: 6},
},
{
label: "教工号",
field: 'jgh',
component: 'Input',
colProps: {span: 6},
},
{
label: "授课教师",
field: 'skjs',
component: 'Input',
colProps: {span: 6},
},
{
label: "开课单位",
field: 'kkdw',
component: 'Input',
colProps: {span: 6},
},
{
label: "授课时间",
field: 'sksj',
component: 'Input',
colProps: {span: 6},
},
{
label: "是否前台展示",
field: 'sfqtzs',
component: 'Input',
colProps: {span: 6},
},
{
label: "学年学期【系统自用】",
field: 'xqxn',
component: 'Input',
colProps: {span: 6},
},
];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '课程名称',
field: 'kcmc',
component: 'Input',
},
{
label: '教工号',
field: 'jgh',
component: 'Input',
},
{
label: '授课教师',
field: 'skjs',
component: 'Input',
},
{
label: '开课单位',
field: 'kkdw',
component: 'Input',
},
{
label: '课程性质',
field: 'kcxz',
component: 'Input',
},
{
label: '上课地点',
field: 'skdd',
component: 'Input',
},
{
label: '授课时间',
field: 'sksj',
component: 'Input',
},
{
label: '授课周次',
field: 'jkzc',
component: 'Input',
},
{
label: '学年学期【orcl】',
field: 'xnxq',
component: 'Input',
},
{
label: '课程大类',
field: 'kcdl',
component: 'Input',
},
{
label: '是否前台展示',
field: 'sfqtzs',
component: 'Input',
},
{
label: '学年学期【系统自用】',
field: 'xqxn',
component: 'Input',
},
// TODO 主键隐藏字段目前写死为ID
{
label: '',
field: 'id',
component: 'Input',
show: false,
},
];