diff --git a/src/app/pages/criminal-records-admin/criminal-records-admin.component.html b/src/app/pages/criminal-records-admin/criminal-records-admin.component.html index e2bc605..b318ba9 100644 --- a/src/app/pages/criminal-records-admin/criminal-records-admin.component.html +++ b/src/app/pages/criminal-records-admin/criminal-records-admin.component.html @@ -28,7 +28,7 @@ - + diff --git a/src/app/pages/criminal-records-admin/criminal-records-admin.component.scss b/src/app/pages/criminal-records-admin/criminal-records-admin.component.scss index 0359ad7..640df91 100644 --- a/src/app/pages/criminal-records-admin/criminal-records-admin.component.scss +++ b/src/app/pages/criminal-records-admin/criminal-records-admin.component.scss @@ -27,6 +27,9 @@ // flex: 5; width: 150px; } + .searchParamsLong{ + width: 250px; + } .searchParams2{ width: 220px; } diff --git a/src/app/pages/home-page/home-page.component.html b/src/app/pages/home-page/home-page.component.html index a10225d..d630bb9 100644 --- a/src/app/pages/home-page/home-page.component.html +++ b/src/app/pages/home-page/home-page.component.html @@ -115,7 +115,7 @@ 近30天油站排名
-
+
{{'0' + (key + 1)}} @@ -229,7 +229,7 @@
- 近30天卸油作业总数走势 + 近30天卸油预警走势
diff --git a/src/app/pages/home-page/home-page.component.ts b/src/app/pages/home-page/home-page.component.ts index 87bce44..6e33cc9 100644 --- a/src/app/pages/home-page/home-page.component.ts +++ b/src/app/pages/home-page/home-page.component.ts @@ -651,39 +651,6 @@ export class HomePageComponent implements OnInit { } - - areaList: any = [ - { name: '加油区', num: 92 }, - { name: '油罐区', num: 81 }, - { name: '出入口', num: 66 }, - { name: '便利店', num: 34 }, - { name: '办公区', num: 20 }, - { name: '其他区域', num: 17 } - ] - eventList: any = [ - { name: '员工服务', num: 92 }, - { name: '监控设备监测', num: 81 }, - { name: '安全隐患', num: 77 }, - { name: '车流调查', num: 34 }, - { name: '员工服务', num: 92 }, - { name: '监控设备监测', num: 81 }, - { name: '安全隐患', num: 77 }, - { name: '车流调查', num: 34 }, - { name: '安全隐患', num: 77 }, - { name: '车流调查', num: 34 } - ] - stationList: any = [ - { name: '北京市第十九加油站', num: 92 }, - { name: '北京市第十九加油站', num: 81 }, - { name: '北京市第十九加油站', num: 77 }, - { name: '北京市第十九加油站', num: 34 }, - { name: '北京市第十九加油站', num: 92 }, - { name: '北京市第十九加油站', num: 81 }, - { name: '北京市第十九加油站', num: 77 }, - { name: '北京市第十九加油站', num: 34 }, - { name: '北京市第十九加油站', num: 77 }, - { name: '北京市第十九加油站', num: 34 } - ] width(width: string, denominator: string) { let style: any = {} style.width = ((Number(width) / Number(denominator)) * 100).toFixed() + '%'; @@ -694,43 +661,36 @@ export class HomePageComponent implements OnInit { isOpenModel: boolean = false look(item) { - // console.log(item) - if (item.notification.data.eventSystemName == '灭火器维护' || item.notification.data.eventSystemName == '证照预警') { - this.message.create('warning', item.notification.data.content1); - } else { - this.isOpenModel = true - let data = { - violateImage: item.notification.data.violateImage, - violateVideo: item.notification.data.violateVideo - } - const modal = this.modal.create({ - nzContent: GetOutOfLineDetailsComponent, - nzWrapClassName: "vertical-center-modal", - nzViewContainerRef: this.viewContainerRef, - nzWidth: (document.documentElement.clientHeight < 650 || document.documentElement.clientWidth < 1400) ? 1000 : 1200, - nzBodyStyle: { - 'border': '1px solid #6d9cc7', - 'border-radius': '0px', - 'padding': '0px', - 'box-shadow': '0 0 8px 0 #fff', - 'background': '#000D21', - }, - nzComponentParams: { - data: data - }, - nzFooter: null, - nzOnOk: async () => { - - } - }); - const instance = modal.getContentComponent(); - modal.afterClose.subscribe(result => { - this.isOpenModel = false - this.rollStart() - }); - this.readMess(item.notification.id) - } + console.log('消息item', item) + this.isOpenModel = true + item.notification.data.id = item.notification.entityId + let data = item.notification.data + const modal = this.modal.create({ + nzContent: GetOutOfLineDetailsComponent, + nzWrapClassName: "vertical-center-modal", + nzViewContainerRef: this.viewContainerRef, + nzWidth: (document.documentElement.clientHeight < 650 || document.documentElement.clientWidth < 1400) ? 1000 : 1200, + nzBodyStyle: { + 'border': '1px solid #6d9cc7', + 'border-radius': '0px', + 'padding': '0px', + 'box-shadow': '0 0 8px 0 #fff', + 'background': '#000D21', + }, + nzComponentParams: { + data: data + }, + nzFooter: null, + nzOnOk: async () => { + } + }); + const instance = modal.getContentComponent(); + modal.afterClose.subscribe(result => { + this.isOpenModel = false + this.rollStart() + }); + this.readMess(item.notification.id) } diff --git a/src/app/pages/home/home.component.ts b/src/app/pages/home/home.component.ts index fc3d4fb..9562364 100644 --- a/src/app/pages/home/home.component.ts +++ b/src/app/pages/home/home.component.ts @@ -106,45 +106,38 @@ export class HomeComponent implements OnInit { modalData look(item) { + console.log('推送信息',item) let params = { id: item.notification.entityId } this.http.get('/api/services/app/ViolateRecord/Get', { params: params }).subscribe((data: any) => { - // console.log(data) - if (item.notification.data.properties.EventSystemName == '灭火器维护' || item.notification.data.properties.EventSystemName == '证照预警') { - this.message.create('warning', data.result.content1); - } else { - const modal = this.modal.create({ - nzContent: GetOutOfLineDetailsComponent, - nzWrapClassName: "vertical-center-modal", - nzViewContainerRef: this.viewContainerRef, - nzWidth: (document.documentElement.clientHeight < 650 || document.documentElement.clientWidth < 1400) ? 1000 : 1200, - nzBodyStyle: { - 'border': '1px solid #6d9cc7', - 'border-radius': '0px', - 'padding': '0px', - 'box-shadow': '0 0 8px 0 #fff', - 'background': '#000D21', - }, - nzComponentParams: { - data: data.result - }, - nzFooter: null, - nzOnOk: async () => { - - } - }); - const instance = modal.getContentComponent(); - this.messageId.forEach((element) => { - if (element.id == item.notification.entityId) { - this.notificationService.remove(element.messageId) - } - }) - this.readMess(item.notification.id) - } - + console.log('推送信息后获取信息',data) + const modal = this.modal.create({ + nzContent: GetOutOfLineDetailsComponent, + nzWrapClassName: "vertical-center-modal", + nzViewContainerRef: this.viewContainerRef, + nzWidth: (document.documentElement.clientHeight < 650 || document.documentElement.clientWidth < 1400) ? 1000 : 1200, + nzBodyStyle: { + 'border': '1px solid #6d9cc7', + 'border-radius': '0px', + 'padding': '0px', + 'box-shadow': '0 0 8px 0 #fff', + 'background': '#000D21', + }, + nzComponentParams: { + data: data.result + }, + nzFooter: null, + }); + const instance = modal.getContentComponent(); + this.messageId.forEach((element) => { + if (element.id == item.notification.entityId) { + this.notificationService.remove(element.messageId) + } + }) + this.readMess(item.notification.id) }) } diff --git a/src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.html b/src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.html index b44e4dd..8c02802 100644 --- a/src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.html +++ b/src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.html @@ -55,7 +55,7 @@ - + { this.myChart.setOption({ legend: { selected: { [params.name]: true } } @@ -450,12 +452,24 @@ export class OilUnloadingProcessListComponent implements OnInit { if (params.name == '预警事件') { this.isgoback = true this.refreshEchartsData2(this.echartsData) + this.validateForm.patchValue({ + state: '0' + }); + this.list = [] + this.SkipCount = '0' + this.getViolateRecordList() } }); this.myChart.on('click', (params) => { if (params.name == '预警事件') { this.isgoback = true this.refreshEchartsData2(this.echartsData) + this.validateForm.patchValue({ + state: '0' + }); + this.list = [] + this.SkipCount = '0' + this.getViolateRecordList() } }); @@ -504,12 +518,19 @@ export class OilUnloadingProcessListComponent implements OnInit { } goback() { this.isgoback = false + this.myChart.clear(); this.mybarChart.clear(); this.refreshEchartsData1(this.echartsData) + this.validateForm.patchValue({ + state: null + }); + this.list = [] + this.SkipCount = '0' + this.getViolateRecordList() } - + defaultOrId: string //获取所有组织机构 nodes: any = [] @@ -531,8 +552,7 @@ export class OilUnloadingProcessListComponent implements OnInit { }); this.nodes = [...this.toTree.toTree(data.result.items)] this.defaultOrId = JSON.parse(sessionStorage.getItem('userdata')).organization.id - this.validateForm.value.organization = this.defaultOrId - + this.validateForm.value.organization = JSON.parse(sessionStorage.getItem('userdata')).organization.id this.validateForm.patchValue({ datePicker: [this.startdate, this.enddate] }); @@ -614,7 +634,10 @@ export class OilUnloadingProcessListComponent implements OnInit { this.validateForm.controls[key].markAsPristine(); this.validateForm.controls[key].updateValueAndValidity(); } + console.log(JSON.parse(sessionStorage.getItem('userdata')).organization.id) + // this.validateForm.value.organization = JSON.parse(sessionStorage.getItem('userdata')).organization.id this.validateForm.patchValue({ + organization:JSON.parse(sessionStorage.getItem('userdata')).organization.id, datePicker: [this.startdate, this.enddate] }); this.list = [] diff --git a/src/app/pages/today-warning-admin/today-warning-admin.component.html b/src/app/pages/today-warning-admin/today-warning-admin.component.html index 062a66c..2d05ddb 100644 --- a/src/app/pages/today-warning-admin/today-warning-admin.component.html +++ b/src/app/pages/today-warning-admin/today-warning-admin.component.html @@ -20,7 +20,7 @@ - + diff --git a/src/app/pages/today-warning-admin/today-warning-admin.component.scss b/src/app/pages/today-warning-admin/today-warning-admin.component.scss index c508376..14d2399 100644 --- a/src/app/pages/today-warning-admin/today-warning-admin.component.scss +++ b/src/app/pages/today-warning-admin/today-warning-admin.component.scss @@ -65,7 +65,9 @@ // flex: 3; width: 150px; } - + .searchParamsLong{ + width: 250px; + } .btn { // flex: 1; } 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 fe01efd..75c9273 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 @@ -33,7 +33,7 @@ {{content}}
-
+
处置人:{{data.handleUsername}} diff --git a/src/app/pages/today-warning/today-warning.component.scss b/src/app/pages/today-warning/today-warning.component.scss index 0977630..4cdd9cb 100644 --- a/src/app/pages/today-warning/today-warning.component.scss +++ b/src/app/pages/today-warning/today-warning.component.scss @@ -65,6 +65,9 @@ // flex: 2.9; width: 150px; } + .searchParamsLong{ + width: 250px; + } .btn { // flex: 1;