refactor(测试计划): 性能测试用例列表i18n

This commit is contained in:
shiziyuan9527 2021-01-11 15:54:30 +08:00
parent c10920aff0
commit 6ab9e3ade8
4 changed files with 46 additions and 17 deletions

View File

@ -48,14 +48,14 @@
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
</template>
</el-table-column>
<el-table-column
sortable
prop="updateTime"
:label="$t('commons.update_time')">
<template v-slot:default="scope">
<span>{{ scope.row.updateTime | timestampFormatDate }}</span>
</template>
</el-table-column>
<!-- <el-table-column-->
<!-- sortable-->
<!-- prop="updateTime"-->
<!-- :label="$t('commons.update_time')">-->
<!-- <template v-slot:default="scope">-->
<!-- <span>{{ scope.row.updateTime | timestampFormatDate }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column
prop="status"
column-key="status"
@ -67,7 +67,7 @@
</el-table-column>
<el-table-column
prop="caseStatus"
label="执行状态">
:label="$t('test_track.plan.load_case.execution_status')">
<template v-slot:default="{row}">
<el-tag size="mini" type="danger" v-if="row.caseStatus === 'error'">
{{ row.caseStatus }}
@ -79,11 +79,11 @@
</template>
</el-table-column>
<el-table-column
label="报告"
:label="$t('test_track.plan.load_case.report')"
show-overflow-tooltip>
<template v-slot:default="scope">
<div v-loading="loading === scope.row.id">
<el-link type="info" @click="getReport(scope.row)" v-if="scope.row.loadReportId">查看报告</el-link>
<el-link type="info" @click="getReport(scope.row)" v-if="scope.row.loadReportId">{{ $t('test_track.plan.load_case.view_report') }}</el-link>
<span v-else> - </span>
</div>
</template>
@ -141,10 +141,10 @@ export default {
// name: "", handleClick: this.handleBatchEdit
// },
{
name: "批量取消关联", handleClick: this.handleDeleteBatch
name: this.$t('test_track.plan.load_case.unlink_in_bulk'), handleClick: this.handleDeleteBatch
},
{
name: "批量执行用例", handleClick: this.handleRunBatch
name: this.$t('test_track.plan.load_case.batch_exec_cases'), handleClick: this.handleRunBatch
}
],
statusFilters: [
@ -200,7 +200,6 @@ export default {
if (arr.length > 0) {
this.initTable();
} else {
setTimeout(this.initTable, 3000);
clearInterval(this.refreshScheduler);
}
}, 4000);
@ -263,7 +262,7 @@ export default {
}).then(() => {
this.$notify({
title: loadCase.caseName,
message: '正在执行....',
message: this.$t('test_track.plan.load_case.exec'),
type: 'success'
});
this.initTable();
@ -274,7 +273,7 @@ export default {
});
this.$notify.error({
title: loadCase.caseName,
message: '用例执行错误,请单独调试该用例!'
message: this.$t('test_track.plan.load_case.error')
});
})
},
@ -310,7 +309,7 @@ export default {
if (exist) {
this.$refs.loadCaseReport.drawer = true;
} else {
this.$warning("报告不存在");
this.$warning(this.$t('test_track.plan.load_case.report_not_found'));
// this.initTable();
}
})

View File

@ -1103,6 +1103,16 @@ export default {
plan_delete_confirm: "All use cases under this plan will be deleted,confirm delete test plan: ",
plan_delete_tip: "The test plan is under way, please confirm and delete it!",
plan_delete: "Delete test plan",
load_case: {
execution_status: "Execution status",
report: "report",
view_report: "View report",
unlink_in_bulk: "Unlink in bulk",
batch_exec_cases: "Batch execution use cases",
exec: "Executing....",
error: "Use case execution error, please debug this use case separately!",
report_not_found: "Report does not exist",
}
},
review: {
test_review: "Test Review",

View File

@ -1104,6 +1104,16 @@ export default {
plan_delete_confirm: "将删除该测试计划下所有用例,确认删除测试计划: ",
plan_delete_tip: "该测试计划正在进行中,请确认再删除!",
plan_delete: "删除计划",
load_case: {
execution_status: "执行状态",
report: "报告",
view_report: "查看报告",
unlink_in_bulk: "批量取消关联",
batch_exec_cases: "批量执行用例",
exec: "正在执行....",
error: "用例执行错误,请单独调试该用例!",
report_not_found: "报告不存在",
}
},
review: {
test_review: "用例评审",

View File

@ -1104,6 +1104,16 @@ export default {
plan_delete_confirm: "將刪除該測試計劃下所有用例,確認刪除測試計劃: ",
plan_delete_tip: "該測試計劃正在進行中,請確認再刪除!",
plan_delete: "刪除計劃",
load_case: {
execution_status: "執行狀態",
report: "報告",
view_report: "查看報告",
unlink_in_bulk: "批量取消關聯",
batch_exec_cases: "批量執行用例",
exec: "正在執行....",
error: "用例執行錯誤,請單獨調試該用例!",
report_not_found: "報告不存在",
}
},
review: {
test_review: "用例評審",