Skip to content

Commit

Permalink
fix(*): 1. 修复级联查询条件问题:当选择了一级条件再选择二级时会弹出‘请选择[一级]’的提示,导致二级以下的条件选择不了
Browse files Browse the repository at this point in the history
  • Loading branch information
shareloke committed Jul 25, 2024
1 parent a7b70b7 commit 0fe9bfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class ReferenceComponent implements OnInit {
let depend = field.eruptFieldJson.edit.referenceTreeType.dependField;
let dependVal = null;
if (depend) {
const dependField: EruptFieldModel = this.eruptModel.eruptFieldModelMap.get(depend);
const dependField: EruptFieldModel = this.eruptModel.eruptFieldModels.find(item=> item.fieldName == depend);
if (dependField.eruptFieldJson.edit.$value) {
dependVal = dependField.eruptFieldJson.edit.$value;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<nz-tree #tree
nzDraggable
class="tree-container"
[nzVirtualHeight]="list.length > 50 ? '450px' : null"
[nzVirtualHeight]="list?.length > 50 ? '450px' : null"
(nzClick)="nodeClickEvent($event)"
[nzShowLine]="true"
[nzHideUnMatched]="true"
Expand Down

0 comments on commit 0fe9bfd

Please sign in to comment.