feat: 客户管理国际化翻译
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user