fix: 处理UI报告报错
This commit is contained in:
parent
cc7508dd61
commit
977412c141
|
@ -11,10 +11,10 @@
|
||||||
|
|
||||||
<div v-if="isExport">
|
<div v-if="isExport">
|
||||||
<span class="ms-req ms-req-error" v-if="content.error && content.error>0">
|
<span class="ms-req ms-req-error" v-if="content.error && content.error>0">
|
||||||
<span class="ms-req-span"> {{ content.success + content.error }} {{isUi ? '步骤' : $t('api_report.request')}}</span>
|
<span class="ms-req-span"> {{ content.success + content.error }} {{isUi ? '指令' : $t('api_report.request')}}</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="ms-req ms-req-success" v-else>
|
<span class="ms-req ms-req-success" v-else>
|
||||||
<span class="ms-req-span"> {{ content.success ? content.success + content.error : 0 }} {{isUi ? '步骤' : $t('api_report.request')}}</span>
|
<span class="ms-req-span"> {{ content.success ? content.success + content.error : 0 }} {{isUi ? '指令' : $t('api_report.request')}}</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<ms-chart id="chart" ref="chart" :options="options" :height="220" style="margin-right: 10px"
|
<ms-chart id="chart" ref="chart" :options="options" :height="220" style="margin-right: 10px"
|
||||||
|
@ -144,7 +144,7 @@
|
||||||
<div class="metric-icon-box" v-if="!isUi">
|
<div class="metric-icon-box" v-if="!isUi">
|
||||||
<i class="el-icon-document-copy total"></i>
|
<i class="el-icon-document-copy total"></i>
|
||||||
<div class="value">{{ this.content.total }}</div>
|
<div class="value">{{ this.content.total }}</div>
|
||||||
<div class="name">{{ isUi ? '步骤' : $t('api_report.request') }}</div>
|
<div class="name">{{ isUi ? '指令' : $t('api_report.request') }}</div>
|
||||||
</div>
|
</div>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
|
@ -217,7 +217,7 @@ export default {
|
||||||
},
|
},
|
||||||
title: [{
|
title: [{
|
||||||
text: (this.content.success + this.content.error + this.content.errorCode + this.content.unExecute),
|
text: (this.content.success + this.content.error + this.content.errorCode + this.content.unExecute),
|
||||||
subtext: this.isUi ? '步骤' : this.$t('api_report.request'),
|
subtext: this.isUi ? '指令' : this.$t('api_report.request'),
|
||||||
top: 'center',
|
top: 'center',
|
||||||
left: 'center',
|
left: 'center',
|
||||||
textStyle: {
|
textStyle: {
|
||||||
|
|
Loading…
Reference in New Issue