refactor: 用例上传大小限制改为50M

This commit is contained in:
chenjianxing 2021-07-20 11:16:59 +08:00 committed by jianxing
parent 5ecb9c9bf2
commit 971ec58ac7
6 changed files with 12 additions and 12 deletions

View File

@ -202,7 +202,7 @@
this.$warning(this.$t('api_test.api_import.suffixFormatErr')); this.$warning(this.$t('api_test.api_import.suffixFormatErr'));
return false; return false;
} }
if (file.size / 1024 / 1024 > 20) { if (file.size / 1024 / 1024 > 50) {
this.$warning(this.$t('test_track.case.import.upload_limit_size')); this.$warning(this.$t('test_track.case.import.upload_limit_size'));
return false; return false;
} }

View File

@ -279,7 +279,7 @@
this.$warning(this.$t('api_test.api_import.suffixFormatErr')); this.$warning(this.$t('api_test.api_import.suffixFormatErr'));
return false; return false;
} }
if (file.size / 1024 / 1024 > 20) { if (file.size / 1024 / 1024 > 50) {
this.$warning(this.$t('test_track.case.import.upload_limit_size')); this.$warning(this.$t('test_track.case.import.upload_limit_size'));
return false; return false;
} }

View File

@ -217,7 +217,7 @@
return false; return false;
} }
if (file.size / 1024 / 1024 > 20) { if (file.size / 1024 / 1024 > 50) {
this.$warning(this.$t('test_track.case.import.upload_limit_size')); this.$warning(this.$t('test_track.case.import.upload_limit_size'));
return false; return false;
} }
@ -233,7 +233,7 @@
return false; return false;
} }
if (file.size / 1024 / 1024 > 20) { if (file.size / 1024 / 1024 > 50) {
this.$warning(this.$t('test_track.case.import.upload_limit_size')); this.$warning(this.$t('test_track.case.import.upload_limit_size'));
return false; return false;
} }

View File

@ -1119,7 +1119,7 @@ export default {
label: "Import", label: "Import",
title: "API test import", title: "API test import",
data_format: "Data format", data_format: "Data format",
file_size_limit: "The file size does not exceed 20 M", file_size_limit: "The file size does not exceed 50 M",
tip: "Instructions", tip: "Instructions",
export_tip: "Export Tip", export_tip: "Export Tip",
ms_tip: "Support for MeterSphere JSON format", ms_tip: "Support for MeterSphere JSON format",
@ -1417,7 +1417,7 @@ export default {
upload_xmind: "Only xmind files can be uploaded, and no more than 800", upload_xmind: "Only xmind files can be uploaded, and no more than 800",
upload_limit_count: "Only one file can be uploaded at a time", upload_limit_count: "Only one file can be uploaded at a time",
upload_limit_format: "Upload files can only be XLS, XLSX format!", upload_limit_format: "Upload files can only be XLS, XLSX format!",
upload_limit_size: "Upload file size cannot exceed 20MB!", upload_limit_size: "Upload file size cannot exceed 50MB!",
upload_limit_other_size: "Upload file size cannot exceed", upload_limit_other_size: "Upload file size cannot exceed",
success: "Import success", success: "Import success",
importing: "Importing...", importing: "Importing...",

View File

@ -1122,7 +1122,7 @@ export default {
label: "导入", label: "导入",
title: "接口测试导入", title: "接口测试导入",
data_format: "数据格式", data_format: "数据格式",
file_size_limit: "文件大小不超过 20 M", file_size_limit: "文件大小不超过 50 M",
tip: "说明", tip: "说明",
export_tip: "导出方法", export_tip: "导出方法",
ms_tip: "支持 MeterSphere json 格式", ms_tip: "支持 MeterSphere json 格式",
@ -1417,13 +1417,13 @@ export default {
case_import: "导入测试用例", case_import: "导入测试用例",
download_template: "下载模版", download_template: "下载模版",
click_upload: "点击上传", click_upload: "点击上传",
upload_limit: "只能上传xls/xlsx文件且不超过20M", upload_limit: "只能上传xls/xlsx文件且不超过50M",
upload_xmind: "支持文件类型:.xmind一次至多导入800 条用例", upload_xmind: "支持文件类型:.xmind一次至多导入800 条用例",
upload_xmind_format: "上传文件只能是 .xmind 格式", upload_xmind_format: "上传文件只能是 .xmind 格式",
upload_limit_other_size: "上传文件大小不能超过", upload_limit_other_size: "上传文件大小不能超过",
upload_limit_count: "一次只能上传一个文件", upload_limit_count: "一次只能上传一个文件",
upload_limit_format: "上传文件只能是 xls、xlsx格式!", upload_limit_format: "上传文件只能是 xls、xlsx格式!",
upload_limit_size: "上传文件大小不能超过 20MB!", upload_limit_size: "上传文件大小不能超过 50MB!",
success: "导入成功!", success: "导入成功!",
importing: "导入中...", importing: "导入中...",
excel_title: "表格文件", excel_title: "表格文件",

View File

@ -1122,7 +1122,7 @@ export default {
label: "導入", label: "導入",
title: "接口測試導入", title: "接口測試導入",
data_format: "數據格式", data_format: "數據格式",
file_size_limit: "文件大小不超過 20 M", file_size_limit: "文件大小不超過 50 M",
tip: "說明", tip: "說明",
export_tip: "導出方法", export_tip: "導出方法",
ms_tip: "支持 MeterSphere json 格式", ms_tip: "支持 MeterSphere json 格式",
@ -1417,13 +1417,13 @@ export default {
case_import: "導入測試用例", case_import: "導入測試用例",
download_template: "下載模版", download_template: "下載模版",
click_upload: "點擊上傳", click_upload: "點擊上傳",
upload_limit: "只能上傳xls/xlsx文件且不超過20M", upload_limit: "只能上傳xls/xlsx文件且不超過50M",
upload_xmind: "支持文件類型:.xmind一次至多導入800 條用例", upload_xmind: "支持文件類型:.xmind一次至多導入800 條用例",
upload_xmind_format: "上傳文件只能是 .xmind 格式", upload_xmind_format: "上傳文件只能是 .xmind 格式",
upload_limit_other_size: "上傳文件大小不能超過", upload_limit_other_size: "上傳文件大小不能超過",
upload_limit_count: "一次只能上傳一個文件", upload_limit_count: "一次只能上傳一個文件",
upload_limit_format: "上傳文件只能是 xls、xlsx格式!", upload_limit_format: "上傳文件只能是 xls、xlsx格式!",
upload_limit_size: "上傳文件大小不能超過 20MB!", upload_limit_size: "上傳文件大小不能超過 50MB!",
success: "導入成功!", success: "導入成功!",
importing: "導入中...", importing: "導入中...",
excel_title: "表格文件", excel_title: "表格文件",