|
|
@ -6,6 +6,7 @@ import {environment} from '../../../../environments/environment'; |
|
|
|
import {NzMessageService} from 'ng-zorro-antd'; |
|
|
|
import {NzMessageService} from 'ng-zorro-antd'; |
|
|
|
import {Router} from '@angular/router'; |
|
|
|
import {Router} from '@angular/router'; |
|
|
|
import {CommonsService} from "../../../services/commons.service"; |
|
|
|
import {CommonsService} from "../../../services/commons.service"; |
|
|
|
|
|
|
|
import {HttpClient , HttpClientJsonpModule} from '@angular/common/http'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
@Component({ |
|
|
@ -51,6 +52,7 @@ export class IndexComponent implements OnInit { |
|
|
|
orderStatisticsByProductTypeAll: any; |
|
|
|
orderStatisticsByProductTypeAll: any; |
|
|
|
constructor( |
|
|
|
constructor( |
|
|
|
private store: LocalStorageService, // 数据缓存
|
|
|
|
private store: LocalStorageService, // 数据缓存
|
|
|
|
|
|
|
|
private http: HttpClient, |
|
|
|
private message: NzMessageService, // 信息提示
|
|
|
|
private message: NzMessageService, // 信息提示
|
|
|
|
private router: Router, |
|
|
|
private router: Router, |
|
|
|
private index: IndexService, |
|
|
|
private index: IndexService, |
|
|
@ -59,6 +61,14 @@ export class IndexComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
ngOnInit(): void { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.http.jsonp('/areas_v3/bound/510000_full.json' , 'features').subscribe(data => { |
|
|
|
|
|
|
|
console.log(data); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.adminInfoObject = this.store.get(ADMIN_INFO_OBJECT); |
|
|
|
this.adminInfoObject = this.store.get(ADMIN_INFO_OBJECT); |
|
|
|
this.roleType = this.store.get(ADMIN_INFO_OBJECT)['secRole'].roleType; |
|
|
|
this.roleType = this.store.get(ADMIN_INFO_OBJECT)['secRole'].roleType; |
|
|
|
if (this.roleType === 1) { |
|
|
|
if (this.roleType === 1) { |
|
|
|