refactor(接口测试): 报告状态统一

--bug=1019420 --user=赵勇 【接口测试】接口的子请求状态,和接口的断言状态,没有和其他地方的状态统一 https://www.tapd.cn/55049933/s/1289908
This commit is contained in:
fit2-zhao 2022-11-04 18:48:58 +08:00 committed by f2c-ci-robot[bot]
parent d89b469fc9
commit fa34b832e3
4 changed files with 8 additions and 8 deletions

View File

@ -64,10 +64,10 @@
{{ $t('error_report_library.option.name') }} {{ $t('error_report_library.option.name') }}
</el-tag> </el-tag>
<el-tag size="mini" type="success" v-else-if="request.success"> <el-tag size="mini" type="success" v-else-if="request.success">
{{ $t('api_report.success') }} Success
</el-tag> </el-tag>
<el-tag size="mini" type="danger" v-else> <el-tag size="mini" type="danger" v-else>
{{ $t('api_report.fail') }} Error
</el-tag> </el-tag>
</api-report-request-header-item> </api-report-request-header-item>
</div> </div>

View File

@ -12,10 +12,10 @@
<el-table-column prop="pass" :label="$t('api_report.assertions_is_success')" width="180"> <el-table-column prop="pass" :label="$t('api_report.assertions_is_success')" width="180">
<template v-slot:default="{row}"> <template v-slot:default="{row}">
<el-tag size="mini" type="success" v-if="row.pass"> <el-tag size="mini" type="success" v-if="row.pass">
{{ $t('api_report.success') }} Success
</el-tag> </el-tag>
<el-tag size="mini" type="danger" v-else> <el-tag size="mini" type="danger" v-else>
{{ $t('api_report.fail') }} Error
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>

View File

@ -44,10 +44,10 @@
<el-col :span="2"> <el-col :span="2">
<div class="success"> <div class="success">
<el-tag size="mini" type="success" v-if="request.success"> <el-tag size="mini" type="success" v-if="request.success">
{{ $t('api_report.success') }} Success
</el-tag> </el-tag>
<el-tag size="mini" type="danger" v-else> <el-tag size="mini" type="danger" v-else>
{{ $t('api_report.fail') }} Error
</el-tag> </el-tag>
</div> </div>
</el-col> </el-col>

View File

@ -6,10 +6,10 @@
<el-table-column prop="pass" :label="$t('api_report.assertions_is_success')" width="100"> <el-table-column prop="pass" :label="$t('api_report.assertions_is_success')" width="100">
<template v-slot:default="{row}"> <template v-slot:default="{row}">
<el-tag size="mini" type="success" v-if="row.pass"> <el-tag size="mini" type="success" v-if="row.pass">
{{ $t('api_report.success') }} Success
</el-tag> </el-tag>
<el-tag size="mini" type="danger" v-else> <el-tag size="mini" type="danger" v-else>
{{ $t('api_report.fail') }} Error
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>