[update] 树形弹框
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user