fix(测试跟踪): Tapd状态列数据显示为英文
--bug=1023335 --user=李玉号 【测试跟踪】功能用例-编辑-关联现有缺陷列表-集成Tapd-状态列数据显示为英文 https://www.tapd.cn/55049933/s/1338458
This commit is contained in:
parent
f237cf6068
commit
340af48fb3
|
@ -83,7 +83,12 @@
|
||||||
prop="platformStatus"
|
prop="platformStatus"
|
||||||
>
|
>
|
||||||
<template v-slot="scope">
|
<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 : "--" }}
|
{{ scope.row.platformStatus ? scope.row.platformStatus : "--" }}
|
||||||
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</ms-table-column>
|
</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 HomePagination from "@/business/home/components/pagination/HomePagination";
|
||||||
import MsTableColumn from "metersphere-frontend/src/components/table/MsTableColumn";
|
import MsTableColumn from "metersphere-frontend/src/components/table/MsTableColumn";
|
||||||
import IssueDescriptionTableItem from "@/business/issue/IssueDescriptionTableItem";
|
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 IssueRelateList from "./CaseIssueRelateList";
|
||||||
import {
|
import {
|
||||||
closeIssue,
|
closeIssue,
|
||||||
|
@ -240,6 +245,9 @@ export default {
|
||||||
issueStatusMap() {
|
issueStatusMap() {
|
||||||
return ISSUE_STATUS_MAP;
|
return ISSUE_STATUS_MAP;
|
||||||
},
|
},
|
||||||
|
tapdIssueStatusMap() {
|
||||||
|
return TAPD_ISSUE_STATUS_MAP;
|
||||||
|
},
|
||||||
notInIds() {
|
notInIds() {
|
||||||
return this.page.data ? this.page.data.map((i) => i.id) : [];
|
return this.page.data ? this.page.data.map((i) => i.id) : [];
|
||||||
},
|
},
|
||||||
|
|
|
@ -66,7 +66,12 @@
|
||||||
prop="platformStatus"
|
prop="platformStatus"
|
||||||
>
|
>
|
||||||
<template v-slot="scope">
|
<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>
|
</template>
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
|
|
||||||
|
@ -138,7 +143,7 @@ import {
|
||||||
testCaseIssueRelate,
|
testCaseIssueRelate,
|
||||||
} from "@/api/issue";
|
} from "@/api/issue";
|
||||||
import IssueDescriptionTableItem from "@/business/issue/IssueDescriptionTableItem";
|
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 MsTablePagination from "metersphere-frontend/src/components/pagination/TablePagination";
|
||||||
import { getPageInfo } from "metersphere-frontend/src/utils/tableUtils";
|
import { getPageInfo } from "metersphere-frontend/src/utils/tableUtils";
|
||||||
import { getCurrentProjectID } from "metersphere-frontend/src/utils/token";
|
import { getCurrentProjectID } from "metersphere-frontend/src/utils/token";
|
||||||
|
@ -177,6 +182,9 @@ export default {
|
||||||
issueStatusMap() {
|
issueStatusMap() {
|
||||||
return ISSUE_STATUS_MAP;
|
return ISSUE_STATUS_MAP;
|
||||||
},
|
},
|
||||||
|
tapdIssueStatusMap() {
|
||||||
|
return TAPD_ISSUE_STATUS_MAP;
|
||||||
|
},
|
||||||
projectId() {
|
projectId() {
|
||||||
return getCurrentProjectID();
|
return getCurrentProjectID();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue