fix(测试跟踪): i18n

--bug=1008911 --user=lyh 【国际化】测试跟踪 模块,未进行国际化的问题汇总
https://www.tapd.cn/55049933/s/1087334
This commit is contained in:
shiziyuan9527 2021-12-27 17:10:18 +08:00 committed by shiziyuan9527
parent c55591ba15
commit f808535bbf
2 changed files with 11 additions and 7 deletions

View File

@ -88,7 +88,7 @@
min-width="120"
/>
<ms-table-column :label="$t('test_track.case.case_desc')" prop="desc" :field="item">
<ms-table-column :label="$t('test_track.case.case_desc')" prop="desc" :field="item" min-width="100px">
<template v-slot:default="scope">
<el-link @click.stop="getCase(scope.row.id)" style="color:#783887;">{{ $t('commons.preview') }}</el-link>
</template>
@ -107,7 +107,7 @@
<ms-table-column
prop="reviewStatus"
min-width="100px"
min-width="120px"
:field="item"
:fields-width="fieldsWidth"
:label="$t('test_track.case.status')">

View File

@ -88,7 +88,7 @@
:field="item"
:fields-width="fieldsWidth"
:label="$t('commons.create_time')"
min-width="120px">
min-width="140px">
<template v-slot:default="scope">
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
</template>
@ -202,7 +202,7 @@
:field="item"
:fields-width="fieldsWidth"
:label="$t('commons.update_time')"
min-width="120px">
min-width="140px">
<template v-slot:default="scope">
<span>{{ scope.row.updateTime | timestampFormatDate }}</span>
</template>
@ -213,8 +213,8 @@
:field="item"
column-key="priority"
:fields-width="fieldsWidth"
:label="field.name"
:min-width="90"
:label="field.system ? $t(systemFiledMap[field.name]) :field.name"
:min-width="120"
:prop="field.name">
<template v-slot="scope">
<span v-if="field.name === '用例等级'">
@ -281,6 +281,7 @@ import MsTableColumn from "@/business/components/common/components/table/MsTable
import {getProjectMember} from "@/network/user";
import {getTestTemplate} from "@/network/custom-field-template";
import {editTestPlanTestCaseOrder} from "@/network/test-plan";
import {SYSTEM_FIELD_NAME_MAP} from "@/common/js/table-constants";
export default {
name: "FunctionalTestCaseList",
@ -399,7 +400,10 @@ export default {
computed: {
editTestPlanTestCaseOrder() {
return editTestPlanTestCaseOrder;
}
},
systemFiledMap() {
return SYSTEM_FIELD_NAME_MAP;
},
},
watch: {
planId() {