diff options
author | guochuyicmri <guochuyi@chinamobile.com> | 2019-05-05 10:10:50 +0800 |
---|---|---|
committer | guochuyicmri <guochuyi@chinamobile.com> | 2019-05-05 10:12:48 +0800 |
commit | d0d32650fb14e4e556155475f21f00d6ab1d3ae0 (patch) | |
tree | afe3a2b06c258ba59f74065e782df3ca3b35ca0f /usecaseui-portal/src/app/management | |
parent | 76cafb66f1897b971736a9c9bdf2e8f0fd5a9579 (diff) |
Added monitor and user management logic
Change-Id: Iedca2ea71126529864baeec067b46050a1e0a67d
Issue-ID: USECASEUI-228
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/management')
-rw-r--r-- | usecaseui-portal/src/app/management/management.component.ts | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/management/management.component.ts b/usecaseui-portal/src/app/management/management.component.ts index 5cc6be7b..4228245a 100644 --- a/usecaseui-portal/src/app/management/management.component.ts +++ b/usecaseui-portal/src/app/management/management.component.ts @@ -15,6 +15,7 @@ */ import { Component, OnInit , HostBinding} from '@angular/core'; import { showHideAnimate, slideToRight } from '../animates'; +import { ManagemencsService } from '../managemencs.service'; @Component({ selector: 'app-management', @@ -27,14 +28,30 @@ import { showHideAnimate, slideToRight } from '../animates'; export class ManagementComponent implements OnInit { @HostBinding('@routerAnimate') routerAnimateState; //Routing animation - constructor() { } + constructor(private managemencs: ManagemencsService) { } ngOnInit() { + this.getAllCustomers(); } show = "show"; hide = "hide"; custerhide = false; + AllCustomersdata = []; + // Get all customers + getAllCustomers() { + this.managemencs.getAllCustomers().subscribe((data) => { + if(data.length > 0){ + this.show = "hide"; + this.hide = "show"; + this.custerhide = false; + }else{ + this.show = "show"; + this.hide = "hide"; + this.custerhide = true; + } + }) + } customershow(){ this.show = "show"; this.hide = "hide"; |