From 9a3f913e105638e6618fcd3f2bdcf98ac30ac8fd Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Thu, 11 Mar 2021 11:07:37 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=20=E5=AE=8C=E6=95=B4?= =?UTF-8?q?=E5=BA=A6=E5=BE=97=E5=88=86=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edit-plan-info/edit-plan-info.component.html | 15 +++++++++++---- .../edit-plan-info/edit-plan-info.component.scss | 13 +++++++++++++ .../edit-plan-info/edit-plan-info.component.ts | 5 +++-- .../view-unit-details.component.html | 12 +++++++++++- .../view-unit-details.component.scss | 13 +++++++++++++ .../view-unit-details.component.ts | 10 ++++------ 6 files changed, 55 insertions(+), 13 deletions(-) diff --git a/src/app/key-unit/edit-plan-info/edit-plan-info.component.html b/src/app/key-unit/edit-plan-info/edit-plan-info.component.html index c9ae164..060d83c 100644 --- a/src/app/key-unit/edit-plan-info/edit-plan-info.component.html +++ b/src/app/key-unit/edit-plan-info/edit-plan-info.component.html @@ -1,7 +1,14 @@ - - - - +
+ + + + + + + + +
+ diff --git a/src/app/key-unit/edit-plan-info/edit-plan-info.component.scss b/src/app/key-unit/edit-plan-info/edit-plan-info.component.scss index 740a835..ac24283 100644 --- a/src/app/key-unit/edit-plan-info/edit-plan-info.component.scss +++ b/src/app/key-unit/edit-plan-info/edit-plan-info.component.scss @@ -1,3 +1,16 @@ .mat-tab-body-wrapper{ height: 100%!important; +} +.fixedPrompt { + position: relative; + width: 100%; + height: 0px; + .scorePrompt { + width: 100%; + text-align: center; + position: absolute; + top: 35px; + font-size: 16px; + z-index: 111; + } } \ No newline at end of file diff --git a/src/app/key-unit/edit-plan-info/edit-plan-info.component.ts b/src/app/key-unit/edit-plan-info/edit-plan-info.component.ts index 63466e0..554de7e 100644 --- a/src/app/key-unit/edit-plan-info/edit-plan-info.component.ts +++ b/src/app/key-unit/edit-plan-info/edit-plan-info.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit } from '@angular/core'; +import { FormControl } from '@angular/forms'; @Component({ selector: 'app-edit-plan-info', @@ -9,7 +10,7 @@ export class EditPlanInfoComponent implements OnInit { constructor() { } - ngOnInit(): void { - } + ngOnInit(): void { } + selected = new FormControl(0); } diff --git a/src/app/key-unit/view-unit-details/view-unit-details.component.html b/src/app/key-unit/view-unit-details/view-unit-details.component.html index d544d46..85803af 100644 --- a/src/app/key-unit/view-unit-details/view-unit-details.component.html +++ b/src/app/key-unit/view-unit-details/view-unit-details.component.html @@ -1,4 +1,14 @@ - +
+ + + + + + + + +
+ diff --git a/src/app/key-unit/view-unit-details/view-unit-details.component.scss b/src/app/key-unit/view-unit-details/view-unit-details.component.scss index 740a835..ac24283 100644 --- a/src/app/key-unit/view-unit-details/view-unit-details.component.scss +++ b/src/app/key-unit/view-unit-details/view-unit-details.component.scss @@ -1,3 +1,16 @@ .mat-tab-body-wrapper{ height: 100%!important; +} +.fixedPrompt { + position: relative; + width: 100%; + height: 0px; + .scorePrompt { + width: 100%; + text-align: center; + position: absolute; + top: 35px; + font-size: 16px; + z-index: 111; + } } \ No newline at end of file diff --git a/src/app/key-unit/view-unit-details/view-unit-details.component.ts b/src/app/key-unit/view-unit-details/view-unit-details.component.ts index 1a874db..76804c3 100644 --- a/src/app/key-unit/view-unit-details/view-unit-details.component.ts +++ b/src/app/key-unit/view-unit-details/view-unit-details.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit } from '@angular/core'; +import { FormControl } from '@angular/forms'; @Component({ selector: 'app-view-unit-details', @@ -9,10 +10,7 @@ export class ViewUnitDetailsComponent implements OnInit { constructor() { } - ngOnInit(): void { - } - - selectedtab(e){ - sessionStorage.setItem("tabsindex",e.index) - } + ngOnInit(): void { } + selected = new FormControl(0); + }