mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 05:29:29 +08:00
fix(测试跟踪): 修复测试跟踪报告导出显示中文的缺陷
--bug=1026213 --user=王孝刚 【测试跟踪】报告-导出-事务控制器下步骤结果显示为中文 https://www.tapd.cn/55049933/s/1372107
This commit is contained in:
parent
791dbe1607
commit
3236435001
@ -193,7 +193,7 @@
|
||||
<el-col :span="2">
|
||||
<div v-if="totalStatus">
|
||||
<el-tag size="mini" v-if="totalStatus === 'unexecute'"
|
||||
>{{ $t("api_test.home_page.detail_card.unexecute") }}
|
||||
> Pending
|
||||
</el-tag>
|
||||
<el-tag
|
||||
v-else-if="
|
||||
@ -203,7 +203,7 @@
|
||||
class="ms-test-error_code"
|
||||
size="mini"
|
||||
>
|
||||
{{ $t("error_report_library.option.name") }}
|
||||
FakeError
|
||||
</el-tag>
|
||||
<el-tag
|
||||
size="mini"
|
||||
@ -214,10 +214,10 @@
|
||||
totalStatus === 'success'
|
||||
"
|
||||
>
|
||||
{{ $t("api_report.success") }}
|
||||
Success
|
||||
</el-tag>
|
||||
<el-tag size="mini" type="danger" v-else>
|
||||
{{ $t("api_report.fail") }}</el-tag
|
||||
Error </el-tag
|
||||
>
|
||||
</div>
|
||||
<div v-else>
|
||||
@ -227,10 +227,10 @@
|
||||
size="mini"
|
||||
>
|
||||
<i class="el-icon-loading" style="font-size: 16px" />
|
||||
{{ $t("commons.testing") }}
|
||||
Pending
|
||||
</el-tag>
|
||||
<el-tag size="mini" v-else-if="request.unexecute"
|
||||
>{{ $t("api_test.home_page.detail_card.unexecute") }}
|
||||
>Pending
|
||||
</el-tag>
|
||||
<el-tag
|
||||
size="mini"
|
||||
@ -239,7 +239,7 @@
|
||||
request.status &&
|
||||
request.status === 'unexecute'
|
||||
"
|
||||
>{{ $t("api_test.home_page.detail_card.unexecute") }}
|
||||
>Pending
|
||||
</el-tag>
|
||||
<el-tag
|
||||
v-else-if="
|
||||
@ -248,13 +248,13 @@
|
||||
class="ms-test-error_code"
|
||||
size="mini"
|
||||
>
|
||||
{{ $t("error_report_library.option.name") }}
|
||||
FakeError
|
||||
</el-tag>
|
||||
<el-tag size="mini" type="success" v-else-if="request.success">
|
||||
{{ $t("api_report.success") }}</el-tag
|
||||
Success</el-tag
|
||||
>
|
||||
<el-tag size="mini" type="danger" v-else>
|
||||
{{ $t("api_report.fail") }}</el-tag
|
||||
Error</el-tag
|
||||
>
|
||||
</div>
|
||||
</el-col>
|
||||
@ -447,6 +447,12 @@ export default {
|
||||
}
|
||||
return name;
|
||||
},
|
||||
showStatus(status) {
|
||||
if (!status) {
|
||||
status = 'PENDING';
|
||||
}
|
||||
return status.toLowerCase()[0].toUpperCase() + status.toLowerCase().substr(1);
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
@ -18,7 +18,7 @@
|
||||
</el-tooltip>
|
||||
</el-col>
|
||||
<el-col :span="1">
|
||||
<ms-api-report-status :status="node.totalStatus"/>
|
||||
<ms-api-report-status :status="node.totalStatus" v-if="node.label !=='ConstantTimer'"/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-card>
|
||||
@ -85,12 +85,16 @@ export default {
|
||||
methods: {
|
||||
getLabel(label) {
|
||||
switch (label) {
|
||||
case "ConstantTimer":
|
||||
return "等待控制器";
|
||||
case "LoopController":
|
||||
return "循环控制器";
|
||||
case "Assertion":
|
||||
return "场景断言";
|
||||
case 'ConstantTimer':
|
||||
return this.$t('api_test.automation.wait_controller');
|
||||
case 'LoopController':
|
||||
return this.$t('api_test.automation.loop_controller');
|
||||
case 'Assertion':
|
||||
return this.$t('api_test.definition.request.scenario_assertions');
|
||||
case 'IfController':
|
||||
return this.$t('api_test.automation.if_controller');
|
||||
case 'TransactionController':
|
||||
return this.$t('api_test.automation.transaction_controller');
|
||||
default:
|
||||
return label;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user