fix(测试跟踪): 修复关联场景执行状态不一致的缺陷 (#18072)

--bug=1016868 --user=王孝刚 【接口测试】测试计划中的场景用例列表中和报告统计中的“执行结果”状态不一致
https://www.tapd.cn/55049933/s/1246436

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-09-20 19:49:55 +08:00 committed by GitHub
parent 27f4b59144
commit 1b1dbdc2e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 12 deletions

View File

@ -1,6 +1,8 @@
<template>
<span>
<ms-tag v-if="value == 'Prepare'" type="info" :content="$t('test_track.plan.plan_status_prepare')" style="background-color: #D7D7D7; border-color: #D7D7D7"/>
<ms-tag v-if="value == 'Prepare'" :content="$t('api_test.home_page.detail_card.unexecute')"
style="background-color: #D7D7D7; border-color: #D7D7D7"
type="info"/>
<ms-tag v-else-if="value == 'Underway'" type="primary" :content="$t('test_track.plan.plan_status_running')"/>
<ms-tag v-else-if="value == 'Pass'" type="success" :content="$t('test_track.plan_view.pass')"/>
<ms-tag v-else-if="value == 'UnPass'" type="danger" :content="$t('test_track.plan_view.not_pass')"/>
@ -9,16 +11,20 @@
<ms-tag v-else-if="value == 'Failure'" type="danger" :content="$t('test_track.plan_view.failure')"/>
<ms-tag v-else-if="value == 'Blocking'" type="warning" :content="$t('test_track.plan_view.blocking')"/>
<ms-tag v-else-if="value == 'Skip'" type="info" :content="$t('test_track.plan_view.skip')"/>
<ms-tag v-else-if="value == 'ErrorReportResult'" type="warning" style="background-color: #F6972A; border-color: #F6972A" :content="$t('error_report_library.option.name')"/>
<ms-tag v-else-if="value == 'ErrorReportResult'" :content="$t('error_report_library.option.name')"
style="background-color: #F6972A; border-color: #F6972A"
type="warning"/>
<ms-tag v-else-if="value == 'ApiCaseStop'" type="info" :content="$t('api_test.home_page.detail_card.unexecute')"/>
<ms-tag v-else-if="value == 'ApiCasePrepare'" type="info" :content="$t('api_test.home_page.detail_card.unexecute')"/>
<ms-tag v-else-if="value == 'ApiCasePrepare'" :content="$t('api_test.home_page.detail_card.unexecute')"
type="info"/>
<ms-tag v-else type="info" :content="value"/>
</span>
</template>
<script>
import MsTag from "../../../../common/components/MsTag";
export default {
import MsTag from "../../../../common/components/MsTag";
export default {
name: "StatusTableItem",
components: {MsTag},
props: {
@ -26,7 +32,7 @@
type: String
}
}
}
}
</script>
<style scoped>