refactor(接口测试): 修复导出带误报的场景报告时误报内容缺失的缺陷 (#15542)

--bug=1014516 --user=王孝刚 【接口测试】场景报告-查看详情-导出报告,中间的步骤统计没有误报
https://www.tapd.cn/55049933/s/1195844

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-07-06 17:33:07 +08:00 committed by GitHub
parent ab81f09329
commit 0d7fe4a902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 16 deletions

View File

@ -10,11 +10,16 @@
</el-row> </el-row>
<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"
<span class="ms-req-span"> {{ content.success + content.error }} {{isUi ? '指令' : $t('api_report.request')}}</span> v-if="(content.error && content.error>0 )|| (content.errorCode && content.errorCode>0)|| (content.unExecute && content.unExecute>0)">
<span class="ms-req-span"> {{ content.success + content.error + content.errorCode + content.unExecute }} {{
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"
@ -92,7 +97,9 @@
<el-row type="flex" justify="center" align="middle"> <el-row type="flex" justify="center" align="middle">
<div class="metric-box"> <div class="metric-box">
<div class="value">{{ content.scenarioStepTotal ? content.scenarioStepTotal : 0 }}</div> <div class="value">{{ content.scenarioStepTotal ? content.scenarioStepTotal : 0 }}</div>
<div class="name" v-if="report.reportType === 'API_INTEGRATED'">{{$t('api_test.definition.request.case')}}</div> <div class="name" v-if="report.reportType === 'API_INTEGRATED'">
{{ $t('api_test.definition.request.case') }}
</div>
<div class="name" v-else>{{ $t('test_track.plan_view.step') }}</div> <div class="name" v-else>{{ $t('test_track.plan_view.step') }}</div>
</div> </div>
<span class="ms-point-success"/> <span class="ms-point-success"/>