fix(测试用例): 将测试用例里的执行结果字段做成可配置方式

--bug=1008924 --user=宋天阳 【测试跟踪】测试用例,最后结果显示在了最前面,并且没加到表头设置里
https://www.tapd.cn/55049933/s/1083789
This commit is contained in:
song-tianyang 2021-12-20 20:19:28 +08:00 committed by 刘瑞斌
parent a4189a3cdd
commit 955616f78a
2 changed files with 7 additions and 5 deletions

View File

@ -46,10 +46,12 @@
:label="$t('commons.delete_user')" :label="$t('commons.delete_user')"
min-width="120"/> min-width="120"/>
<ms-table-column <span v-for="item in fields" :key="item.key">
prop="lastExecuteResult" <ms-table-column
min-width="100px" v-if="item.id === 'lastExecResult'"
:label="$t('test_track.plan_view.execute_result')"> prop="lastExecuteResult"
min-width="100px"
:label="$t('test_track.plan_view.execute_result')">
<template v-slot:default="scope"> <template v-slot:default="scope">
<span @click.stop="clickt = 'stop'"> <span @click.stop="clickt = 'stop'">
<span class="el-dropdown-link"> <span class="el-dropdown-link">
@ -59,7 +61,6 @@
</template> </template>
</ms-table-column> </ms-table-column>
<span v-for="item in fields" :key="item.key">
<ms-table-column <ms-table-column
v-if="!customNum" v-if="!customNum"
:field="item" :field="item"

View File

@ -189,6 +189,7 @@ export let CUSTOM_TABLE_HEADER = {
{id: 'createUser', key: '7', label: 'commons.create_user'}, {id: 'createUser', key: '7', label: 'commons.create_user'},
{id: 'createTime', key: '8', label: 'commons.create_time'}, {id: 'createTime', key: '8', label: 'commons.create_time'},
{id: 'desc', key: '9', label: 'test_track.case.case_desc'}, {id: 'desc', key: '9', label: 'test_track.case.case_desc'},
{id: 'lastExecResult', key: '10', label: 'test_track.plan_view.execute_result'},
], ],
//缺陷列表 //缺陷列表
ISSUE_LIST: [ ISSUE_LIST: [