fix(用例评审): 附件的文件大小限制前端提示语有误
--bug=1047315 --user=宋昌昌 【用例评审】评审的用例详情中,附件标签页显示的文件大小限制取值错误,测试计划中也存在相同问题 https://www.tapd.cn/55049933/s/1605442
This commit is contained in:
parent
6012983463
commit
fbb6ceb189
|
@ -86,7 +86,7 @@ export default {
|
|||
return false;
|
||||
}
|
||||
if (file.size / 1024 / 1024 > this.uploadSize) {
|
||||
this.$warning(this.$t('commons.upload_limit_size'));
|
||||
this.$warning(this.$t('system_user.upload_limit_size_warn'));
|
||||
return false;
|
||||
}
|
||||
this.isLoading = true;
|
||||
|
|
|
@ -5,7 +5,8 @@ import mf from "metersphere-frontend/src/i18n/lang/en-US"
|
|||
const message = {
|
||||
user: {
|
||||
search_get_more_tip: 'Search for other options',
|
||||
remove_group_tip: 'Have at least one user group permission'
|
||||
remove_group_tip: 'Have at least one user group permission',
|
||||
upload_limit_size_warn: 'Upload file size cannot exceed {0} MB!',
|
||||
},
|
||||
system: {
|
||||
environment_import_repeat_tip: "(Environment configuration with the same name filtered {0})",
|
||||
|
|
|
@ -5,7 +5,8 @@ import mf from "metersphere-frontend/src/i18n/lang/zh-CN"
|
|||
const message = {
|
||||
system_user: {
|
||||
search_get_more_tip: '搜索获取其他选项',
|
||||
remove_group_tip: '至少拥有一个用户组权限'
|
||||
remove_group_tip: '至少拥有一个用户组权限',
|
||||
upload_limit_size_warn: '上传文件大小不能超过 {0} MB!',
|
||||
},
|
||||
system: {
|
||||
environment_import_repeat_tip: "(已过滤同名称的环境配置 {0})",
|
||||
|
|
|
@ -5,7 +5,8 @@ import mf from "metersphere-frontend/src/i18n/lang/zh-TW"
|
|||
const message = {
|
||||
user: {
|
||||
search_get_more_tip: '搜索獲取其他選項',
|
||||
remove_group_tip: '至少擁有一個用戶組權限'
|
||||
remove_group_tip: '至少擁有一個用戶組權限',
|
||||
upload_limit_size_warn: '上傳文件大小不能超過 {0} MB!',
|
||||
},
|
||||
system: {
|
||||
environment_import_repeat_tip: "(已過濾同名稱的環境配置 {0})",
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
</el-popover>
|
||||
</div>
|
||||
<div :class="readOnly ? 'testplan-local-upload-tip' : 'not-testplan-local-upload-tip'">
|
||||
<span slot="tip" class="el-upload__tip"> {{ $t('test_track.case.upload_tip') }} </span>
|
||||
<span slot="tip" class="el-upload__tip"> {{ $t("test_track.case.upload_tip", [0, uploadSize]) }} </span>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
@ -168,6 +168,7 @@ import {byteToSize, getCurrentUser, getTypeByFileName, hasPermission} from "@/bu
|
|||
import axios from "axios";
|
||||
import MsFileMetadataList from "metersphere-frontend/src/components/environment/commons/variable/QuoteFileList";
|
||||
import MsFileBatchMove from "metersphere-frontend/src/components/environment/commons/variable/FileBatchMove";
|
||||
import {getUploadSizeLimit} from "metersphere-frontend/src/utils/index";
|
||||
|
||||
export default {
|
||||
name: "TestCaseEditOtherInfo",
|
||||
|
@ -216,6 +217,9 @@ export default {
|
|||
},
|
||||
hasProjectFilePermission() {
|
||||
return hasPermission("PROJECT_FILE:READ");
|
||||
},
|
||||
uploadSize() {
|
||||
return getUploadSizeLimit();
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
|
Loading…
Reference in New Issue