dbsd_kczx/src/views/kc/jiaoshi/KcZhihuijiaoshiAccessLog.da...

193 lines
3.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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: 'createBy'
},
{
title: '时间',
align:"center",
dataIndex: 'createTime'
},
{
title: '日志类型',
align:"center",
dataIndex: 'logType',
customRender: ({ text }) => {
let map = ['','自动执行', '手动操作']
return map[text]
},
},
// {
// 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: "日志类型",
field: 'logType',
component: 'Select',
colProps: {span: 6},
// colProps: {
// span: 8,
// },
componentProps: {
options: [
{
label: '播放成功',
value: 1,
key: 1,
},
{
label: '播放失败',
value: 2,
key: 2,
},
],
},
},
{
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: '日志类型',
field: 'logType',
// component: 'InputNumber',
component: 'Select',
// colProps: {span: 6},
// colProps: {
// span: 8,
// },
componentProps: {
options: [
{
label: '播放成功',
value: 1,
key: 1,
},
{
label: '播放失败',
value: 2,
key: 2,
},
],
},
},
{
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;
}