| | |
| | | export class RealTimeComponent implements OnInit {
|
| | |
|
| | | public monitorPointOptions = [];
|
| | | public avgs = {};
|
| | | public avgs = {e1: '', e2: '', e3: '', e13: ''};
|
| | | public levels = [35, 115, 200];
|
| | | public devices = [];
|
| | | constructor(
|
| | |
| | | }
|
| | |
|
| | | monitorPointChange(id) {
|
| | | this.avgs = {};
|
| | | this.avgs = {e1: '', e2: '', e3: '', e13: ''};
|
| | | this.devices = [];
|
| | | zip(
|
| | | this.http.get(environment.SERVER_BASH_URL + 'demo/avg', {params: {monitorPointId: id}}),
|
| | |
| | | ).subscribe(
|
| | | ([avgs, devices]) => {
|
| | | if (!!avgs) {
|
| | | this.avgs = avgs;
|
| | | this.avgs = <any>avgs;
|
| | | }
|
| | | if (!!devices['data']) {
|
| | | this.devices = devices['data'];
|