diff options
author | 2019-12-04 12:15:41 +0800 | |
---|---|---|
committer | 2019-12-04 12:15:48 +0800 | |
commit | 60011b80da470f37bd1512b3fbd05b8243ed42b6 (patch) | |
tree | 67414d6291d8e48aeae31a61701e7d29d311e2bc /usecaseui-portal/src/app/views/home/home.component.ts | |
parent | da093f61a37cf58c4ed788f58f4e78b3aadc1859 (diff) |
style: change the style of homepage layout
Change-Id: I79fba465a810a263877d796fa83544856c90f9b1
Issue-ID: USECASEUI-352
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/home/home.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/home/home.component.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usecaseui-portal/src/app/views/home/home.component.ts b/usecaseui-portal/src/app/views/home/home.component.ts index a7f312e6..75ebb183 100644 --- a/usecaseui-portal/src/app/views/home/home.component.ts +++ b/usecaseui-portal/src/app/views/home/home.component.ts @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { Component, OnInit, HostBinding, ViewChild, ElementRef } from '@angular/core'; +import { Component, OnInit, HostBinding, ViewChild, ElementRef } from '@angular/core'; import { HomesService } from '../../core/services/homes.service'; import { slideToRight } from '../../shared/utils/animates'; import { Util } from '../../shared/utils/utils'; @@ -31,13 +31,13 @@ export class HomeComponent implements OnInit { @HostBinding('@routerAnimate') routerAnimateState; @ViewChild('seriverChart') seriverChart; @ViewChild('services') services: ElementRef; - resizeMark + resizeMark constructor( private myhttp: HomesService, private router: Router, private Util: Util - ) { + ) { } ngOnInit() { @@ -49,17 +49,17 @@ export class HomeComponent implements OnInit { this.getHomeServiceBarNsData(); this.getHomeServiceBarVnfData(); this.getHomeServiceBarPnfData(); - this.resizeMark = Observable.fromEvent(window,'resize') + this.resizeMark = Observable.fromEvent(window, 'resize') .subscribe((event) => { - this.seriverChart.resize(this.services.nativeElement.offsetHeight,250) + this.seriverChart.resize(this.services.nativeElement.offsetHeight, 250) }) } - - ngAfterViewInit(){ - this.seriverChart.resize(this.services.nativeElement.offsetHeight,250) + + ngAfterViewInit() { + this.seriverChart.resize(this.services.nativeElement.offsetHeight, 250) } - ngOnDestroy(){ + ngOnDestroy() { this.resizeMark.unsubscribe() } @@ -540,7 +540,7 @@ export class HomeComponent implements OnInit { this.router.navigateByUrl('/services/services-list'); } goback_onboard() { - this.router.navigateByUrl('/services/onboard-vnf-vm'); + this.router.navigateByUrl('/onboard-vnf-vm'); } } |