diff --git a/src/app/home/home.module.ts b/src/app/home/home.module.ts index d38b1ae..fcdf93a 100644 --- a/src/app/home/home.module.ts +++ b/src/app/home/home.module.ts @@ -59,6 +59,7 @@ import { ChangePasswordComponent } from './change-password/change-password.compo import { NzUploadModule } from 'ng-zorro-antd/upload'; import { NzCardModule } from 'ng-zorro-antd/card'; import { PlanAdjustmentComponent } from './task/da-oneself-plan/plan-adjustment/plan-adjustment.component'; +import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; @NgModule({ declarations: [ NavComponent, @@ -123,7 +124,8 @@ import { PlanAdjustmentComponent } from './task/da-oneself-plan/plan-adjustment/ NzDatePickerModule, NzSpinModule, NzCardModule, - NzUploadModule + NzUploadModule, + NzToolTipModule ], entryComponents: [AddroleComponent, EditroleComponent, AdduserComponent, EdituserComponent, AddorComponent, EditorComponent, ApplyComponent, ApplyLookComponent, LookTaskComponent, AllotPersonComponent] }) diff --git a/src/app/home/nav/nav.component.ts b/src/app/home/nav/nav.component.ts index ccf936b..a812a6f 100644 --- a/src/app/home/nav/nav.component.ts +++ b/src/app/home/nav/nav.component.ts @@ -17,7 +17,7 @@ export class NavComponent implements OnInit { ngOnInit(): void { //调用服务中的function刷新token this.token.startUp() - this.user=JSON.parse(sessionStorage.getItem('userData')).organizationName + this.user=JSON.parse(sessionStorage.getItem('userData')).name } signOut() { this.router.navigate(['/login']) diff --git a/src/app/home/task/station-task-apply/apply-look/apply-look.component.html b/src/app/home/task/station-task-apply/apply-look/apply-look.component.html index 690b770..25347e1 100644 --- a/src/app/home/task/station-task-apply/apply-look/apply-look.component.html +++ b/src/app/home/task/station-task-apply/apply-look/apply-look.component.html @@ -2,5 +2,13 @@

任务名称: {{data.taskName}}

单位名称: {{data.company.companyName}}

-

协助机构: {{data.assitantOrganization.name}}

+

协助人员: + + + + {{i.name}} + +

\ No newline at end of file diff --git a/src/app/home/task/station-task-apply/apply/apply.component.html b/src/app/home/task/station-task-apply/apply/apply.component.html index 63b53a3..d621d3a 100644 --- a/src/app/home/task/station-task-apply/apply/apply.component.html +++ b/src/app/home/task/station-task-apply/apply/apply.component.html @@ -3,7 +3,9 @@ 任务名称 - + + + @@ -22,8 +24,8 @@ 协助机构 + formControlName="organization" [nzNodes]="newTree" nzPlaceHolder="请选择协助机构" + [nzExpandedIcon]="multiExpandedIconTpl" nzCheckable [nzCheckStrictly]="true"> diff --git a/src/app/home/task/station-task-apply/apply/apply.component.ts b/src/app/home/task/station-task-apply/apply/apply.component.ts index 42dafa8..c3c5730 100644 --- a/src/app/home/task/station-task-apply/apply/apply.component.ts +++ b/src/app/home/task/station-task-apply/apply/apply.component.ts @@ -11,18 +11,26 @@ import { catchError, map } from 'rxjs/operators'; styleUrls: ['./apply.component.scss'] }) export class ApplyComponent implements OnInit { - @Input() title?: string; + @Input() title?: any; @Input() nodes?: any; + @Input() supervisorList?: any; + @Input() organizationList?: any; + @Input() users?: any; + validateForm!: FormGroup; constructor(private modal: NzModalRef, private fb: FormBuilder, private http: HttpClient, private toTree: TreeService) { } + + newTree ngOnInit(): void { this.validateForm = this.fb.group({ - taskname: [true, [Validators.required]], + taskname: [null, [Validators.required]], unitname: [null, [Validators.required]], organization: [null, [Validators.required]] }); - + // let arr = [...this.supervisorList, ...this.organizationList] + // this.newTree = this.toTree.toTree(arr) + this.newTree = this.nodes } destroyModal(): void { @@ -77,6 +85,5 @@ export class ApplyComponent implements OnInit { }) }) } - } diff --git a/src/app/home/task/station-task-apply/station-task-apply.component.html b/src/app/home/task/station-task-apply/station-task-apply.component.html index 5d7732f..450c929 100644 --- a/src/app/home/task/station-task-apply/station-task-apply.component.html +++ b/src/app/home/task/station-task-apply/station-task-apply.component.html @@ -1,111 +1,181 @@
- -
-
- - 任务申请 - - - - 任务申请已开始!剩余时间 3天13小时 / 生成周计划已开始!剩余时间 23:54:03 - -
-