fix(UI 自动化): 测试报告状态统一
--bug=1013989 --user=张大海 [通用设置]任务中心-状态列表中应按照报告结果情况列出所有状态并保持中英文一致 https://www.tapd.cn/55049933/s/1182594
This commit is contained in:
parent
d2e9044613
commit
c81bbf5754
|
@ -1,30 +1,30 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-tag size="mini" type="info" v-if="row.status === 'Starting'">
|
||||
{{ row.status }}
|
||||
{{ showStatus(row.status) }}
|
||||
</el-tag>
|
||||
<el-tag size="mini" type="primary" effect="plain" v-else-if="row.status === 'Running'">
|
||||
{{ row.status }}
|
||||
{{ showStatus(row.status) }}
|
||||
</el-tag>
|
||||
<el-tag size="mini" type="success" v-else-if="row.status === 'Success'">
|
||||
{{ row.status }}
|
||||
{{ showStatus(row.status) }}
|
||||
</el-tag>
|
||||
<el-tag size="mini" type="warning" v-else-if="row.status === 'Reporting'">
|
||||
{{ row.status }}
|
||||
{{ showStatus(row.status) }}
|
||||
</el-tag>
|
||||
<el-tooltip placement="top" v-else-if="row.status === 'Error' && row.description" effect="light">
|
||||
<template v-slot:content>
|
||||
<div>{{row.description}}</div>
|
||||
</template>
|
||||
<el-tag size="mini" type="danger">
|
||||
{{ row.status }}
|
||||
{{ showStatus(row.status) }}
|
||||
</el-tag>
|
||||
</el-tooltip>
|
||||
<el-tag v-else-if="row.status === 'Error' && !row.description" size="mini" type="danger">
|
||||
{{ row.status }}
|
||||
{{ showStatus(row.status) }}
|
||||
</el-tag>
|
||||
<el-tag v-else size="mini" type="info">
|
||||
{{ row.status }}
|
||||
{{ showStatus(row.status) }}
|
||||
</el-tag>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -35,6 +35,12 @@
|
|||
|
||||
props: {
|
||||
row: Object
|
||||
},
|
||||
methods: {
|
||||
showStatus(status) {
|
||||
return status === "unexecute" ? "NotExecute" :
|
||||
status.toLowerCase()[0].toUpperCase() + status.toLowerCase().substr(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue