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