From 5f1b0e75d8f7dd7a718773c340abcc18cd517459 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Fri, 9 Aug 2024 21:01:46 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E6=A0=91=E5=BD=A2=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../selection/TreeDataSelectModal.vue | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/components/selection/TreeDataSelectModal.vue b/src/components/selection/TreeDataSelectModal.vue index 094203b..59a9158 100644 --- a/src/components/selection/TreeDataSelectModal.vue +++ b/src/components/selection/TreeDataSelectModal.vue @@ -333,13 +333,21 @@ export default { } this.topLoading = true const params = {} - params.dictId = this.dictId + if (this.optionsHref !== '/laws/standard/partName/queryFirstList') { + // 不是涉及系统部件 + params.dictId = this.dictId + } // 查询条件的名称 if (this.searchValue) { params[this.searchFieldName] = this.searchValue } // 父节点id - params[this.lazyLoadPidFieldName] = node.dataRef.id + if (this.optionsHref === '/laws/standard/partName/queryFirstList') { + // 是涉及系统部件 + params[this.lazyLoadPidFieldName] = node.dataRef.code + } else { + params[this.lazyLoadPidFieldName] = node.dataRef.id + } await getAction(this.lazyLoadHref, params).then(res => { if (res.success) { node.dataRef[this.replaceFields.children] = res.result.record || res.result @@ -387,7 +395,10 @@ export default { getTreeData () { this.topLoading = true const params = {} - params.dictId = this.dictId + if (this.optionsHref !== '/laws/standard/partName/queryFirstList') { + // 不是涉及系统部件 + params.dictId = this.dictId + } // 查询条件的名称 if (this.searchValue) { params[this.searchFieldName] = this.searchValue