From 380c495f40562ee0bcd3f4cf8948e6f3a0944f41 Mon Sep 17 00:00:00 2001 From: lianlonggang Date: Thu, 16 Jul 2026 16:01:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B6=88=E6=81=AF=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=91=98=E5=B7=A5=E7=94=B5=E8=AF=9D=E5=88=97?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E4=B8=8E=E6=90=9C=E7=B4=A2=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 列表新增「员工电话」列,从esContent提取3~4~4格式手机号显示纯数字 - 搜索表单新增「员工电话」项,参数传后台由后端还原波浪线后模糊查询 Co-Authored-By: Claude --- .../system/message/manage/manage.data.ts | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/views/system/message/manage/manage.data.ts b/src/views/system/message/manage/manage.data.ts index db634c9..f0c0418 100644 --- a/src/views/system/message/manage/manage.data.ts +++ b/src/views/system/message/manage/manage.data.ts @@ -13,7 +13,18 @@ export const columns: BasicColumn[] = [ // slots: { customRender: 'esContent' }, }, { - title: '发送人', + title: '员工电话', + dataIndex: 'employeePhone', + width: 140, + // 从发送内容中提取 3位~4位~4位 格式的手机号(如 185~9920~5354),取第一个匹配项并去掉分隔符显示纯数字,匹配不到则显示空 + // 分隔符兼容半角~、全角~、连字符- + customRender: ({ record }) => { + const match = record?.esContent?.match(/\d{3}[~~\-]\d{4}[~~\-]\d{4}/); + return match ? match[0].replace(/[~~\-]/g, '') : ''; + }, + }, + { + title: '接收人', dataIndex: 'esReceiver', width: 140, }, @@ -46,10 +57,16 @@ export const searchFormSchema: FormSchema[] = [ component: 'Input', }, { - label: '发送人', + label: '接收人', field: 'esReceiver', component: 'Input', }, + { + // 员工电话: 传到后台后由后台拼回波浪线再模糊查询 esContent + label: '员工电话', + field: 'employeePhone', + component: 'Input', + }, { label: '发送状态', field: 'esSendStatus', @@ -95,7 +112,7 @@ export const formSchemas: FormSchema[] = [ }, { - label: '发送人', + label: '接收人', field: 'esReceiver', component: 'Input', componentProps: { readOnly: true },