From dc30569420e780704d9fe4b16db42aade1dbdb07 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Thu, 22 Aug 2024 10:10:33 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E5=89=8D=E7=AB=AF=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BC=95=E5=85=A5=20file-input-language=20=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E7=9A=84js=E6=96=87=E4=BB=B6=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=9B=BD=E7=A8=8E=E5=8F=91=E7=A5=A8=E7=9A=84=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=8F=AF=E4=BB=A5=E6=94=AF?= =?UTF-8?q?=E6=8C=81pdf=E7=9A=84=E9=A2=84=E8=A7=88=E5=92=8C=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E3=80=82office=E7=B1=BB=E5=9E=8B=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E7=9A=84=E4=B8=8B=E8=BD=BD=EF=BC=8C=E5=9B=BE=E7=89=87=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../libs/bootstrap-fileinput/locales/zh.js | 128 ++++++++++++++++++ .../taxInvoice/uploadInvoiceRmb.html | 31 +++-- .../taxInvoice/uploadInvoiceRmbDetail.html | 48 ++++--- .../taxInvoice/uploadInvoiceUsd.html | 11 +- .../taxInvoice/uploadInvoiceUsdDetail.html | 33 +++-- .../src/main/resources/templates/include.html | 4 +- 6 files changed, 207 insertions(+), 48 deletions(-) create mode 100644 ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/locales/zh.js diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/locales/zh.js b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/locales/zh.js new file mode 100644 index 00000000..c3d4377e --- /dev/null +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/locales/zh.js @@ -0,0 +1,128 @@ +/*! + * FileInput Chinese Translations + * + * This file must be loaded after 'fileinput.js'. Patterns in braces '{}', or + * any HTML markup tags in the messages must not be converted or translated. + * + * @see http://github.com/kartik-v/bootstrap-fileinput + * @author kangqf + * + * NOTE: this file must be saved in UTF-8 encoding. + */ +(function (factory) { + 'use strict'; + if (typeof define === 'function' && define.amd) { + define(['jquery'], factory); + } else if (typeof module === 'object' && typeof module.exports === 'object') { + factory(require('jquery')); + } else { + factory(window.jQuery); + } +}(function ($) { + "use strict"; + + $.fn.fileinputLocales['zh'] = { + sizeUnits: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], + bitRateUnits: ['B/s', 'KB/s', 'MB/s', 'GB/s', 'TB/s', 'PB/s', 'EB/s', 'ZB/s', 'YB/s'], + fileSingle: '文件', + filePlural: '个文件', + browseLabel: '选择 …', + removeLabel: '移除', + removeTitle: '清除选中文件', + cancelLabel: '取消', + cancelTitle: '取消进行中的上传', + pauseLabel: '暂停', + pauseTitle: '暂停上传', + uploadLabel: '上传', + uploadTitle: '上传选中文件', + msgNo: '没有', + msgNoFilesSelected: '未选择文件', + msgPaused: '已暂停', + msgCancelled: '取消', + msgPlaceholder: '选择 {files} ...', + msgZoomModalHeading: '详细预览', + msgFileRequired: '必须选择一个文件上传.', + msgSizeTooSmall: '文件 "{name}" ({size}) 必须大于限定大小 {minSize}.', + msgSizeTooLarge: '文件 "{name}" ({size}) 超过了允许大小 {maxSize}.', + msgMultipleSizeTooLarge: '文件 "{name}" ({size}) 超过了允许大小 {maxSize}.', + msgFilesTooLess: '你必须选择最少 {n} {files} 来上传. ', + msgFilesTooMany: '选择的上传文件个数 ({n}) 超出最大文件的限制个数 {m}.', + msgTotalFilesTooMany: '你最多可以上传 {m} 个文件 (当前有{n} 个文件).', + msgFileNotFound: '文件 "{name}" 未找到!', + msgFileSecured: '安全限制,为了防止读取文件 "{name}".', + msgFileNotReadable: '文件 "{name}" 不可读.', + msgFilePreviewAborted: '取消 "{name}" 的预览.', + msgFilePreviewError: '读取 "{name}" 时出现了一个错误.', + msgInvalidFileName: '文件名 "{name}" 包含非法字符.', + msgInvalidFileType: '不正确的类型 "{name}". 只支持 "{types}" 类型的文件.', + msgInvalidFileExtension: '不正确的文件扩展名 "{name}". 只支持 "{extensions}" 的文件扩展名.', + msgFileTypes: { + 'image': 'image', + 'html': 'HTML', + 'text': 'text', + 'video': 'video', + 'audio': 'audio', + 'flash': 'flash', + 'pdf': 'PDF', + 'object': 'object' + }, + msgUploadAborted: '该文件上传被中止', + msgUploadThreshold: '处理中 …', + msgUploadBegin: '正在初始化 …', + msgUploadEnd: '完成', + msgUploadResume: '继续上传 …', + msgUploadEmpty: '无效的文件上传.', + msgUploadError: '上传出错', + msgDeleteError: '删除出错', + msgProgressError: '上传出错', + msgValidationError: '验证错误', + msgLoading: '加载第 {index} 文件 共 {files} …', + msgProgress: '加载第 {index} 文件 共 {files} - {name} - {percent}% 完成.', + msgSelected: '{n} {files} 选中', + msgProcessing: '处理中 ...', + msgFoldersNotAllowed: '只支持拖拽文件! 跳过 {n} 拖拽的文件夹.', + msgImageWidthSmall: '图像文件的"{name}"的宽度必须是至少{size}像素.', + msgImageHeightSmall: '图像文件的"{name}"的高度必须至少为{size}像素.', + msgImageWidthLarge: '图像文件"{name}"的宽度不能超过{size}像素.', + msgImageHeightLarge: '图像文件"{name}"的高度不能超过{size}像素.', + msgImageResizeError: '无法获取的图像尺寸调整。', + msgImageResizeException: '调整图像大小时发生错误。
{errors}
', + msgAjaxError: '{operation} 发生错误. 请重试!', + msgAjaxProgressError: '{operation} 失败', + msgDuplicateFile: '文件 "{name}",大小 "{size}" 已经被选中.忽略相同的文件.', + msgResumableUploadRetriesExceeded: '文件 {file} 上传失败超过 {max} 次重试 ! 错误详情:
{error}
', + msgPendingTime: '{time} 剩余', + msgCalculatingTime: '计算剩余时间', + ajaxOperations: { + deleteThumb: '删除文件', + uploadThumb: '上传文件', + uploadBatch: '批量上传', + uploadExtra: '表单数据上传' + }, + dropZoneTitle: '拖拽文件到这里 …
支持多文件同时上传', + dropZoneClickTitle: '
(或点击{files}按钮选择文件)', + fileActionSettings: { + removeTitle: '删除文件', + uploadTitle: '上传文件', + downloadTitle: '下载文件', + uploadRetryTitle: '重试', + rotateTitle: '顺时针旋转90度', + zoomTitle: '查看详情', + dragTitle: '移动 / 重置', + indicatorNewTitle: '没有上传', + indicatorSuccessTitle: '上传', + indicatorErrorTitle: '上传错误', + indicatorPausedTitle: '上传已暂停', + indicatorLoadingTitle: '上传 …' + }, + previewZoomButtonTitles: { + prev: '预览上一个文件', + next: '预览下一个文件', + rotate: '顺时针旋转90度', + toggleheader: '缩放', + fullscreen: '全屏', + borderless: '无边界模式', + close: '关闭当前预览' + } + }; +})); diff --git a/ruoyi-admin/src/main/resources/templates/financial/taxInvoice/uploadInvoiceRmb.html b/ruoyi-admin/src/main/resources/templates/financial/taxInvoice/uploadInvoiceRmb.html index 350be939..f9bc43ab 100644 --- a/ruoyi-admin/src/main/resources/templates/financial/taxInvoice/uploadInvoiceRmb.html +++ b/ruoyi-admin/src/main/resources/templates/financial/taxInvoice/uploadInvoiceRmb.html @@ -264,16 +264,7 @@ - - - - - + - - - + - +
+ +