|
|
|
@ -1381,6 +1381,7 @@ export class HomePageComprehensiveComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
get30daysViolate_YK(type, data) { |
|
|
|
|
let user = JSON.parse(localStorage.getItem("userdata")); |
|
|
|
|
type |
|
|
|
|
? (this.isSpinOfEventWarning_YK = true) |
|
|
|
|
: (this.isSpinOfOilDischarge_YK = true); |
|
|
|
@ -1388,6 +1389,8 @@ export class HomePageComprehensiveComponent implements OnInit {
|
|
|
|
|
IsContainsChildren: true, |
|
|
|
|
ViolationTypes: type ? data : null, |
|
|
|
|
EventSystemNames: type ? null : data, |
|
|
|
|
organizationUnitId: 1, |
|
|
|
|
sinochemUserId: user?.sinochemUserId || user?.SinochemUserId, |
|
|
|
|
}; |
|
|
|
|
this.http |
|
|
|
|
.get("/youku/api/services/app/Home/Get30daysViolate", { |
|
|
|
@ -1474,8 +1477,7 @@ export class HomePageComprehensiveComponent implements OnInit {
|
|
|
|
|
"{total|" + violationTypeAggCount + "}" + "\n\r" + "{active|预警事件}"; |
|
|
|
|
this.warningechartpie_YK.setOption(this.warningechartpieOption_YK); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//卸油30天柱状图
|
|
|
|
|
|
|
|
|
|
oilDischargeEcharts(data) { |
|
|
|
|
let violationTypeAggCount = 0; |
|
|
|
|
//柱状图
|
|
|
|
|