|
|
|
@ -392,9 +392,15 @@ export class uploadDisposalNodes {
|
|
|
|
|
) {} |
|
|
|
|
@ViewChild("nzTreeComponent", { static: false }) |
|
|
|
|
nzTreeComponent!: NzTreeComponent; |
|
|
|
|
|
|
|
|
|
defaultCheckedKeys = []; |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
this.treeData = [...this.data.treeData]; |
|
|
|
|
let checkedArr = []; |
|
|
|
|
// console.log(666, JSON.parse(sessionStorage.getItem("examNodeList")));
|
|
|
|
|
JSON.parse(sessionStorage.getItem("examNodeList")).forEach((element) => { |
|
|
|
|
checkedArr.push(element.id); |
|
|
|
|
}); |
|
|
|
|
this.defaultCheckedKeys = [...checkedArr]; |
|
|
|
|
} |
|
|
|
|
treeData: any = []; //tree
|
|
|
|
|
|
|
|
|
|