mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 12:39:12 +08:00
fix(测试跟踪): Tapd状态列数据显示为英文
--bug=1023335 --user=李玉号 【测试跟踪】功能用例-编辑-关联现有缺陷列表-集成Tapd-状态列数据显示为英文 https://www.tapd.cn/55049933/s/1338458
This commit is contained in:
parent
eea9216a33
commit
b6ee52cb4f
@ -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) : [];
|
||||
},
|
||||
|
@ -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();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user