diff --git a/src/app/examiner/create-test-score/create-test-score.component.html b/src/app/examiner/create-test-score/create-test-score.component.html index e694bb2..2b26b10 100644 --- a/src/app/examiner/create-test-score/create-test-score.component.html +++ b/src/app/examiner/create-test-score/create-test-score.component.html @@ -66,7 +66,7 @@ [nzData]="unit.basicInfoNodes" nzCheckable nzMultiple - [nzCheckedKeys]="defaultCheckedKeys" + [nzCheckedKeys]="unit.basicInfoNodesKey" [nzExpandedKeys]="defaultExpandedKeys" [nzSelectedKeys]="defaultSelectedKeys" (nzClick)="nzEvent($event,key)" @@ -109,7 +109,7 @@ [nzData]="unit.aroundNodes" nzCheckable nzMultiple - [nzCheckedKeys]="defaultCheckedKeys" + [nzCheckedKeys]="unit.aroundNodesKey" [nzExpandedKeys]="defaultExpandedKeys" [nzSelectedKeys]="defaultSelectedKeys" (nzClick)="nzEvent($event,key)" @@ -152,7 +152,7 @@ [nzData]="unit.keySiteNodes" nzCheckable nzMultiple - [nzCheckedKeys]="defaultCheckedKeys" + [nzCheckedKeys]="unit.keySiteNodesKey" [nzExpandedKeys]="defaultExpandedKeys" [nzSelectedKeys]="defaultSelectedKeys" (nzClick)="nzEvent($event,key)" @@ -195,7 +195,7 @@ [nzData]="unit.funDivNodes" nzCheckable nzMultiple - [nzCheckedKeys]="defaultCheckedKeys" + [nzCheckedKeys]="unit.funDivNodesKey" [nzExpandedKeys]="defaultExpandedKeys" [nzSelectedKeys]="defaultSelectedKeys" (nzClick)="nzEvent($event,key)" @@ -238,7 +238,7 @@ [nzData]="unit.fireFacNodes" nzCheckable nzMultiple - [nzCheckedKeys]="defaultCheckedKeys" + [nzCheckedKeys]="unit.fireFacNodesKey" [nzExpandedKeys]="defaultExpandedKeys" [nzSelectedKeys]="defaultSelectedKeys" (nzClick)="nzEvent($event,key)" @@ -263,11 +263,11 @@ -
预案名称 | diff --git a/src/app/examiner/create-test-score/create-test-score.component.ts b/src/app/examiner/create-test-score/create-test-score.component.ts index 54b1ef1..547eef2 100644 --- a/src/app/examiner/create-test-score/create-test-score.component.ts +++ b/src/app/examiner/create-test-score/create-test-score.component.ts @@ -27,42 +27,64 @@ export class CreateTestScoreComponent implements OnInit { }, 0); } - async ngOnInit(): Promise{{item.status=="2"?"已结束":item.status=="0"?"未开考":"开考中"}} | - 编辑 + 编辑 详情 删除 | diff --git a/src/app/examiner/examiner-index/examiner-index.component.ts b/src/app/examiner/examiner-index/examiner-index.component.ts index c9e0d3b..fd0ca95 100644 --- a/src/app/examiner/examiner-index/examiner-index.component.ts +++ b/src/app/examiner/examiner-index/examiner-index.component.ts @@ -34,11 +34,18 @@ export class ExaminerIndexComponent implements OnInit { this.getunitdata(); this.getOrganizations(); this.getUnittype(); - this.getAlltabledate() - setInterval(()=>this.getAlltabledate(),60000) - //this.getHelp() + this.getAlltabledate(); + this.getProfiles() + } + //获取登录账号的个人资料 + Profiles:any + getProfiles(){ + this.http.get('/api/ExamAccounts/Profiles').subscribe((data:any) => { + console.log(data) + this.Profiles = data + sessionStorage.setItem('creatorData',JSON.stringify(data)) + }) } - displayedColumns: string[] = ['name','startTime','endTime', 'examzhong','scc']; tabledataSource:any accound @@ -115,6 +122,14 @@ export class ExaminerIndexComponent implements OnInit { ) } + + + //编辑试卷 + editPaper(item){ + // console.log(item) + sessionStorage.setItem("paperId",item.id) + this.router.navigateByUrl("/examiner/create-test-score?pattern=edit") + } //获得所有组织机构 getOrganizations(){ this.http.get('/api/Organizations').subscribe( @@ -135,25 +150,25 @@ export class ExaminerIndexComponent implements OnInit { ) } - //获得查询支队信息 - help(){ - let paramsdata:any = { - PageNumber: this.PageNumber || '1', - PageSize: this.pageSizeOptions[0], - Sort: null, - SortType: null, + //获得查询支队信息 + help(){ + let paramsdata:any = { + PageNumber: this.PageNumber || '1', + PageSize: this.pageSizeOptions[0], + Sort: null, + SortType: null, + } + //console.log(paramsdata) + this.http.get("/api/Papers",{params:paramsdata}).subscribe((data:any)=>{ + this.tabledataSource=data + console.log(this.tabledataSource) + }) + } + //分页事件 + chagePage(e){ + this.PageNumber = e.pageIndex+1 + this.getAlltabledate() } - //console.log(paramsdata) - this.http.get("/api/Papers",{params:paramsdata}).subscribe((data:any)=>{ - this.tabledataSource=data - console.log(this.tabledataSource) - }) - } - //分页事件 - chagePage(e){ - this.PageNumber = e.pageIndex+1 - this.getAlltabledate() - } //获取表格信息 getAlltabledate(){ let paramsdata:any = {