From 961c5ca7a667f4a729d88aa05f19a5096bc2f262 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 22 Jun 2022 17:46:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1=E5=85=B3=E8=81=94=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E9=80=89=E4=B8=AD=E7=89=88=E6=9C=AC=E5=90=8E,?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E9=A1=B9=E7=9B=AE=E6=95=B0=E6=8D=AE=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1014308 --user=陈建星 【测试跟踪】用例评审关联用例选中版本后,切换项目数据没有更新 https://www.tapd.cn/55049933/s/1188747 --- .../review/view/components/TestReviewRelevance.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/src/business/components/track/review/view/components/TestReviewRelevance.vue b/frontend/src/business/components/track/review/view/components/TestReviewRelevance.vue index 17b5172a52..a5c02eacd3 100644 --- a/frontend/src/business/components/track/review/view/components/TestReviewRelevance.vue +++ b/frontend/src/business/components/track/review/view/components/TestReviewRelevance.vue @@ -130,6 +130,7 @@ import MsTablePagination from "@/business/components/common/pagination/TablePagi import MsDialogHeader from "@/business/components/common/components/MsDialogHeader"; import MsTable from "@/business/components/common/components/table/MsTable"; import TableSelectCountBar from "@/business/components/api/automation/scenario/api/TableSelectCountBar"; +import {getVersionFilters} from "@/network/project"; const requireComponent = require.context('@/business/components/xpack/', true, /\.vue$/); const VersionSelect = requireComponent.keys().length > 0 ? requireComponent("./version/VersionSelect.vue") : {}; @@ -215,7 +216,9 @@ export default { }, projectId() { this.condition.projectId = this.projectId; + this.condition.versionId = null; this.getProjectNode(); + this.getVersionOptions(); } }, mounted() { @@ -366,13 +369,9 @@ export default { this.selectNodeIds = []; }, getVersionOptions() { - if (hasLicense()) { - this.$get('/project/version/get-project-versions/' + getCurrentProjectID(), response => { - this.versionFilters = response.data.map(u => { - return {text: u.name, value: u.id}; - }); - }); - } + getVersionFilters(this.projectId, (data) => { + this.versionFilters = data; + }); }, changeVersion(version) { this.condition.versionId = version || null;