fix(测试跟踪): Tapd状态列数据显示为英文

--bug=1023335 --user=李玉号 【测试跟踪】功能用例-编辑-关联现有缺陷列表-集成Tapd-状态列数据显示为英文
https://www.tapd.cn/55049933/s/1338458
This commit is contained in:
shiziyuan9527 2023-02-20 15:32:33 +08:00 committed by lyh
parent eea9216a33
commit b6ee52cb4f
2 changed files with 19 additions and 3 deletions

View File

@ -83,7 +83,12 @@
prop="platformStatus"
>
<template v-slot="scope">
<span v-if="scope.row.platform === 'Tapd'">
{{ scope.row.platformStatus ? tapdIssueStatusMap[scope.row.platformStatus] : '--' }}
</span>
<span v-else>
{{ scope.row.platformStatus ? scope.row.platformStatus : "--" }}
</span>
</template>
</ms-table-column>
@ -173,7 +178,7 @@ import MsTable from "metersphere-frontend/src/components/new-ui/MsTable";
import HomePagination from "@/business/home/components/pagination/HomePagination";
import MsTableColumn from "metersphere-frontend/src/components/table/MsTableColumn";
import IssueDescriptionTableItem from "@/business/issue/IssueDescriptionTableItem";
import { ISSUE_STATUS_MAP } from "metersphere-frontend/src/utils/table-constants";
import { ISSUE_STATUS_MAP, TAPD_ISSUE_STATUS_MAP } from "metersphere-frontend/src/utils/table-constants";
import IssueRelateList from "./CaseIssueRelateList";
import {
closeIssue,
@ -240,6 +245,9 @@ export default {
issueStatusMap() {
return ISSUE_STATUS_MAP;
},
tapdIssueStatusMap() {
return TAPD_ISSUE_STATUS_MAP;
},
notInIds() {
return this.page.data ? this.page.data.map((i) => i.id) : [];
},

View File

@ -66,7 +66,12 @@
prop="platformStatus"
>
<template v-slot="scope">
{{ scope.row.platformStatus ? scope.row.platformStatus : "--" }}
<span v-if="scope.row.platform === 'Tapd'">
{{ scope.row.platformStatus ? tapdIssueStatusMap[scope.row.platformStatus] : '--' }}
</span>
<span v-else>
{{ scope.row.platformStatus ? scope.row.platformStatus : "--" }}
</span>
</template>
</ms-table-column>
@ -138,7 +143,7 @@ import {
testCaseIssueRelate,
} from "@/api/issue";
import IssueDescriptionTableItem from "@/business/issue/IssueDescriptionTableItem";
import { ISSUE_STATUS_MAP } from "metersphere-frontend/src/utils/table-constants";
import { ISSUE_STATUS_MAP, TAPD_ISSUE_STATUS_MAP} from "metersphere-frontend/src/utils/table-constants";
import MsTablePagination from "metersphere-frontend/src/components/pagination/TablePagination";
import { getPageInfo } from "metersphere-frontend/src/utils/tableUtils";
import { getCurrentProjectID } from "metersphere-frontend/src/utils/token";
@ -177,6 +182,9 @@ export default {
issueStatusMap() {
return ISSUE_STATUS_MAP;
},
tapdIssueStatusMap() {
return TAPD_ISSUE_STATUS_MAP;
},
projectId() {
return getCurrentProjectID();
},