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);