fix(测试跟踪): 关联重复用例提示信息未国际化问题
--bug=1018089,1017955 --user=宋昌昌 【测试跟踪】测试用例-重复关联git文件-提示英文 https://www.tapd.cn/55049933/s/1263099 Co-authored-by: song-cc-rock <changchang.song@fit2cloud.com>
This commit is contained in:
parent
8e74d1b5e4
commit
be930815e6
|
@ -234,7 +234,7 @@ export let CUSTOM_TABLE_HEADER = {
|
|||
{id: 'versionId', key: 'b', label: 'project.version.name', xpack: true},
|
||||
{id: 'nodePath', key: '5', label: 'test_track.case.module'},
|
||||
{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'},
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
:label="$t('commons.create_user')"
|
||||
:filters="userFilter">
|
||||
<template v-slot:default="scope">
|
||||
{{ scope.row.createName }}
|
||||
{{ getCreateUserName(scope.row.createUser) }}
|
||||
</template>
|
||||
</ms-table-column>
|
||||
|
||||
|
@ -443,13 +443,12 @@ export default {
|
|||
})
|
||||
},
|
||||
created: function () {
|
||||
this.getTemplateField();
|
||||
this.$emit('setCondition', this.condition);
|
||||
this.initTableData();
|
||||
getProjectMemberUserFilter((data) => {
|
||||
this.userFilter = data;
|
||||
});
|
||||
|
||||
this.getTemplateField();
|
||||
this.$emit('setCondition', this.condition);
|
||||
this.initTableData();
|
||||
let redirectParam = this.$route.query.dataSelectRange;
|
||||
this.checkRedirectEditPage(redirectParam);
|
||||
// 切换tab之后版本查询
|
||||
|
@ -597,6 +596,10 @@ export default {
|
|||
});
|
||||
useStore().testCaseDefaultValue = testCaseDefaultValue;
|
||||
},
|
||||
getCreateUserName(userId) {
|
||||
let user = this.userFilter.filter(item => item.value === userId);
|
||||
return user.length > 0 ? user[0].text : "";
|
||||
},
|
||||
getCustomFieldValue(row, field, defaultVal = '') {
|
||||
let value = getCustomFieldValueForTrack(row, field, this.members);
|
||||
if (field.name === '用例等级') {
|
||||
|
|
Loading…
Reference in New Issue