100 lines
2.3 KiB
Vue
Raw Normal View History

import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '会话类型',
align:"center",
dataIndex: 'type'
},
{
title: '群聊名称',
align:"center",
dataIndex: 'name'
},
{
title: '群聊头像',
align:"center",
dataIndex: 'avatar'
},
{
title: '关联id',
align:"center",
dataIndex: 'refId'
},
{
title: '是否全员禁言',
align:"center",
dataIndex: 'izAllMuted'
},
{
title: '是否显示教师标签',
align:"center",
dataIndex: 'showLabel'
},
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '会话类型',
field: 'type',
component: 'InputNumber',
},
{
label: '群聊名称',
field: 'name',
component: 'Input',
},
{
label: '群聊头像',
field: 'avatar',
component: 'Input',
},
{
label: '关联id',
field: 'refId',
component: 'Input',
},
{
label: '是否全员禁言',
field: 'izAllMuted',
component: 'InputNumber',
},
{
label: '是否显示教师标签',
field: 'showLabel',
component: 'InputNumber',
},
// TODO 主键隐藏字段目前写死为ID
{
label: '',
field: 'id',
component: 'Input',
show: false
},
];
// 高级查询数据
export const superQuerySchema = {
type: {title: '会话类型',order: 0,view: 'number', type: 'number',},
name: {title: '群聊名称',order: 1,view: 'text', type: 'string',},
avatar: {title: '群聊头像',order: 2,view: 'text', type: 'string',},
refId: {title: '关联id',order: 3,view: 'text', type: 'string',},
izAllMuted: {title: '是否全员禁言',order: 4,view: 'number', type: 'number',},
showLabel: {title: '是否显示教师标签',order: 5,view: 'number', type: 'number',},
};
/**
* 流程表单调用这个方法获取formSchema
* @param param
*/
export function getBpmFormSchema(_formData): FormSchema[]{
// 默认和原始表单保持一致 如果流程中配置了权限数据这里需要单独处理formSchema
return formSchema;
}