style: 网元相关页面多语言翻译
This commit is contained in:
@@ -362,7 +362,7 @@ onMounted(() => {});
|
|||||||
<template #icon>
|
<template #icon>
|
||||||
<UploadOutlined />
|
<UploadOutlined />
|
||||||
</template>
|
</template>
|
||||||
Upload
|
{{ t('views.ne.neLicense.upload') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-upload>
|
</a-upload>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
@@ -111,14 +111,15 @@ function fnModalCancel() {
|
|||||||
/**表单上传前检查或转换压缩 */
|
/**表单上传前检查或转换压缩 */
|
||||||
function fnBeforeUploadFile(file: FileType) {
|
function fnBeforeUploadFile(file: FileType) {
|
||||||
if (modalState.confirmLoading) return false;
|
if (modalState.confirmLoading) return false;
|
||||||
const fileName = file.name;
|
if (!file.name.endsWith('.ini')) {
|
||||||
if (!fileName.endsWith('.ini')) {
|
const msg = `${t('components.UploadModal.onlyAllow')} .ini`;
|
||||||
message.error('只支持上传文件格式 .ini', 3);
|
message.error(msg, 3);
|
||||||
return Upload.LIST_IGNORE;
|
return Upload.LIST_IGNORE;
|
||||||
}
|
}
|
||||||
const isLt2M = file.size / 1024 / 1024 < 2;
|
const isLt3M = file.size / 1024 / 1024 < 3;
|
||||||
if (!isLt2M) {
|
if (!isLt3M) {
|
||||||
message.error('文件必须小于2MB', 3);
|
const msg = `${t('components.UploadModal.allowFilter')} 3MB`;
|
||||||
|
message.error(msg, 3);
|
||||||
return Upload.LIST_IGNORE;
|
return Upload.LIST_IGNORE;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -254,9 +254,7 @@ function fnRecordState(row: Record<string, any>) {
|
|||||||
if (modalState.confirmLoading) return;
|
if (modalState.confirmLoading) return;
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: t('views.ne.neLicense.reloadTip', {
|
content: t('views.ne.neLicense.reloadTip'),
|
||||||
txt: `${row.neType} ${row.neId}`,
|
|
||||||
}),
|
|
||||||
onOk() {
|
onOk() {
|
||||||
modalState.confirmLoading = true;
|
modalState.confirmLoading = true;
|
||||||
const hide = message.loading(t('common.loading'), 0);
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user