From d2ae28445b09dda5789551f789fdb30d6c792dbb Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Fri, 9 Aug 2024 19:30:56 +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 --- src/components/selection/TreeDataSelectModal.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/selection/TreeDataSelectModal.vue b/src/components/selection/TreeDataSelectModal.vue index 090fd1b..22e6c42 100644 --- a/src/components/selection/TreeDataSelectModal.vue +++ b/src/components/selection/TreeDataSelectModal.vue @@ -146,7 +146,7 @@ export default { this.replaceFields = { children: 'childPartNameList', title: 'name', key: 'code' } this.lazyLoadHref = '/laws/standard/partName/getChild' this.searchFieldName = 'nodeName' - this.lazyLoadPidFieldName = 'dictItemId' + this.lazyLoadPidFieldName = 'parentCode' } else { // 标签库 this.replaceFields = { children: 'childrenList', title: 'itemText', key: 'itemValue' } this.lazyLoadHref = '/laws/dictTree/getChild' @@ -338,7 +338,7 @@ export default { params[this.searchFieldName] = this.searchValue } // 父节点id - params.dictItemId = node.dataRef.id + 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,6 +387,10 @@ export default { this.topLoading = true const params = {} params.dictId = this.dictId + // 查询条件的名称 + if (this.searchValue) { + params[this.searchFieldName] = this.searchValue + } getAction(this.optionsHref, params).then(res => { if (res.success) { this.treeData = res.result.records || res.result