Files
xj-admin/src/views/system/message/manage/manage.data.ts
T
weixin 1da2e17514 fix(消息管理): 消息列表和搜索表单"接收人"字段更名为"发送人"
- 消息管理模块:列表列标题 esReceiver 从"接收人"改为"发送人",搜索表单 esReceiver 字段标签同步修正
2026-07-16 13:39:21 +08:00

140 lines
3.0 KiB
TypeScript

import { BasicColumn, FormSchema } from '/@/components/Table';
export const columns: BasicColumn[] = [
{
title: '消息标题',
dataIndex: 'esTitle',
width: 140,
},
{
title: '发送内容',
dataIndex: 'esContent',
width: 200,
// slots: { customRender: 'esContent' },
},
{
title: '发送人',
dataIndex: 'esReceiver',
width: 140,
},
{
title: '发送次数',
dataIndex: 'esSendNum',
width: 120,
},
{
title: '发送状态',
dataIndex: 'esSendStatus_dictText',
width: 120,
},
{
title: '发送时间',
dataIndex: 'esSendTime',
width: 140,
},
{
title: '发送方式',
dataIndex: 'esType_dictText',
width: 120,
},
];
export const searchFormSchema: FormSchema[] = [
{
label: '消息标题',
field: 'esTitle',
component: 'Input',
},
{
label: '发送人',
field: 'esReceiver',
component: 'Input',
},
{
label: '发送状态',
field: 'esSendStatus',
component: 'JDictSelectTag',
componentProps: {
dictCode: 'msgSendStatus',
},
},
{
label: '发送方式',
field: 'esType',
component: 'JDictSelectTag',
componentProps: {
dictCode: 'es_type',
},
},
];
export const formSchemas: FormSchema[] = [
{
label: 'ID',
field: 'id',
component: 'Input',
show: false,
},
{
label: '消息标题',
field: 'esTitle',
component: 'Input',
componentProps: { readOnly: true },
},
{
label: '发送内容',
field: 'esContent',
component: 'InputTextArea',
componentProps: { readOnly: true },
},
{
label: '发送参数',
field: 'esParam',
component: 'Input',
componentProps: { readOnly: true },
},
{
label: '发送人',
field: 'esReceiver',
component: 'Input',
componentProps: { readOnly: true },
},
{
label: '发送方式',
field: 'esType',
component: 'JDictSelectTag',
componentProps: { disabled: true, dictCode: 'es_type' },
},
{
label: '发送时间',
field: 'esSendTime',
component: 'Input',
componentProps: { readOnly: true },
},
{
label: '发送状态',
field: 'esSendStatus',
component: 'JDictSelectTag',
componentProps: { disabled: true, dictCode: 'msgSendStatus' },
},
{
label: '发送次数',
field: 'esSendNum',
component: 'Input',
componentProps: { readOnly: true },
},
{
label: '发送失败原因',
field: 'esResult',
component: 'Input',
componentProps: { readOnly: true },
},
{
label: '备注',
field: 'remark',
component: 'InputTextArea',
componentProps: { readOnly: true },
},
];