fix(测试跟踪):修复公共用例库-搜索条件不生效问题

--bug=1025918 --user=王旭 【测试跟踪】公共用例库-组合搜索失败 https://www.tapd.cn/55049933/s/1367503
This commit is contained in:
WangXu10 2023-04-27 15:07:08 +08:00 committed by fit2-zhao
parent df35678351
commit cf1b35ee0d
2 changed files with 7 additions and 3 deletions

View File

@ -98,14 +98,14 @@
</ms-table-column>
<ms-table-column
prop="createName"
prop="createUser"
min-width="120"
:field="item"
:fields-width="fieldsWidth"
:label="$t('commons.create_user')"
:filters="userFilter">
<template v-slot:default="scope">
{{ scope.row.createName }}
{{ getCreateUserName(scope.row.createUser) }}
</template>
</ms-table-column>
@ -609,6 +609,10 @@ export default {
.then(r => this.versionFilters = r.data);
}
},
getCreateUserName(userId) {
let user = this.userFilter.filter(item => item.value === userId);
return user.length > 0 ? user[0].text : "";
},
}
};
</script>

View File

@ -121,7 +121,7 @@ const TRACK_HEADER = {
{id: 'versionId', key: 'b', label: 'project.version.name', xpack: true},
{id: 'projectName', key: '5', label: 'test_track.case.project'},
{id: 'updateTime', key: '6', label: 'commons.update_time'},
{id: 'createName', key: '7', label: 'commons.create_user'},
{id: 'createUser', key: '7', label: 'commons.create_user'},
{id: 'createTime', key: '8', label: 'commons.create_time'},
{id: 'desc', key: '9', label: 'test_track.case.case_desc'},
{id: 'lastExecuteResult', key: '0', label: 'test_track.plan_view.execute_result'},