import { Component, OnInit } from '@angular/core';
|
import { NzMessageService } from 'ng-zorro-antd';
|
import { _HttpClient } from '@delon/theme';
|
import { DeviceControllerService } from '../device-controller/device-controller.service';
|
|
@Component({
|
selector: 'app-device-data',
|
templateUrl: './device-data.component.html'
|
})
|
export class DeviceDataComponent implements OnInit {
|
data = {
|
advancedOperation1: [],
|
advancedOperation2: [],
|
advancedOperation3: []
|
};
|
public get deviceData() {
|
return this.deviceControllerService.data;
|
}
|
constructor(
|
public msg: NzMessageService,
|
private http: _HttpClient,
|
private deviceControllerService:DeviceControllerService,
|
) {}
|
/**
|
* toDeviceStatus
|
*/
|
public toDeviceStatus() {
|
this.deviceControllerService.incumbent = 'status';
|
}
|
ngOnInit() {
|
this.http.get('/profile/advanced').subscribe((res: any) => this.data = res);
|
}
|
}
|