style: 参数配置管理多语言

This commit is contained in:
TsMask
2023-11-10 15:48:41 +08:00
parent 973534a6ab
commit e5481638f5
4 changed files with 160 additions and 61 deletions

View File

@@ -318,7 +318,7 @@ const modalStateFrom = Form.useForm(
*/
function fnModalVisibleByVive(userId: string | number) {
if (!userId) {
message.error(`用户记录存在错误`, 2);
message.error(t('views.system.user.viewInfoErr'), 2);
return;
}
if (modalState.confirmLoading) return;
@@ -349,7 +349,7 @@ function fnModalVisibleByVive(userId: string | number) {
modalState.title = t('views.system.user.userInfo');
modalState.visibleByView = true;
} else {
message.error('获取用户信息失败', 2);
message.error(t('views.system.user.tipRowErr'), 2);
}
});
}
@@ -389,7 +389,7 @@ function fnModalVisibleByEdit(userId?: string | number) {
t('common.addText') + t('views.system.user.userInfo');
modalState.visibleByEdit = true;
} else {
message.error('获取用户信息失败', 2);
message.error(t('views.system.user.tipRowErr'), 2);
}
});
} else {
@@ -420,7 +420,7 @@ function fnModalVisibleByEdit(userId?: string | number) {
t('common.editText') + t('views.system.user.userInfo');
modalState.visibleByEdit = true;
} else {
message.error(`获取用户信息失败`, 2);
message.error(t('views.system.user.tipRowErr'), 2);
}
});
}
@@ -659,7 +659,7 @@ type ModalUploadImportStateType = {
/**对话框表格信息导入对象信息状态 */
let uploadImportState: ModalUploadImportStateType = reactive({
visible: false,
title: '用户导入',
title: t('views.system.user.importTitle'),
loading: false,
updateSupport: false,
msg: '',
@@ -707,7 +707,7 @@ function fnModalUploadImportExportTemplate() {
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
message.success({
content: `成功读取并下载导入模板`,
content: t('views.system.user.importOk'),
duration: 2,
});
saveAs(res.data, `user_template_${Date.now()}.xlsx`);
@@ -1060,9 +1060,9 @@ onMounted(() => {
</a-button>
</a-tooltip>
<a-tooltip>
<template #title>{{
t('views.system.user.resetPwd')
}}</template>
<template #title>
{{ t('views.system.user.resetPwd') }}
</template>
<a-button
type="link"
@click.prevent="fnRecordResetPwd(record)"