Skip to content
home.component.ts 1.01 KiB
Newer Older
wangqinghua's avatar
wangqinghua committed
import { Component, OnInit } from '@angular/core';
import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { JhiEventManager } from 'ng-jhipster';
wangqinghua's avatar
wangqinghua committed
import { Account, Principal } from '../shared';
wangqinghua's avatar
wangqinghua committed
import {OverAllService} from '../overAll/overAll.service';
wangqinghua's avatar
wangqinghua committed

@Component({
    selector: 'jhi-home',
    templateUrl: './home.component.html',
    styleUrls: [
        'home.css'
    ]

})
export class HomeComponent implements OnInit {
wangqinghua's avatar
wangqinghua committed

    leftOneChart;
    leftTwoChart;
    rightOneChart;
    rightTwoChart;
wangqinghua's avatar
wangqinghua committed

    constructor(
wangqinghua's avatar
wangqinghua committed
        private overAllSer:OverAllService,
wangqinghua's avatar
wangqinghua committed
        private principal: Principal,
        private eventManager: JhiEventManager
    ) {
    }

    ngOnInit() {
wangqinghua's avatar
wangqinghua committed
        this.findGroupCount();
        this.findHostCount();
    }

    findGroupCount(){
        this.overAllSer.findGroupCount().subscribe(
            (res)=>{

            }
        )
    }

    findHostCount(){
        this.overAllSer.findHostCount().subscribe(
            (res)=>{
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
            }
        )
wangqinghua's avatar
wangqinghua committed
    }

wangqinghua's avatar
wangqinghua committed
    search(){

wangqinghua's avatar
wangqinghua committed
    }
}