fix(系统设置): 修复功能用例导出系统字段没有国际化问题

--bug=1028410 --user=王旭 【测试跟踪】github#26003,国际化问题 测试跟踪 功能用例导出、更改记录、编辑等 https://www.tapd.cn/55049933/s/1415888
This commit is contained in:
WangXu10 2023-09-13 15:47:27 +08:00 committed by 刘瑞斌
parent ed8d578c67
commit 066a5a991b
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,8 @@ import {getCurrentProjectID} from "@/business/utils/sdk-utils";
import TestCaseExportFieldSelectItem from "@/business/case/components/export/TestCaseExportFieldSelectItem";
import TestCaseExportFieldList from "@/business/case/components/export/TestCaseExportFieldList";
import {getTestTemplate} from "@/api/custom-field-template";
import i18n from "metersphere-frontend/src/i18n";
import {SYSTEM_FIELD_NAME_MAP} from "metersphere-frontend/src/utils/table-constants";
export default {
name: "TestCaseExportFieldSelect",
@ -152,6 +154,8 @@ export default {
this.baseFields = [...this.originBaseFields];
template.customFields.forEach(item => {
if (item.system) {
item.label = i18n.t(SYSTEM_FIELD_NAME_MAP[item.name])
item.name =i18n.t(SYSTEM_FIELD_NAME_MAP[item.name])
this.baseFields.push(item);
} else {
this.customFields.push(item);