|
|
|
@ -85,10 +85,13 @@ export class WarningStatisticsListComponent implements OnInit {
|
|
|
|
|
datePicker: [[this.startdate, this.enddate]] |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 饼图
|
|
|
|
|
this.myChart = echarts.init(document.getElementById('piechart')); |
|
|
|
|
//柱状折线图
|
|
|
|
|
this.mybarChart = echarts.init(document.getElementById('barchart')); |
|
|
|
|
setTimeout(() => { |
|
|
|
|
// 饼图
|
|
|
|
|
this.myChart = echarts.init(document.getElementById('piechart')); |
|
|
|
|
//柱状折线图
|
|
|
|
|
this.mybarChart = echarts.init(document.getElementById('barchart')); |
|
|
|
|
}, 0); |
|
|
|
|
|
|
|
|
|
this.tableSpin = true |
|
|
|
|
this.getAllOrganization() |
|
|
|
|
this.getAggregations() |
|
|
|
@ -103,15 +106,15 @@ export class WarningStatisticsListComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
returnLastMenus(e) { |
|
|
|
|
let userMenu |
|
|
|
|
if(e){ |
|
|
|
|
if (e) { |
|
|
|
|
userMenu = JSON.parse(sessionStorage.getItem('userdataOfgasstation')).menus |
|
|
|
|
}else{ |
|
|
|
|
userMenu = JSON.parse(sessionStorage.getItem('userdata')).menus
|
|
|
|
|
} else { |
|
|
|
|
userMenu = JSON.parse(sessionStorage.getItem('userdata')).menus |
|
|
|
|
} |
|
|
|
|
for (let index = 0; index < userMenu.length; index++) { |
|
|
|
|
for (let k = 0; k < userMenu.length; k++) { |
|
|
|
|
if (userMenu[index].name=="证照预警统计") { |
|
|
|
|
if(userMenu[index].id==userMenu[k].parentId){ |
|
|
|
|
if (userMenu[index].name == "证照预警统计") { |
|
|
|
|
if (userMenu[index].id == userMenu[k].parentId) { |
|
|
|
|
this.button = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|