From 2cb7b107cdb5d21ec9b40e391f958d38fc523379 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Sat, 20 Aug 2022 10:26:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apply/apply.component.html | 8 +- .../apply/apply.component.ts | 12 +- .../station-task-apply.component.html | 252 +++++++++++------- .../station-task-apply.component.scss | 137 +++++++++- .../station-task-apply.component.ts | 166 ++++++++++-- src/app/home/task/task.component.html | 4 +- src/assets/images/icon/inform.png | Bin 0 -> 489 bytes src/styles.scss | 41 +++ 8 files changed, 485 insertions(+), 135 deletions(-) create mode 100644 src/assets/images/icon/inform.png 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 - -
-