summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/management
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2019-05-05 10:10:50 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2019-05-05 10:12:48 +0800
commitd0d32650fb14e4e556155475f21f00d6ab1d3ae0 (patch)
treeafe3a2b06c258ba59f74065e782df3ca3b35ca0f /usecaseui-portal/src/app/management
parent76cafb66f1897b971736a9c9bdf2e8f0fd5a9579 (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.ts19
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";