diff --git a/src/app/ui/collection-tools/examinationQuestions.ts b/src/app/ui/collection-tools/examinationQuestions.ts index 17c0ffc..9307fa3 100644 --- a/src/app/ui/collection-tools/examinationQuestions.ts +++ b/src/app/ui/collection-tools/examinationQuestions.ts @@ -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 diff --git a/src/app/ui/collection-tools/uploadDisposalNodes.html b/src/app/ui/collection-tools/uploadDisposalNodes.html index 5b2939a..1a6715e 100644 --- a/src/app/ui/collection-tools/uploadDisposalNodes.html +++ b/src/app/ui/collection-tools/uploadDisposalNodes.html @@ -1,7 +1,8 @@
- +