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..4b73be2 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,23 @@ 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; 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) } destroyModal(): void { @@ -77,6 +82,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..0d25615 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,161 @@
- -
-
- - 任务申请 - - - - 任务申请已开始!剩余时间 3天13小时 / 生成周计划已开始!剩余时间 23:54:03 - -
-