From 6efb2a0076a544b5714bccba214d81904264540d Mon Sep 17 00:00:00 2001
From: xufenglei <xufenglei>
Date: Tue, 12 Jun 2018 08:49:31 +0800
Subject: [PATCH] 报表展示 增加镇村选项
---
src/app/routes/dashboard/v1/v1.component.ts | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/app/routes/dashboard/v1/v1.component.ts b/src/app/routes/dashboard/v1/v1.component.ts
index eb0bf8e..860fbe8 100644
--- a/src/app/routes/dashboard/v1/v1.component.ts
+++ b/src/app/routes/dashboard/v1/v1.component.ts
@@ -1,3 +1,4 @@
+import { LoginService } from '@business/services/http/login.service';
import { NzMessageService } from 'ng-zorro-antd';
import { Component, OnInit } from '@angular/core';
import { _HttpClient } from '@delon/theme';
@@ -8,7 +9,8 @@
})
export class DashboardV1Component implements OnInit {
- constructor(private http: _HttpClient, public msg: NzMessageService) { }
+ constructor(private http: _HttpClient, public msg: NzMessageService,
+ public loginService: LoginService) { }
todoData: any[] = [
{ completed: true, avatar: '1', name: '���������', content: `������������������������������������������` },
@@ -26,10 +28,14 @@
offlineChartData: any[] = [];
ngOnInit() {
- this.http.get('/chart').subscribe((res: any) => {
- this.webSite = res.visitData.slice(0, 10);
- this.salesData = res.salesData;
- this.offlineChartData = res.offlineChartData;
- });
+ // ������������������,������������������������
+ setTimeout(() => {
+ this.loginService.loadUserContext();
+ }, 1);
+ // this.http.get('/chart').subscribe((res: any) => {
+ // this.webSite = res.visitData.slice(0, 10);
+ // this.salesData = res.salesData;
+ // this.offlineChartData = res.offlineChartData;
+ // });
}
}
--
Gitblit v1.8.0