diff --git a/src/app/pages/audit/audit-ing/audit-ing.component.html b/src/app/pages/audit/audit-ing/audit-ing.component.html index 7e7aac1..adb56dc 100644 --- a/src/app/pages/audit/audit-ing/audit-ing.component.html +++ b/src/app/pages/audit/audit-ing/audit-ing.component.html @@ -5,9 +5,9 @@ - 审批信息 + 审批类型 - 审批类型 + 审批信息 油站名称 区域名称 公司名称 diff --git a/src/app/pages/home-page/home-page.component.ts b/src/app/pages/home-page/home-page.component.ts index fccda2b..1f891eb 100644 --- a/src/app/pages/home-page/home-page.component.ts +++ b/src/app/pages/home-page/home-page.component.ts @@ -464,16 +464,16 @@ export class HomePageComponent implements OnInit { this.userdata = JSON.parse(sessionStorage.getItem('userdata')) // 饼图 - this.warningechartpieAll = echarts.init(document.getElementById('eventechartpieAll'),null,{devicePixelRatio:2}); + this.warningechartpieAll = echarts.init(document.getElementById('eventechartpieAll'), null, { devicePixelRatio: 2 }); // this.equipmentechart = echarts.init(document.getElementById('equipmentechart')); // 预警饼图 - this.warningechartpie = echarts.init(document.getElementById('eventechartpie'),null,{devicePixelRatio:2}); + this.warningechartpie = echarts.init(document.getElementById('eventechartpie'), null, { devicePixelRatio: 2 }); // 预警线图 this.warningechartbar = echarts.init(document.getElementById('eventechartline')); // 卸油饼图 - this.oilchartpie = echarts.init(document.getElementById('oilechartpie'),null,{devicePixelRatio:2}); + this.oilchartpie = echarts.init(document.getElementById('oilechartpie'), null, { devicePixelRatio: 2 }); // 卸油线图 this.oilchartbar = echarts.init(document.getElementById('oilechartline')); @@ -757,7 +757,10 @@ export class HomePageComponent implements OnInit { look(item) { console.log('消息item', item) - if (item.notification.data.eventSystemName == '灭火器维护') { + if (item.notification.data.eventSystemName == '设备报废临期提醒' || item.notification.data.eventSystemName == '设备报废逾期报警' + || item.notification.data.eventSystemName == '设备维保临期提醒' + || item.notification.data.eventSystemName == '设备维保逾期报警' + ) { this.isOpenModel = true let copydata = item.notification.data copydata.violatedItemSnapshotObj = JSON.parse(copydata.violatedItemSnapshot) @@ -876,9 +879,6 @@ export class HomePageComponent implements OnInit { this.readMess(item.notification.id) } - - - } //标记为已读 diff --git a/src/app/pages/home/home.component.ts b/src/app/pages/home/home.component.ts index f91982b..b107011 100644 --- a/src/app/pages/home/home.component.ts +++ b/src/app/pages/home/home.component.ts @@ -68,11 +68,11 @@ export class HomeComponent implements OnInit { { name: '资产类证照管理', url: '/system/fileOfLicense' }, { name: '菜单管理', url: '/system/menu' }, ] - xitongguanli=false - userMenu=[] - tap=[] - menuList1=[] - menuList2=[] + xitongguanli = false + userMenu = [] + tap = [] + menuList1 = [] + menuList2 = [] selectedItem routerChange(item) { if (item.name == this.selectedItem) { @@ -84,12 +84,12 @@ export class HomeComponent implements OnInit { } ngOnInit(): void { - let a= sessionStorage.getItem('userdata') - this.userMenu=JSON.parse(a).menus + let a = sessionStorage.getItem('userdata') + this.userMenu = JSON.parse(a).menus for (let index = 0; index < this.userMenu.length; index++) { - let a=this.userMenu[index].name + let a = this.userMenu[index].name this.tap.push(a) - + } if (sessionStorage.getItem('selectedMenu')) { this.selectedItem = sessionStorage.getItem('selectedMenu') @@ -101,8 +101,8 @@ export class HomeComponent implements OnInit { this.isGasStationNav = true for (let index = 0; index < this.menu2.length; index++) { for (let k = 0; k < this.tap.length; k++) { - if (this.tap[k]==this.menu2[index].name) { - this.menuList1.push(this.menu2[index]) + if (this.tap[k] == this.menu2[index].name) { + this.menuList1.push(this.menu2[index]) } } @@ -112,16 +112,16 @@ export class HomeComponent implements OnInit { this.isGasStationBack = false for (let index = 0; index < this.menu1.length; index++) { for (let k = 0; k < this.tap.length; k++) { - if (this.tap[k]==this.menu1[index].name) { + if (this.tap[k] == this.menu1[index].name) { this.menuList1.push(this.menu1[index]) } } } for (let index = 0; index < this.tap.length; index++) { - if (this.tap[index]=="系统管理") { - this.xitongguanli=true + if (this.tap[index] == "系统管理") { + this.xitongguanli = true } - + } } @@ -246,7 +246,7 @@ export class HomeComponent implements OnInit { console.log('推送信息后获取信息', data) setTimeout(() => { let copydata = data.result - if (item.notification.data.properties.EventSystemName == '灭火器维护') { + if (copydata.violation.violationType == '设备监测') { copydata.violatedItemSnapshotObj = JSON.parse(copydata.violatedItemSnapshot) const modal = this.modal.create({ nzContent: DisposeequipmentComponent, @@ -453,15 +453,15 @@ export class HomeComponent implements OnInit { } navChange2() { for (let index = 0; index < this.menu3.length; index++) { - let url="" + let url = "" for (let k = 0; k < this.tap.length; k++) { - if (this.tap[k]==this.menu3[index].name) { - this.menuList2.push(this.menu3[index]) + if (this.tap[k] == this.menu3[index].name) { + this.menuList2.push(this.menu3[index]) } - + } - + } this.router.navigate([this.menuList2[0].url]) } diff --git a/src/app/pages/plan-admin/oil-station-list/oil-station-list.component.scss b/src/app/pages/plan-admin/oil-station-list/oil-station-list.component.scss index fb58501..f93e56a 100644 --- a/src/app/pages/plan-admin/oil-station-list/oil-station-list.component.scss +++ b/src/app/pages/plan-admin/oil-station-list/oil-station-list.component.scss @@ -1,3 +1,13 @@ +.box { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + overflow: hidden; + box-sizing: border-box; + padding-bottom: 12px; +} + .search { box-sizing: border-box; padding-left: 38px; @@ -50,12 +60,6 @@ } } -.box { - width: 100%; - height: 100%; - display: flex; - flex-direction: column; -} .tablebox { flex: 1; diff --git a/src/app/pages/plan-admin/oil-station-list/oil-station-list.component.ts b/src/app/pages/plan-admin/oil-station-list/oil-station-list.component.ts index 995524b..82d3a65 100644 --- a/src/app/pages/plan-admin/oil-station-list/oil-station-list.component.ts +++ b/src/app/pages/plan-admin/oil-station-list/oil-station-list.component.ts @@ -23,12 +23,11 @@ export class OilStationListComponent implements OnInit { tableScrollHeight resizeListener ngOnInit(): void { - this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - 42) + 'px' - - console.log('tableScrollHeight', this.tableScrollHeight) + this.tableScrollHeight = '100px' // 页面监听 this.resizeListener = fromEvent(window, 'resize').pipe(debounceTime(100)).subscribe((event) => { - this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - 42) + 'px' + let tableHeader = this.element.nativeElement.querySelector(`.ant-table-header`).clientHeight + this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - tableHeader - 10) + 'px' }); this.validateForm = this.fb.group({ name: [null] @@ -143,6 +142,10 @@ export class OilStationListComponent implements OnInit { this.list = [...this.list] this.tableSpin = false this.isLoading = false + setTimeout(() => { + let tableHeader = this.element.nativeElement.querySelector(`.ant-table-header`).clientHeight + this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - tableHeader - 10) + 'px' + }, 0); resolve(data) }) }) diff --git a/src/app/pages/records/criminal-records-admin/criminal-records-admin.component.ts b/src/app/pages/records/criminal-records-admin/criminal-records-admin.component.ts index fa477fc..51f0175 100644 --- a/src/app/pages/records/criminal-records-admin/criminal-records-admin.component.ts +++ b/src/app/pages/records/criminal-records-admin/criminal-records-admin.component.ts @@ -696,7 +696,7 @@ export class CriminalRecordsAdminComponent implements OnInit { look(item) { console.log('点击item', item) - if (item.violation.eventSystemName == '灭火器维护') { + if (item.violation.violationType == '设备监测') { item.violatedItemSnapshotObj = JSON.parse(item.violatedItemSnapshot) const modal = this.modal.create({ nzContent: DisposeequipmentComponent, diff --git a/src/app/pages/records/criminal-records/criminal-records.component.ts b/src/app/pages/records/criminal-records/criminal-records.component.ts index 8ec4bfd..508c22c 100644 --- a/src/app/pages/records/criminal-records/criminal-records.component.ts +++ b/src/app/pages/records/criminal-records/criminal-records.component.ts @@ -653,7 +653,7 @@ export class CriminalRecordsComponent implements OnInit { } look(item) { - if (item.violation.eventSystemName == '灭火器维护') { + if (item.violation.violationType == '设备监测') { item.violatedItemSnapshotObj = JSON.parse(item.violatedItemSnapshot) const modal = this.modal.create({ nzContent: DisposeequipmentComponent, diff --git a/src/app/pages/records/warning-statistics-list/disposeequipment/disposeequipment.component.html b/src/app/pages/records/warning-statistics-list/disposeequipment/disposeequipment.component.html index d6985e0..49d6d16 100644 --- a/src/app/pages/records/warning-statistics-list/disposeequipment/disposeequipment.component.html +++ b/src/app/pages/records/warning-statistics-list/disposeequipment/disposeequipment.component.html @@ -12,6 +12,9 @@

报废临期预警逾期预警

+ + +


已处置
@@ -27,6 +30,7 @@

+ 油站名称:{{data2.gasStation.stationName}}
器材名称:{{data2.violatedItemSnapshotObj.name}}
存放地点:{{data2.violatedItemSnapshotObj.storageLocation}}
有效期至:{{data2.violatedItemSnapshotObj.validityEndTime | date:"yyyy-MM-dd"}} @@ -34,6 +38,7 @@

+

油站名称: {{data2.gasStation.stationName}}

消防器材名称

diff --git a/src/app/pages/records/warning-statistics-list/warning-statistics-list.component.html b/src/app/pages/records/warning-statistics-list/warning-statistics-list.component.html index 21b1f97..f85b07e 100644 --- a/src/app/pages/records/warning-statistics-list/warning-statistics-list.component.html +++ b/src/app/pages/records/warning-statistics-list/warning-statistics-list.component.html @@ -156,7 +156,7 @@ {{item.gasStation.stationName ? item.gasStation.stationName : '/'}} - + {{item.violatedItemSnapshotObj.validityLicenseType.licenseName ? item.violatedItemSnapshotObj.validityLicenseType.licenseName : '/'}} @@ -165,7 +165,7 @@ - + {{item.violatedItemSnapshotObj.validityEndTime ? (item.violatedItemSnapshotObj.validityEndTime | date:"yyyy-MM-dd") : '/'}} diff --git a/src/app/pages/records/warning-statistics-list/warning-statistics-list.component.ts b/src/app/pages/records/warning-statistics-list/warning-statistics-list.component.ts index 0f2ab3d..9758440 100644 --- a/src/app/pages/records/warning-statistics-list/warning-statistics-list.component.ts +++ b/src/app/pages/records/warning-statistics-list/warning-statistics-list.component.ts @@ -585,10 +585,10 @@ export class WarningStatisticsListComponent implements OnInit { let option1 let option2 data.result.forEach(element => { - if (element.eventSystemName == '证照预警') { + if (element.violationType == '证照资质') { option1 = element.id } - if (element.eventSystemName == '灭火器维护') { + if (element.violationType == '设备监测') { option2 = element.id } }); @@ -747,7 +747,7 @@ export class WarningStatisticsListComponent implements OnInit { } look(item) { console.log(item) - if (item.violation.eventSystemName == '证照预警') { + if (item.violation.violationType == '证照资质') { const modal = this.modal.create({ nzContent: GetOutOfLineDetailsComponent, nzWrapClassName: "vertical-center-modal", diff --git a/src/app/pages/today-warning-admin/today-warning-admin.component.ts b/src/app/pages/today-warning-admin/today-warning-admin.component.ts index d75bbf0..8e01e6f 100644 --- a/src/app/pages/today-warning-admin/today-warning-admin.component.ts +++ b/src/app/pages/today-warning-admin/today-warning-admin.component.ts @@ -252,7 +252,7 @@ export class TodayWarningAdminComponent implements OnInit { isVisible = false look(item) { - if (item.violation.eventSystemName == '灭火器维护') { + if (item.violation.violationType == '设备监测') { item.violatedItemSnapshotObj = JSON.parse(item.violatedItemSnapshot) const modal = this.modal.create({ nzContent: DisposeequipmentComponent, diff --git a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html index 4bb73df..009e034 100644 --- a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html +++ b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html @@ -5,7 +5,7 @@ 预警截图
-
预警视频
diff --git a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts index b0d4cb8..4c0545f 100644 --- a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts +++ b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts @@ -30,7 +30,7 @@ export class GetOutOfLineDetailsComponent implements OnInit { isLicenseWarning = false ngOnInit(): void { - if (this.data.violation.eventSystemName == '证照预警') { + if (this.data.violation.violationType == '证照资质') { this.isLicenseWarning = true } else { this.isLicenseWarning = false @@ -69,7 +69,7 @@ export class GetOutOfLineDetailsComponent implements OnInit { if (loginUserInfo.roles.find((item) => { return item.name == 'ViolationPositiveCensorer' - }) && this.data.violation.eventSystemName != '证照预警') { + }) && this.data.violation.violationType != '证照资质') { this.isMisinformation = true } else { this.isMisinformation = false diff --git a/src/app/pages/today-warning/today-warning.component.ts b/src/app/pages/today-warning/today-warning.component.ts index 04d683b..19bb432 100644 --- a/src/app/pages/today-warning/today-warning.component.ts +++ b/src/app/pages/today-warning/today-warning.component.ts @@ -217,7 +217,7 @@ export class TodayWarningComponent implements OnInit { look(item) { - if (item.violation.eventSystemName == '灭火器维护') { + if (item.violation.violationType == '设备监测') { item.violatedItemSnapshotObj = JSON.parse(item.violatedItemSnapshot) const modal = this.modal.create({ nzContent: DisposeequipmentComponent,