143 lines
2.8 KiB
TypeScript
143 lines
2.8 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: '日志类型(1播放成功,2播放失败)',
|
|||
|
align:"center",
|
|||
|
dataIndex: 'logType'
|
|||
|
},
|
|||
|
{
|
|||
|
title: '教学楼编号',
|
|||
|
align:"center",
|
|||
|
dataIndex: 'jxlId'
|
|||
|
},
|
|||
|
{
|
|||
|
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[] = [
|
|||
|
{
|
|||
|
label: "日志类型(1播放成功,2播放失败)",
|
|||
|
field: 'logType',
|
|||
|
component: 'Input',
|
|||
|
colProps: {span: 6},
|
|||
|
},
|
|||
|
{
|
|||
|
label: "教学楼编号",
|
|||
|
field: 'jxlId',
|
|||
|
component: 'Input',
|
|||
|
colProps: {span: 6},
|
|||
|
},
|
|||
|
{
|
|||
|
label: "教学楼名称",
|
|||
|
field: 'jxlName',
|
|||
|
component: 'Input',
|
|||
|
colProps: {span: 6},
|
|||
|
},
|
|||
|
{
|
|||
|
label: "教室编号",
|
|||
|
field: 'jsbh',
|
|||
|
component: 'Input',
|
|||
|
colProps: {span: 6},
|
|||
|
},
|
|||
|
{
|
|||
|
label: "教室名称",
|
|||
|
field: 'jsmc',
|
|||
|
component: 'Input',
|
|||
|
colProps: {span: 6},
|
|||
|
},
|
|||
|
{
|
|||
|
label: "课堂ID",
|
|||
|
field: 'ketangbiaoId',
|
|||
|
component: 'Input',
|
|||
|
colProps: {span: 6},
|
|||
|
},
|
|||
|
{
|
|||
|
label: "课堂名称",
|
|||
|
field: 'ketangbiaoName',
|
|||
|
component: 'Input',
|
|||
|
colProps: {span: 6},
|
|||
|
},
|
|||
|
];
|
|||
|
//表单数据
|
|||
|
export const formSchema: FormSchema[] = [
|
|||
|
{
|
|||
|
label: '日志类型(1播放成功,2播放失败)',
|
|||
|
field: 'logType',
|
|||
|
component: 'InputNumber',
|
|||
|
},
|
|||
|
{
|
|||
|
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',
|
|||
|
},
|
|||
|
// TODO 主键隐藏字段,目前写死为ID
|
|||
|
{
|
|||
|
label: '',
|
|||
|
field: 'id',
|
|||
|
component: 'Input',
|
|||
|
show: false
|
|||
|
},
|
|||
|
];
|
|||
|
|
|||
|
|
|||
|
|
|||
|
/**
|
|||
|
* 流程表单调用这个方法获取formSchema
|
|||
|
* @param param
|
|||
|
*/
|
|||
|
export function getBpmFormSchema(_formData): FormSchema[]{
|
|||
|
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
|
|||
|
return formSchema;
|
|||
|
}
|