fix(测试跟踪): 修复UI测试计划列表状态问题

--bug=1019512 --user=刘瑶 【UI测试】场景列表-执行结果和指令列表-调试结果与测试报告-状态不一致 https://www.tapd.cn/55049933/s/1292728
This commit is contained in:
nathan.liu 2022-11-08 18:51:17 +08:00 committed by nathanliu2022
parent 4a25c0ec0a
commit c27c6a8bce
2 changed files with 13 additions and 7 deletions

View File

@ -282,9 +282,12 @@ export const UI_SCENARIO_RESULT = {
options: [OPERATORS.IN, OPERATORS.NOT_IN] options: [OPERATORS.IN, OPERATORS.NOT_IN]
}, },
options: [ options: [
{text: 'Error', value: 'ERROR'}, {label: "Running", value: "RUNNING"},
{text: 'Success', value: 'SUCCESS'}, {label: "Error", value: "ERROR"},
{text: 'Pending', value: 'PENDING'}, {label: "Success", value: "SUCCESS"},
{label: 'Stopped', value: 'STOPPED'},
{label: "Pending", value: "PENDING"},
{label: "Timeout", value: "TIMEOUT"},
], ],
props: { // 尾部控件的props一般为element ui控件的props props: { // 尾部控件的props一般为element ui控件的props
multiple: true multiple: true

View File

@ -56,13 +56,16 @@
min-width="120px"> min-width="120px">
<template v-slot:default="{row}"> <template v-slot:default="{row}">
<el-link type="success" @click="showReport(row)" v-if="row.lastResult === 'Success' || row.lastResult === 'SUCCESS'"> <el-link type="success" @click="showReport(row)" v-if="row.lastResult === 'Success' || row.lastResult === 'SUCCESS'">
{{ $t('api_test.automation.success') }} {{ $t('Success') }}
</el-link> </el-link>
<el-link type="danger" @click="showReport(row)" v-else-if="row.lastResult === 'Fail' || row.lastResult === 'FAIL' || row.lastResult === 'ERROR'"> <el-link type="danger" @click="showReport(row)" v-else-if="row.lastResult === 'Fail' || row.lastResult === 'FAIL' || row.lastResult === 'ERROR'">
{{ $t('api_test.automation.fail') }} {{ $t('Error') }}
</el-link> </el-link>
<el-link type="info" v-else-if="row.lastResult === 'PENDING' || row.lastResult === 'UnExecute' || !row.lastResult"> <el-link type="info" v-else-if="row.lastResult === 'PENDING' || row.lastResult === 'UnExecute'">
{{ $t('api_test.home_page.detail_card.unexecute') }} {{ $t('Pending') }}
</el-link>
<el-link type="info" v-else>
{{ row.lastResult }}
</el-link> </el-link>
</template> </template>
</el-table-column> </el-table-column>