[update] 树形弹框

This commit is contained in:
lideqin
2024-08-09 21:01:46 +08:00
parent d9ab7da9d9
commit 5f1b0e75d8
@@ -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