Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import {Component, OnInit} from '@angular/core';
import {EarlyWarningService} from '../../earlyWarning.service';
import {WorkService} from '../../../work/work.service';
import {CommonService} from '../../../shared/common/common.service';
@Component({
selector: 'smart-warning-rule-look',
templateUrl: './warning-rule-look.component.html',
styles: []
})
export class WarningRuleLookComponent implements OnInit {
isVisible = false;
title;
msgObj;
constructor(private workSer: WorkService, private commonSer: CommonService,
private earlySer: EarlyWarningService) {
}
ngOnInit() {
}
showLookModal(item) {
this.title = item.name;
this.isVisible = true;
this.earlySer.findWarningRule(item.id).subscribe(
(res) => {
if (res.errCode == 10000) {
this.msgObj = res.data;
}
}
);
}
handleCancel() {
this.isVisible = false;
}
}