From 75c5669a972b0c0188d0a19fc8449da96d7f937a Mon Sep 17 00:00:00 2001 From: gjd Date: Thu, 5 Jun 2025 14:56:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor(web-antd):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E9=80=9A=E7=9F=A5=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E5=9B=9E=E8=B0=83=E6=97=A5=E5=BF=97=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新 detailColumns 数组,使用 title 和 dataIndex 替代 label 和 prop - 为每个列设置宽度和 ellipsis 属性 - 在 detail.vue 中添加对 formData 的判断,提高组件的健壮性 --- apps/web-antd/src/views/pay/notify/data.ts | 30 ++++++++++++------- .../src/views/pay/notify/modules/detail.vue | 6 +++- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/apps/web-antd/src/views/pay/notify/data.ts b/apps/web-antd/src/views/pay/notify/data.ts index 6b7b5cc57..4d28b5217 100644 --- a/apps/web-antd/src/views/pay/notify/data.ts +++ b/apps/web-antd/src/views/pay/notify/data.ts @@ -131,28 +131,38 @@ export function useGridColumns(): VxeTableGridOptions['columns'] { /** 详情列表的字段 */ export const detailColumns = [ { - label: '日志编号', - prop: 'id', + title: '日志编号', + dataIndex: 'id', key: 'id', + width: 120, + ellipsis: false, }, { - label: '通知状态', - prop: 'status', + title: '通知状态', + dataIndex: 'status', key: 'status', + width: 120, + ellipsis: false, }, { - label: '通知次数', - prop: 'notifyTimes', + title: '通知次数', + dataIndex: 'notifyTimes', key: 'notifyTimes', + width: 120, + ellipsis: false, }, { - label: '通知时间', - prop: 'lastExecuteTime', + title: '通知时间', + dataIndex: 'lastExecuteTime', key: 'lastExecuteTime', + width: 120, + ellipsis: false, }, { - label: '响应结果', - prop: 'response', + title: '响应结果', + dataIndex: 'response', key: 'response', + width: 120, + ellipsis: false, }, ]; diff --git a/apps/web-antd/src/views/pay/notify/modules/detail.vue b/apps/web-antd/src/views/pay/notify/modules/detail.vue index 66f6efb6a..85f1a2859 100644 --- a/apps/web-antd/src/views/pay/notify/modules/detail.vue +++ b/apps/web-antd/src/views/pay/notify/modules/detail.vue @@ -93,7 +93,11 @@ const [Modal, modalApi] = useVbenModal({ - +