fix(测试跟踪): 测试跟踪模块国际化问题

--bug=1014241 --user=宋昌昌 【测试跟踪】测试跟踪模块国际化问题汇总2 https://www.tapd.cn/55049933/s/1187191
This commit is contained in:
song-cc-rock 2022-06-20 19:14:12 +08:00 committed by f2c-ci-robot[bot]
parent ebe5897efc
commit 60c00b01dd
9 changed files with 25 additions and 14 deletions

View File

@ -71,7 +71,7 @@
<ms-table-column
prop="createUser"
:label="'创建人'"/>
:label="$t('commons.create_user')"/>
<ms-table-column
sortable="createTime"

View File

@ -8,8 +8,8 @@
@close="handleClose">
{{tip}}
<template v-slot:footer>
<el-button type="primary" @click="save" @keydown.enter.native.prevent>{{$t('保存')}}</el-button>
<el-button @click="cancel">{{$t('不保存')}}</el-button>
<el-button type="primary" @click="save" @keydown.enter.native.prevent>{{$t('commons.save')}}</el-button>
<el-button @click="cancel">{{$t('commons.not_save')}}</el-button>
</template>
</ms-edit-dialog>
</template>

View File

@ -21,7 +21,7 @@ export const Test_Case_Review = [
{id: 'status', label: i18n.t('test_track.review.review_status')},
{id: 'createTime', label: i18n.t('commons.create_time')},
{id: 'endTime', label: i18n.t('test_track.review.end_time')},
{id: 'tags', label: '标签'},
{id: 'tags', label: i18n.t('commons.tag')},
]
//测试计划-测试用例
export const Test_Plan_List = [

View File

@ -796,9 +796,13 @@ export default {
this.page.total = data.itemCount;
this.page.data = data.listObject;
this.page.data.forEach(item => {
let nodePath = item.nodePath;
if (item.customFields) {
item.customFields = JSON.parse(item.customFields);
}
if (nodePath.startsWith("/未规划用例", "0")) {
item.nodePath = nodePath.replaceAll("/未规划用例", "/" + this.$t('api_test.unplanned_case'));
}
});
parseTag(this.page.data);
});

View File

@ -23,7 +23,7 @@ export default {
subtext: '55',
textAlign:'center',
y: 'center',
padding: 40,
padding: 100,
itemGap: 5,
textStyle: {
lineHeight: 30,
@ -46,7 +46,7 @@ export default {
data: [],
},
grid: {
left: 100
left: 200
},
xAxis: {
type: 'value',

View File

@ -105,6 +105,7 @@ import TestPlanStatusButton from "../../plan/common/TestPlanStatusButton";
import {WORKSPACE_ID} from "@/common/js/constants";
import {getCurrentProjectID, listenGoBack, removeGoBackListener} from "@/common/js/utils";
import MsInputTag from "@/business/components/api/automation/scenario/MsInputTag";
import i18n from "@/i18n/i18n";
export default {
name: "TestCaseReviewEdit",
@ -271,7 +272,7 @@ export default {
},
compareTime(ts1, ts2) {
if (ts1 > ts2) {
this.$warning("截止时间不能早于当前时间!");
this.$warning(i18n.t('test_track.review.deadline_cannot_early_tips'));
return false;
}
return true;

View File

@ -58,6 +58,7 @@ export default {
annotation: 'Annotation',
clear: 'Clear',
save: 'Save',
not_save: "Not Save",
save_as: 'Save as',
update: 'Update',
save_success: 'Saved successfully',
@ -2188,10 +2189,10 @@ export default {
is_api_case_executing: "Api Case Executing",
is_scenario_executing: 'Scenario Executing',
is_performance_executing: 'Performance Executing',
test_plan_test_case_count: "Track case count",
test_plan_api_case_count: "Api case count",
test_plan_api_scenario_count: "Scenario case count",
test_plan_load_case_count: "Load case count",
test_plan_test_case_count: "Track Case Count",
test_plan_api_case_count: "Api Case Count",
test_plan_api_scenario_count: "Scenario Case Count",
test_plan_load_case_count: "Load Case Count",
test_plan_component_case_count: "Component Case Count",
data_name: "Data Name",
test_plan_batch_switch: "batch on/off scheduled tasks",
@ -2241,7 +2242,8 @@ export default {
reviewed_by_me: "Review By Me",
creator: "Creator",
done: "Commented use cases",
result_distribution: "Result Distribution"
result_distribution: "Result Distribution",
deadline_cannot_early_tips: "Deadline cannot be earlier than current time",
},
comment: {
no_comment: "No Comment",

View File

@ -57,6 +57,7 @@ export default {
annotation: '注释',
clear: '清空',
save: '保存',
not_save: '不保存',
save_as: '另存为',
update: '更新',
save_success: '保存成功',
@ -2248,7 +2249,8 @@ export default {
reviewed_by_me: "待我评审",
creator: "创建人",
done: "已评用例",
result_distribution: "结果分布"
result_distribution: "结果分布",
deadline_cannot_early_tips: "截止时间不能早于当前时间!",
},
comment: {
no_comment: "暂无评论",

View File

@ -57,6 +57,7 @@ export default {
annotation: '註釋',
clear: '清空',
save: '保存',
not_save: '不保存',
save_as: '另存為',
update: '更新',
save_success: '保存成功',
@ -2245,7 +2246,8 @@ export default {
reviewed_by_me: "待我評審",
creator: "創建人",
done: "已評用例",
result_distribution: "結果分布"
result_distribution: "結果分布",
deadline_cannot_early_tips: "截止時間不能早於當前時間!",
},
comment: {
no_comment: "暫無評論",