|
|
|
@ -304,7 +304,7 @@ export class CriminalRecordsComponent implements OnInit {
|
|
|
|
|
enddate |
|
|
|
|
|
|
|
|
|
isMisinformation: boolean = false//误报按钮的显隐
|
|
|
|
|
|
|
|
|
|
button=false |
|
|
|
|
tableScrollHeight |
|
|
|
|
resizeListener |
|
|
|
|
ngOnInit(): void { |
|
|
|
@ -312,7 +312,7 @@ export class CriminalRecordsComponent implements OnInit {
|
|
|
|
|
// this.isShowEcharts.getMessage().subscribe((message: any) => {
|
|
|
|
|
// this.isEchartsShow()
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.tableScrollHeight = '100px' |
|
|
|
|
// 页面监听
|
|
|
|
|
this.resizeListener = fromEvent(window, 'resize').pipe(debounceTime(100)).subscribe((event) => { |
|
|
|
@ -322,8 +322,10 @@ export class CriminalRecordsComponent implements OnInit {
|
|
|
|
|
let loginUserInfo |
|
|
|
|
if (sessionStorage.getItem('isGasStation') == 'true') { |
|
|
|
|
loginUserInfo = JSON.parse(sessionStorage.getItem('userdataOfgasstation')) |
|
|
|
|
this.returnLastMenus() |
|
|
|
|
} else { |
|
|
|
|
loginUserInfo = JSON.parse(sessionStorage.getItem('userdata')) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (loginUserInfo.roles.find((item) => { |
|
|
|
@ -370,6 +372,16 @@ export class CriminalRecordsComponent implements OnInit {
|
|
|
|
|
ngOnDestroy(): void { |
|
|
|
|
this.resizeListener.unsubscribe() |
|
|
|
|
} |
|
|
|
|
returnLastMenus() { |
|
|
|
|
let userMenu = JSON.parse(sessionStorage.getItem('userdataOfgasstation')).menus |
|
|
|
|
|
|
|
|
|
for (let index = 0; index < userMenu.length; index++) { |
|
|
|
|
if (userMenu[index].parentId==5) { |
|
|
|
|
this.button=true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
//刷新饼图图表数据
|
|
|
|
|
num |
|
|
|
|
echartsData: any |
|
|
|
|