diff --git a/frontend/src/business/components/api/automation/report/components/MetricChart.vue b/frontend/src/business/components/api/automation/report/components/MetricChart.vue
index 2db5674db8..5c990a4160 100644
--- a/frontend/src/business/components/api/automation/report/components/MetricChart.vue
+++ b/frontend/src/business/components/api/automation/report/components/MetricChart.vue
@@ -10,12 +10,17 @@
-
- {{ content.success + content.error }} {{isUi ? '指令' : $t('api_report.request')}}
-
+
+ {{ content.success + content.error + content.errorCode + content.unExecute }} {{
+ isUi ? '指令' : $t('api_report.request')
+ }}
+
- {{ content.success ? content.success + content.error : 0 }} {{isUi ? '指令' : $t('api_report.request')}}
-
+ {{
+ content.success ? content.success + content.error : 0
+ }} {{ isUi ? '指令' : $t('api_report.request') }}
+
@@ -46,7 +51,7 @@
-
+
{{ content.unExecute }}
{{ $t('api_test.home_page.detail_card.unexecute') }}
@@ -92,7 +97,9 @@
{{ content.scenarioStepTotal ? content.scenarioStepTotal : 0 }}
-
{{$t('api_test.definition.request.case')}}
+
+ {{ $t('api_test.definition.request.case') }}
+
{{ $t('test_track.plan_view.step') }}
@@ -216,18 +223,18 @@ export default {
},
},
computed: {
- totalCount(){
+ totalCount() {
let total = 0;
- if(this.content.success){
+ if (this.content.success) {
total += this.content.success;
}
- if(this.content.error){
+ if (this.content.error) {
total += this.content.error;
}
- if(this.content.errorCode){
+ if (this.content.errorCode) {
total += this.content.errorCode;
}
- if(this.content.unExecute){
+ if (this.content.unExecute) {
total += this.content.unExecute;
}
return total;
@@ -278,10 +285,10 @@ export default {
show: false
},
data: [
- {value: this.content.success, name:this.$t('api_report.success')},
- {value: this.content.error, name:this.$t('api_report.fail')},
- {value: this.content.errorCode, name:this.$t('error_report_library.option.name')},
- {value: this.content.unExecute, name:this.$t('api_test.home_page.detail_card.unexecute')},
+ {value: this.content.success, name: this.$t('api_report.success')},
+ {value: this.content.error, name: this.$t('api_report.fail')},
+ {value: this.content.errorCode, name: this.$t('error_report_library.option.name')},
+ {value: this.content.unExecute, name: this.$t('api_test.home_page.detail_card.unexecute')},
]
}
]