fix(系统设置): 系统设置基础信息保存交互问题
--bug=1047262 --user=宋昌昌 【系统设置】文件大小限制格式错误-点击保存按钮-保存失败-保存按钮隐藏了 https://www.tapd.cn/55049933/s/1587470
This commit is contained in:
parent
e7683a5d36
commit
d2abe5e8b7
|
@ -48,7 +48,7 @@ public class MsFileLimitAspect {
|
|||
if (arg instanceof MultipartFile file) {
|
||||
// 判断文件大小是否超过限制
|
||||
if (file.getSize() > fileMaxSize * 1024 * 1024) {
|
||||
MSException.throwException(Translator.get("file_upload.size_limit"));
|
||||
MSException.throwException(Translator.get("file_upload.size_limit") + fileMaxSize + "MB!");
|
||||
}
|
||||
}
|
||||
// 多个文件
|
||||
|
@ -61,7 +61,7 @@ public class MsFileLimitAspect {
|
|||
if (f instanceof MultipartFile file) {
|
||||
// 判断文件大小是否超过限制
|
||||
if (file.getSize() > fileMaxSize * 1024 * 1024) {
|
||||
MSException.throwException(Translator.get("file_upload.size_limit"));
|
||||
MSException.throwException(Translator.get("file_upload.size_limit") + fileMaxSize + "MB!");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -411,4 +411,4 @@ current_version_already_exists=Current version already exists
|
|||
Prepare=Prepare
|
||||
Underway=Underway
|
||||
Completed=Completed
|
||||
file_upload.size_limit=The file size exceeds the system limit
|
||||
file_upload.size_limit=Upload file size exceeds system limit
|
|
@ -409,4 +409,4 @@ Underway=进行中
|
|||
Completed=已完成
|
||||
can_not_move_to_repository_node=不能移动到存储库节点
|
||||
can_not_move_to_repository_file=不能移动存储库中的文件
|
||||
file_upload.size_limit=文件大小超过系统限制
|
||||
file_upload.size_limit=上传文件大小超过系统限制
|
|
@ -408,4 +408,4 @@ Underway=進行中
|
|||
Completed=已完成
|
||||
can_not_move_to_repository_node=不能移動到存儲庫節點
|
||||
can_not_move_to_repository_file=不能移動存儲庫中的文件
|
||||
file_upload.size_limit=文件大小超過系統限制
|
||||
file_upload.size_limit=上傳文件大小超過系統限制
|
|
@ -86,6 +86,7 @@ export default {
|
|||
],
|
||||
maxSize: [
|
||||
{
|
||||
required: true,
|
||||
validator: checkUploadSize,
|
||||
trigger: ['change', 'blur']
|
||||
}
|
||||
|
@ -127,6 +128,7 @@ export default {
|
|||
this.show = true;
|
||||
this.$refs[formInline].validate(valid => {
|
||||
if (!valid) {
|
||||
this.edit();
|
||||
return false;
|
||||
}
|
||||
let param = [
|
||||
|
|
Loading…
Reference in New Issue