Browse Source

[完善]完善选择单位框

非煤矿山灾害智能感知和预警系统
邵佳豪 3 years ago
parent
commit
ad44b41aaa
  1. 4
      src/app/home/task/station-task-apply/apply/apply.component.ts
  2. 4
      src/app/home/task/zhi-indicators/zhi-indicators.component.ts

4
src/app/home/task/station-task-apply/apply/apply.component.ts

@ -187,10 +187,12 @@ export class ApplyComponent implements OnInit {
} }
onExpandChange(e: NzFormatEmitEvent): void { onExpandChange(e: NzFormatEmitEvent): void {
const node = e.node; const node = e.node;
if (node && node.getChildren().length === 0 && node.isExpanded) { if (node && node.getChildren().length === 0 && node.isExpanded && node.origin.level == 'squadron') {
this.loadNode(node.origin.id).then(data => { this.loadNode(node.origin.id).then(data => {
node.addChildren(data); node.addChildren(data);
}); });
} else {
node.isLoading = false
} }
} }

4
src/app/home/task/zhi-indicators/zhi-indicators.component.ts

@ -643,10 +643,12 @@ export class ZhiIndicatorsComponent implements OnInit {
} }
onExpandChange(e: NzFormatEmitEvent): void { onExpandChange(e: NzFormatEmitEvent): void {
const node = e.node; const node = e.node;
if (node && node.getChildren().length === 0 && node.isExpanded) { if (node && node.getChildren().length === 0 && node.isExpanded && node.origin.level == 'squadron') {
this.loadNode(node.origin.id).then(data => { this.loadNode(node.origin.id).then(data => {
node.addChildren(data); node.addChildren(data);
}); });
} else {
node.isLoading = false
} }
} }

Loading…
Cancel
Save