diff --git a/test-track/frontend/src/business/case/components/case/CaseIssueRelateList.vue b/test-track/frontend/src/business/case/components/case/CaseIssueRelateList.vue index 562fff5f29..645e1ff989 100644 --- a/test-track/frontend/src/business/case/components/case/CaseIssueRelateList.vue +++ b/test-track/frontend/src/business/case/components/case/CaseIssueRelateList.vue @@ -132,6 +132,7 @@ import HomePagination from "@/business/home/components/pagination/HomePagination import MsTable from "metersphere-frontend/src/components/new-ui/MsTable"; import MsTableColumn from "metersphere-frontend/src/components/table/MsTableColumn"; import { + getPlatformOption, getRelateIssues, isThirdPartEnable, testCaseIssueRelate, @@ -145,6 +146,7 @@ import { TEST_CASE_RELEVANCE_ISSUE_LIST } from "@/business/utils/sdk-utils"; import MsSearch from "metersphere-frontend/src/components/search/MsSearch"; import MsDrawerComponent from "../common/MsDrawerComponent"; import MsTableAdvSearch from "metersphere-frontend/src/components/new-ui/MsTableAdvSearch"; +import {setIssuePlatformComponent} from "@/business/issue/issue"; export default { name: "CaseIssueRelateList", @@ -202,6 +204,10 @@ export default { this.getIssues(); this.visible = true; this.$refs.relevanceDialog.open(); + getPlatformOption() + .then((r) => { + setIssuePlatformComponent(r.data, this.page.condition.components); + }); }, getIssues() { this.page.condition.projectId = this.projectId; diff --git a/test-track/frontend/src/business/issue/IssueList.vue b/test-track/frontend/src/business/issue/IssueList.vue index 23fdf1384b..0c04d2eee3 100644 --- a/test-track/frontend/src/business/issue/IssueList.vue +++ b/test-track/frontend/src/business/issue/IssueList.vue @@ -185,6 +185,7 @@ import { import MsMarkDownText from "metersphere-frontend/src/components/MsMarkDownText"; import {hasLicense} from "metersphere-frontend/src/utils/permission"; import MsReviewTableItem from "@/business/issue/MsReviewTableItem"; +import {setIssuePlatformComponent} from "@/business/issue/issue"; export default { name: "IssueList", @@ -311,6 +312,7 @@ export default { getPlatformOption() .then((r) => { this.platformOptions = r.data; + setIssuePlatformComponent(this.platformOptions, this.page.condition.components); }); this.hasLicense = hasLicense(); diff --git a/test-track/frontend/src/business/issue/issue.js b/test-track/frontend/src/business/issue/issue.js new file mode 100644 index 0000000000..94c509739c --- /dev/null +++ b/test-track/frontend/src/business/issue/issue.js @@ -0,0 +1,14 @@ +export function setIssuePlatformComponent(platformOptions, components) { + components.forEach(item => { + if (item.key === 'platform') { + item.options = [ + {label: "Tapd", value: "Tapd"}, + {label: "Local", value: "Local"}, + {label: "AzureDevops", value: "Azure Devops"} + ]; + platformOptions.forEach(option => { + item.options.push({label: option.text, value: option.value}); + }); + } + }); +}