You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.6 KiB
84 lines
1.6 KiB
import { BasicColumn } from '/@/components/Table'; |
|
import { FormSchema } from '/@/components/Table'; |
|
|
|
/** 表格列配置 */ |
|
export const columns: BasicColumn[] = [ |
|
{ |
|
title: '发送方用户id', |
|
dataIndex: 'fromUserId' |
|
}, |
|
{ |
|
title: '消息类型', |
|
dataIndex: 'type' |
|
}, |
|
{ |
|
title: '别名类型', |
|
dataIndex: 'aliasType' |
|
}, |
|
{ |
|
title: '别名', |
|
dataIndex: 'alias' |
|
}, |
|
{ |
|
title: '消息显示类型', |
|
dataIndex: 'displayType' |
|
}, |
|
{ |
|
title: '通知标题', |
|
dataIndex: 'title' |
|
}, |
|
{ |
|
title: '通知文字描述', |
|
dataIndex: 'text' |
|
}, |
|
{ |
|
title: '别名类型', |
|
dataIndex: 'aliasType' |
|
}, |
|
{ |
|
title: '别名类型', |
|
dataIndex: 'aliasType' |
|
}, |
|
{ |
|
title: '是否播放声音', |
|
dataIndex: 'playSound', |
|
customRender: ({record}) => { |
|
return ~~record?.playSound === 0 ? '是' : '否'; |
|
} |
|
}, |
|
{ |
|
title: '是否震动', |
|
dataIndex: 'playVibrate', |
|
customRender: ({record}) => { |
|
return ~~record?.playVibrate === 0 ? '是' : '否'; |
|
} |
|
}, |
|
{ |
|
title: '是否闪光', |
|
dataIndex: 'playLights', |
|
customRender: ({record}) => { |
|
return ~~record?.playLights === 0 ? '是' : '否'; |
|
} |
|
}, |
|
{ |
|
title: '自定义播放文件名称', |
|
dataIndex: 'customPlayFileName' |
|
}, |
|
{ |
|
title: '自定义活动点击跳转内容', |
|
dataIndex: 'custom' |
|
}, |
|
]; |
|
|
|
/** 搜索表单配置 */ |
|
export const searchFormSchema: FormSchema[] = [ |
|
{ |
|
field: 'fromUserId', |
|
label: '发送方用户id', |
|
component: 'Input', |
|
componentProps: { |
|
placeholder: '请输入发送方用户id', |
|
}, |
|
colProps: { span: 6 } |
|
} |
|
];
|
|
|