feat: 客户管理国际化翻译

This commit is contained in:
caiyuchao
2025-05-24 11:45:25 +08:00
parent ee36fe339d
commit 7206389717
6 changed files with 67 additions and 59 deletions

View File

@@ -63,7 +63,10 @@ async function onDelete(row: CustomerApi.Customer) {
/** 导出表格 */
async function onExport() {
const data = await exportCustomer(await gridApi.formApi.getValues());
downloadFileFromBlobPart({ fileName: '客户.xls', source: data });
downloadFileFromBlobPart({
fileName: `${$t('customer.customer')}.xls`,
source: data,
});
}
/** 表格操作按钮的回调函数 */
@@ -120,7 +123,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
<Page auto-content-height>
<FormModal @success="onRefresh" />
<Grid table-title="客户列表">
<Grid :table-title="$t('customer.customerList')">
<template #toolbar-tools>
<Button
:icon="h(Plus)"
@@ -128,7 +131,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
@click="onCreate"
v-access:code="['license:customer:create']"
>
{{ $t('ui.actionTitle.create', ['客户']) }}
{{ $t('ui.actionTitle.create', [$t('customer.customer')]) }}
</Button>
<Button
:icon="h(Download)"