2023-03-29 22:52:49 +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-04-01 22:06:31 +08:00
|
|
|
|
title: '课程名称',
|
2023-03-29 22:52:49 +08:00
|
|
|
|
align: "center",
|
2023-04-01 22:06:31 +08:00
|
|
|
|
dataIndex: 'kcmc'
|
2023-03-29 22:52:49 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-04-01 22:06:31 +08:00
|
|
|
|
title: '授课教师',
|
2023-03-29 22:52:49 +08:00
|
|
|
|
align: "center",
|
2023-04-01 22:06:31 +08:00
|
|
|
|
dataIndex: 'skjs'
|
2023-03-29 22:52:49 +08:00
|
|
|
|
},
|
2023-06-29 21:34:19 +08:00
|
|
|
|
{
|
|
|
|
|
title: '上课日期',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'skrq'
|
|
|
|
|
},
|
2023-03-29 22:52:49 +08:00
|
|
|
|
{
|
2023-04-01 22:06:31 +08:00
|
|
|
|
title: '上课时间',
|
2023-03-29 22:52:49 +08:00
|
|
|
|
align: "center",
|
2023-04-01 22:06:31 +08:00
|
|
|
|
dataIndex: 'sksj'
|
2023-03-29 22:52:49 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-04-01 22:06:31 +08:00
|
|
|
|
title: '节次',
|
2023-03-29 22:52:49 +08:00
|
|
|
|
align: "center",
|
2023-04-01 22:06:31 +08:00
|
|
|
|
dataIndex: 'hh_dictText'
|
2023-03-29 22:52:49 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-04-01 22:06:31 +08:00
|
|
|
|
title: '周几',
|
2023-03-29 22:52:49 +08:00
|
|
|
|
align: "center",
|
2023-04-01 22:06:31 +08:00
|
|
|
|
dataIndex: 'week_dictText'
|
2023-03-29 22:52:49 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2024-03-06 21:25:42 +08:00
|
|
|
|
title: '是否停课',
|
2023-03-29 22:52:49 +08:00
|
|
|
|
align: "center",
|
2024-03-06 21:25:42 +08:00
|
|
|
|
dataIndex: 'skxs_dictText'
|
2023-03-29 22:52:49 +08:00
|
|
|
|
},
|
2023-04-12 23:21:42 +08:00
|
|
|
|
// {
|
2024-03-06 21:25:42 +08:00
|
|
|
|
// title: '直播方式',
|
|
|
|
|
// align: "center",
|
|
|
|
|
// dataIndex: 'zbfs_dictText'
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// title: '会议号',
|
|
|
|
|
// align: "center",
|
|
|
|
|
// dataIndex: 'hyh'
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// title: '会议密码',
|
|
|
|
|
// align: "center",
|
|
|
|
|
// dataIndex: 'hymm'
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// title: '课程链接',
|
|
|
|
|
// align: "center",
|
|
|
|
|
// dataIndex: 'kclj',
|
|
|
|
|
// slots: { customRender: 'toUrl' },
|
|
|
|
|
// },
|
|
|
|
|
// {
|
2023-04-12 23:21:42 +08:00
|
|
|
|
// title: '开课周次',
|
|
|
|
|
// align: "center",
|
|
|
|
|
// dataIndex: 'kkzc_dictText'
|
|
|
|
|
// },
|
2023-03-29 22:52:49 +08:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
//查询数据
|
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
label: "节次",
|
|
|
|
|
field: 'hh',
|
|
|
|
|
component: 'JDictSelectTag',
|
|
|
|
|
componentProps:{
|
|
|
|
|
dictCode: "skjc"
|
|
|
|
|
},
|
|
|
|
|
colProps: {span: 6},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "周几",
|
|
|
|
|
field: 'week',
|
|
|
|
|
component: 'JDictSelectTag',
|
|
|
|
|
componentProps:{
|
|
|
|
|
dictCode: "week"
|
|
|
|
|
},
|
|
|
|
|
colProps: {span: 6},
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
//表单数据
|
|
|
|
|
export const formSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
label: '课程名称',
|
|
|
|
|
field: 'kcmc',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
dynamicRules: ({model,schema}) => {
|
|
|
|
|
return [
|
|
|
|
|
{ required: true, message: '请输入课程名称!'},
|
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '授课教师',
|
|
|
|
|
field: 'skjs',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
dynamicRules: ({model,schema}) => {
|
|
|
|
|
return [
|
|
|
|
|
{ required: true, message: '请输入授课教师!'},
|
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-04-01 22:06:31 +08:00
|
|
|
|
label: '上课时间',
|
|
|
|
|
field: 'sksj',
|
2023-03-29 22:52:49 +08:00
|
|
|
|
component: 'Input',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '节次',
|
|
|
|
|
field: 'hh',
|
|
|
|
|
component: 'JDictSelectTag',
|
|
|
|
|
componentProps:{
|
|
|
|
|
dictCode: "skjc"
|
|
|
|
|
},
|
|
|
|
|
dynamicRules: ({model,schema}) => {
|
|
|
|
|
return [
|
|
|
|
|
{ required: true, message: '请输入节次!'},
|
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '周几',
|
|
|
|
|
field: 'week',
|
|
|
|
|
component: 'JDictSelectTag',
|
|
|
|
|
componentProps:{
|
|
|
|
|
dictCode: "week"
|
|
|
|
|
},
|
|
|
|
|
dynamicRules: ({model,schema}) => {
|
|
|
|
|
return [
|
|
|
|
|
{ required: true, message: '请输入周几!'},
|
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '直播方式',
|
|
|
|
|
field: 'zbfs',
|
|
|
|
|
component: 'JDictSelectTag',
|
|
|
|
|
componentProps:{
|
|
|
|
|
dictCode: "skpt"
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '会议号',
|
|
|
|
|
field: 'hyh',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '会议密码',
|
|
|
|
|
field: 'hymm',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '课程链接',
|
|
|
|
|
field: 'kclj',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '开课周次',
|
|
|
|
|
field: 'kkzc',
|
|
|
|
|
component: 'JSelectMultiple',
|
|
|
|
|
componentProps:{
|
|
|
|
|
dictCode: "skzc"
|
|
|
|
|
},
|
|
|
|
|
dynamicRules: ({model,schema}) => {
|
|
|
|
|
return [
|
|
|
|
|
{ required: true, message: '请输入开课周次!'},
|
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// TODO 主键隐藏字段,目前写死为ID
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'id',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
];
|