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 c2880a672a
commit e485d8d512
2 changed files with 11 additions and 7 deletions

View File

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

View File

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