From 7c86d57e1b639149346ca88e00b9fd3fe2b59a72 Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Thu, 20 Oct 2022 18:06:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E9=AB=98=E7=BA=A7=E6=90=9C=E7=B4=A2=E6=A8=A1=E5=9D=97=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E9=97=AE=E9=A2=98=E5=9B=9E=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018289 --user=宋昌昌 【测试跟踪】用例评审-关联功能用例-高级搜索-所属模块和所选项目模块不一致 https://www.tapd.cn/55049933/s/1270029 Co-authored-by: song-cc-rock --- .../frontend/src/components/search/MsTableAdvSearchBar.vue | 6 ------ .../src/components/search/MsTableSearchNodeTree.vue | 6 +----- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/framework/sdk-parent/frontend/src/components/search/MsTableAdvSearchBar.vue b/framework/sdk-parent/frontend/src/components/search/MsTableAdvSearchBar.vue index e9a4a8eef5..4c4abbeeb4 100644 --- a/framework/sdk-parent/frontend/src/components/search/MsTableAdvSearchBar.vue +++ b/framework/sdk-parent/frontend/src/components/search/MsTableAdvSearchBar.vue @@ -181,15 +181,9 @@ export default { this.isInit = true; this.init(); } else { - // 切换项目时模块组件参数替换 - this.setModulesParam(); this.refreshComponentOption(); } }, - setModulesParam() { - let comps = this.optional.components.filter(c => c.key === 'moduleIds'); - comps.forEach(comp => comp.options.params = {"projectId": this.condition.projectId}); - }, refreshComponentOption() { // 当前已存在的搜索子组件中是否有需要进行刷新数据选项的 let comps = this.optional.components.filter(cp => cp.init && cp.init instanceof Function); diff --git a/framework/sdk-parent/frontend/src/components/search/MsTableSearchNodeTree.vue b/framework/sdk-parent/frontend/src/components/search/MsTableSearchNodeTree.vue index f159e1ebdb..c5a35fbb84 100644 --- a/framework/sdk-parent/frontend/src/components/search/MsTableSearchNodeTree.vue +++ b/framework/sdk-parent/frontend/src/components/search/MsTableSearchNodeTree.vue @@ -86,11 +86,7 @@ export default { let options = cloneDeep(this.component.options); let {url, params, type} = options; if (!url) return; - if (params.projectId) { - url += '/' + params.projectId; - } else { - url += '/' + getCurrentProjectID(); - } + url += '/' + getCurrentProjectID(); if (type === "POST") { this.loading = post(url, params || {}).then(response => { this.handleTreeNodes(response.data);