Browse Source

[完善]综合统计页面

master
邵佳豪 5 months ago
parent
commit
9df04beb8b
  1. 4
      src/app/pages/home-page-comprehensive/home-page-comprehensive.component.html
  2. 6
      src/app/pages/home-page-comprehensive/home-page-comprehensive.component.ts

4
src/app/pages/home-page-comprehensive/home-page-comprehensive.component.html

@ -311,14 +311,14 @@
<div class="point"></div>
<span>累计发油总车次</span>
</div>
{{HomeAggregatioData.ouViolationType.ouTotalCount}}
{{HomeAggregatioData_YK.ouViolationType.ouTotalCount}}
</div>
<div class="oilNumItem">
<div class="pointbox">
<div class="point"></div>
<span>累计发油预警车次</span>
</div>
{{HomeAggregatioData.ouViolationType.ouNotCorrectCount}}
{{HomeAggregatioData_YK.ouViolationType.ouNotCorrectCount}}
</div>
</div>
</div>

6
src/app/pages/home-page-comprehensive/home-page-comprehensive.component.ts

@ -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;
//柱状图

Loading…
Cancel
Save