2023-10-18 08:15:48 +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-10-21 00:37:26 +08:00
|
|
|
|
{
|
|
|
|
|
title: '操作人',
|
|
|
|
|
align:"center",
|
|
|
|
|
dataIndex: 'createBy'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '时间',
|
|
|
|
|
align:"center",
|
|
|
|
|
dataIndex: 'createTime'
|
|
|
|
|
},
|
2023-10-18 08:15:48 +08:00
|
|
|
|
{
|
2023-10-19 22:50:01 +08:00
|
|
|
|
title: '日志类型',
|
2023-10-18 08:15:48 +08:00
|
|
|
|
align:"center",
|
2023-10-19 22:50:01 +08:00
|
|
|
|
dataIndex: 'logType',
|
|
|
|
|
customRender: ({ text }) => {
|
|
|
|
|
let map = ['','自动执行', '手动操作']
|
|
|
|
|
return map[text]
|
|
|
|
|
},
|
2023-10-18 08:15:48 +08:00
|
|
|
|
},
|
2023-10-19 22:50:01 +08:00
|
|
|
|
// {
|
|
|
|
|
// title: '教学楼编号',
|
|
|
|
|
// align:"center",
|
|
|
|
|
// dataIndex: 'jxlId'
|
|
|
|
|
// },
|
2023-10-18 08:15:48 +08:00
|
|
|
|
{
|
|
|
|
|
title: '教学楼名称',
|
|
|
|
|
align:"center",
|
|
|
|
|
dataIndex: 'jxlName'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '教室编号',
|
|
|
|
|
align:"center",
|
|
|
|
|
dataIndex: 'jsbh'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '教室名称',
|
|
|
|
|
align:"center",
|
|
|
|
|
dataIndex: 'jsmc'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '课堂ID',
|
|
|
|
|
align:"center",
|
|
|
|
|
dataIndex: 'ketangbiaoId'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '课堂名称',
|
|
|
|
|
align:"center",
|
|
|
|
|
dataIndex: 'ketangbiaoName'
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
//查询数据
|
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
2023-10-19 22:50:01 +08:00
|
|
|
|
{
|
|
|
|
|
label: "日志类型",
|
2023-10-18 08:15:48 +08:00
|
|
|
|
field: 'logType',
|
2023-10-19 22:50:01 +08:00
|
|
|
|
component: 'Select',
|
2023-10-18 08:15:48 +08:00
|
|
|
|
colProps: {span: 6},
|
2023-10-19 22:50:01 +08:00
|
|
|
|
// colProps: {
|
|
|
|
|
// span: 8,
|
|
|
|
|
// },
|
|
|
|
|
componentProps: {
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
label: '播放成功',
|
|
|
|
|
value: 1,
|
|
|
|
|
key: 1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '播放失败',
|
|
|
|
|
value: 2,
|
|
|
|
|
key: 2,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-10-18 08:15:48 +08:00
|
|
|
|
label: "教学楼编号",
|
|
|
|
|
field: 'jxlId',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: {span: 6},
|
2023-10-19 22:50:01 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-10-18 08:15:48 +08:00
|
|
|
|
label: "教学楼名称",
|
|
|
|
|
field: 'jxlName',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: {span: 6},
|
2023-10-19 22:50:01 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-10-18 08:15:48 +08:00
|
|
|
|
label: "教室编号",
|
|
|
|
|
field: 'jsbh',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: {span: 6},
|
2023-10-19 22:50:01 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-10-18 08:15:48 +08:00
|
|
|
|
label: "教室名称",
|
|
|
|
|
field: 'jsmc',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: {span: 6},
|
2023-10-19 22:50:01 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-10-18 08:15:48 +08:00
|
|
|
|
label: "课堂ID",
|
|
|
|
|
field: 'ketangbiaoId',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: {span: 6},
|
2023-10-19 22:50:01 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-10-18 08:15:48 +08:00
|
|
|
|
label: "课堂名称",
|
|
|
|
|
field: 'ketangbiaoName',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: {span: 6},
|
2023-10-19 22:50:01 +08:00
|
|
|
|
},
|
2023-10-18 08:15:48 +08:00
|
|
|
|
];
|
|
|
|
|
//表单数据
|
|
|
|
|
export const formSchema: FormSchema[] = [
|
|
|
|
|
{
|
2023-10-19 22:50:01 +08:00
|
|
|
|
label: '日志类型',
|
2023-10-18 08:15:48 +08:00
|
|
|
|
field: 'logType',
|
2023-10-19 22:50:01 +08:00
|
|
|
|
// component: 'InputNumber',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
// colProps: {span: 6},
|
|
|
|
|
// colProps: {
|
|
|
|
|
// span: 8,
|
|
|
|
|
// },
|
|
|
|
|
componentProps: {
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
label: '播放成功',
|
|
|
|
|
value: 1,
|
|
|
|
|
key: 1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '播放失败',
|
|
|
|
|
value: 2,
|
|
|
|
|
key: 2,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2023-10-18 08:15:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '教学楼编号',
|
|
|
|
|
field: 'jxlId',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '教学楼名称',
|
|
|
|
|
field: 'jxlName',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '教室编号',
|
|
|
|
|
field: 'jsbh',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '教室名称',
|
|
|
|
|
field: 'jsmc',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '课堂ID',
|
|
|
|
|
field: 'ketangbiaoId',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '课堂名称',
|
|
|
|
|
field: 'ketangbiaoName',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
},
|
2023-10-19 22:50:01 +08:00
|
|
|
|
// TODO 主键隐藏字段,目前写死为ID
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'id',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false
|
|
|
|
|
},
|
2023-10-18 08:15:48 +08:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 流程表单调用这个方法获取formSchema
|
|
|
|
|
* @param param
|
|
|
|
|
*/
|
|
|
|
|
export function getBpmFormSchema(_formData): FormSchema[]{
|
|
|
|
|
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
|
|
|
|
|
return formSchema;
|
|
|
|
|
}
|