From dc0eac918d796d2e03731460312c1035b1c9bab1 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 7 Jun 2025 20:42:58 +0800 Subject: [PATCH] =?UTF-8?q?review=EF=BC=9A=E3=80=90ANTD=E3=80=91=E3=80=90B?= =?UTF-8?q?PM=20=E6=94=AF=E4=BB=98=E3=80=91xingyu=20pulls=20#118=E3=80=81#?= =?UTF-8?q?116?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/adapter/vxe-table.ts | 1 + apps/web-antd/src/utils/formatNumber.ts | 1 + apps/web-antd/src/views/pay/notify/index.vue | 2 ++ apps/web-ele/src/adapter/vxe-table.ts | 1 + apps/web-naive/src/adapter/vxe-table.ts | 1 + 5 files changed, 6 insertions(+) diff --git a/apps/web-antd/src/adapter/vxe-table.ts b/apps/web-antd/src/adapter/vxe-table.ts index cff57ed94..c0b52073a 100644 --- a/apps/web-antd/src/adapter/vxe-table.ts +++ b/apps/web-antd/src/adapter/vxe-table.ts @@ -326,6 +326,7 @@ setupVbenVxeTable({ }, }); + // TODO @xingyu:这个要不叫 formatAmount2 这种?虽然不直观,但是容易看出来是金额; vxeUI.formats.add('formatFraction', { tableCellFormatMethod({ cellValue }) { if (cellValue === null || cellValue === undefined) { diff --git a/apps/web-antd/src/utils/formatNumber.ts b/apps/web-antd/src/utils/formatNumber.ts index f500183d0..ad3b211c7 100644 --- a/apps/web-antd/src/utils/formatNumber.ts +++ b/apps/web-antd/src/utils/formatNumber.ts @@ -1,3 +1,4 @@ +// TODO @xingyu:感觉 formatToFraction 可以整合起来;【优先级:低】 /** * 将一个整数转换为分数保留两位小数 * @param num diff --git a/apps/web-antd/src/views/pay/notify/index.vue b/apps/web-antd/src/views/pay/notify/index.vue index c640882e1..15ddb9282 100644 --- a/apps/web-antd/src/views/pay/notify/index.vue +++ b/apps/web-antd/src/views/pay/notify/index.vue @@ -2,6 +2,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table'; import { Page, useVbenModal } from '@vben/common-ui'; +import { $t } from '@vben/locales'; import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table'; import { getNotifyTaskPage } from '#/api/pay/notify'; @@ -59,6 +60,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ +