From b045c163042fe3ef3549efaadc662760f23c6207 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 15 Jun 2021 14:45:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=89=8D=E7=AB=AF=E4=BC=A0?= =?UTF-8?q?=E5=85=A5=E5=BD=93=E5=89=8D=E5=B7=A5=E4=BD=9C=E7=A9=BA=E9=97=B4?= =?UTF-8?q?ID=E8=BF=9B=E8=A1=8C=E6=95=B0=E6=8D=AE=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/plan/view/comonents/base/TestCaseRelevanceBase.vue | 4 ++-- .../track/review/view/components/TestReviewRelevance.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/business/components/track/plan/view/comonents/base/TestCaseRelevanceBase.vue b/frontend/src/business/components/track/plan/view/comonents/base/TestCaseRelevanceBase.vue index 7368512643..a048ea05db 100644 --- a/frontend/src/business/components/track/plan/view/comonents/base/TestCaseRelevanceBase.vue +++ b/frontend/src/business/components/track/plan/view/comonents/base/TestCaseRelevanceBase.vue @@ -34,7 +34,7 @@ import MsDialogFooter from '../../../../../common/components/MsDialogFooter' import SelectMenu from "../../../../common/SelectMenu"; import RelevanceDialog from "./RelevanceDialog"; - import {getCurrentProjectID, getCurrentUserId} from "@/common/js/utils"; + import {getCurrentProjectID, getCurrentUserId, getCurrentWorkspaceId} from "@/common/js/utils"; export default { name: "TestCaseRelevanceBase", @@ -91,7 +91,7 @@ }, getProject() { - this.result = this.$post("/project/list/related", {userId: getCurrentUserId()}, res => { + this.result = this.$post("/project/list/related", {userId: getCurrentUserId(), workspaceId: getCurrentWorkspaceId()}, res => { let data = res.data; if (data) { const index = data.findIndex(d => d.id === getCurrentProjectID()); 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 751175041b..e02de4196d 100644 --- a/frontend/src/business/components/track/review/view/components/TestReviewRelevance.vue +++ b/frontend/src/business/components/track/review/view/components/TestReviewRelevance.vue @@ -108,7 +108,7 @@ import ReviewStatus from "@/business/components/track/case/components/ReviewStat import elTableInfiniteScroll from 'el-table-infinite-scroll'; import SelectMenu from "../../../common/SelectMenu"; import {_filter} from "@/common/js/tableUtils"; -import {getCurrentProjectID, getCurrentUserId} from "@/common/js/utils"; +import {getCurrentProjectID, getCurrentUserId, getCurrentWorkspaceId} from "@/common/js/utils"; export default { @@ -313,7 +313,7 @@ export default { }, getProject() { if (this.reviewId) { - this.$post("/project/list/related", {userId: getCurrentUserId()}, res => { + this.$post("/project/list/related", {userId: getCurrentUserId(), workspaceId: getCurrentWorkspaceId()}, res => { let data = res.data; if (data) { this.projects = data;