陈鹏飞 3 years ago
parent
commit
46d844b0ed
  1. 10
      src/app/babylon/controller/config-manager.ts
  2. 2
      src/app/babylon/controller/mode-manager.ts
  3. 2
      src/app/babylon/controller/scene-manager.ts
  4. 6
      src/app/babylon/model/data/model-data/model-data-facility.ts
  5. 3
      src/app/http-interceptors/base-interceptor.ts
  6. 18
      src/app/pages/home-page/home-page.component.ts
  7. 4
      src/app/pages/home/home.component.html
  8. 9
      src/app/pages/home/home.component.ts
  9. 11
      src/app/pages/today-warning-admin/today-warning-admin.component.ts
  10. 6
      src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html
  11. 1
      src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.scss
  12. 8
      src/app/pages/today-warning/today-warning.component.ts
  13. BIN
      src/assets/images/facility/in/XF_MHQ_GF_25.png
  14. BIN
      src/assets/images/facility/in/XF_MHQ_GF_35.png
  15. BIN
      src/assets/images/facility/in/XF_MHQ_GF_4.png
  16. BIN
      src/assets/images/facility/in/XF_MHQ_GF_8.png
  17. BIN
      src/assets/images/facility/in/XF_MHQ_PT_35.png
  18. BIN
      src/assets/images/facility/in/XF_MHQ_PT_4.png
  19. BIN
      src/assets/images/facility/in/XF_MHQ_PT_8.png
  20. BIN
      src/assets/images/facility/in/XF_MHT.png
  21. BIN
      src/assets/images/facility/in/XF_XFCM.png
  22. BIN
      src/assets/images/facility/in/XF_XFF.png
  23. BIN
      src/assets/images/facility/in/XF_XFQ.png
  24. BIN
      src/assets/images/facility/in/XF_XFS.png
  25. BIN
      src/assets/images/facility/in/XF_XFT.png
  26. BIN
      src/assets/images/mark/inside/gfmhq.png
  27. BIN
      src/assets/images/mark/inside/ptmhq.png
  28. BIN
      src/assets/images/mark/inside/tcmhq.png

10
src/app/babylon/controller/config-manager.ts

@ -44,7 +44,7 @@ export class ConfigManager {
case FacilityType.TPBZ: case FacilityType.TPBZ:
case FacilityType.DWBZ: case FacilityType.DWBZ:
// case FacilityType.JY_JYJ://临时 // case FacilityType.JY_JYJ://临时
case FacilityType.JY_YG://临时 // case FacilityType.JY_YG://临时
result = true; result = true;
break; break;
@ -82,9 +82,9 @@ export class ConfigManager {
case FacilityType.TPBZ: result = "图片"; break; case FacilityType.TPBZ: result = "图片"; break;
case FacilityType.DWBZ: result = "点位"; break; case FacilityType.DWBZ: result = "点位"; break;
//内建 //内建
case FacilityType.XF_MHQ_PT_4: result = "4kg普通灭火器"; break; case FacilityType.XF_MHQ_PT_4: result = "4kg二氧化碳灭火器"; break;
case FacilityType.XF_MHQ_PT_8: result = "8kg普通灭火器"; break; case FacilityType.XF_MHQ_PT_8: result = "8kg二氧化碳灭火器"; break;
case FacilityType.XF_MHQ_PT_35: result = "35kg普通灭火器"; break; case FacilityType.XF_MHQ_PT_35: result = "35kg二氧化碳灭火器"; break;
case FacilityType.XF_MHQ_GF_4: result = "4kg干粉灭火器"; break; case FacilityType.XF_MHQ_GF_4: result = "4kg干粉灭火器"; break;
case FacilityType.XF_MHQ_GF_8: result = "8kg干粉灭火器"; break; case FacilityType.XF_MHQ_GF_8: result = "8kg干粉灭火器"; break;
case FacilityType.XF_MHQ_GF_25: result = "25kg干粉灭火器"; break; case FacilityType.XF_MHQ_GF_25: result = "25kg干粉灭火器"; break;
@ -154,7 +154,7 @@ export class ConfigManager {
[MarkType.YGCSJ, "油罐车司机"], [MarkType.YGCSJ, "油罐车司机"],
[MarkType.XFSD, "消防沙(堆)"], [MarkType.XFSD, "消防沙(堆)"],
[MarkType.XFSQ, "消防沙(圈)"], [MarkType.XFSQ, "消防沙(圈)"],
[MarkType.PTMHQ, "普通灭火器"], [MarkType.PTMHQ, "二氧化碳灭火器"],
[MarkType.GFMHQ, "干粉灭火器"], [MarkType.GFMHQ, "干粉灭火器"],
[MarkType.TCMHQ, "推车灭火器"], [MarkType.TCMHQ, "推车灭火器"],
[MarkType.ZYMBRQ, "专用密闭容器"], [MarkType.ZYMBRQ, "专用密闭容器"],

2
src/app/babylon/controller/mode-manager.ts

@ -23,7 +23,7 @@ export class ModeManager {
/** /**
* *
*/ */
public static s_isMakeMode = true; public static s_isMakeMode = false;
/** /**
* *

2
src/app/babylon/controller/scene-manager.ts

@ -431,7 +431,7 @@ export class SceneManager {
if (ev.altKey && ev.key == 'd' && ModeManager.isDebug) { if (ev.altKey && ev.key == 'd' && ModeManager.isDebug) {
SceneManager.showDebug = !SceneManager.showDebug; SceneManager.showDebug = !SceneManager.showDebug;
if (SceneManager.showDebug) { if (SceneManager.showDebug) {
SceneManager.Instance.scene.debugLayer.show(); SceneManager.Instance.scene.debugLayer.show({ embedMode: true });
} else { } else {
SceneManager.Instance.scene.debugLayer.hide(); SceneManager.Instance.scene.debugLayer.hide();
} }

6
src/app/babylon/model/data/model-data/model-data-facility.ts

@ -158,15 +158,15 @@ export enum FacilityType {
//模型内置 //模型内置
/** /**
* - 4kg * - 4kg
*/ */
XF_MHQ_PT_4 = "XF_MHQ_PT_4", XF_MHQ_PT_4 = "XF_MHQ_PT_4",
/** /**
* - 8kg * - 8kg
*/ */
XF_MHQ_PT_8 = "XF_MHQ_PT_8", XF_MHQ_PT_8 = "XF_MHQ_PT_8",
/** /**
* - 35kg () * - 35kg ()
*/ */
XF_MHQ_PT_35 = "XF_MHQ_PT_35", XF_MHQ_PT_35 = "XF_MHQ_PT_35",
/** /**

3
src/app/http-interceptors/base-interceptor.ts

@ -56,7 +56,8 @@ export class BaseInterceptor implements HttpInterceptor {
if (error.status === 401 || error.status === 614) { if (error.status === 401 || error.status === 614) {
this.token.delete() this.token.delete()
sessionStorage.clear() sessionStorage.clear()
window.localStorage.clear() // window.localStorage.clear()
localStorage.removeItem("isautologin")
this.cookieService.set("token", '', new Date(new Date().getTime() + 1), '/') this.cookieService.set("token", '', new Date(new Date().getTime() + 1), '/')
this.cookieService.set("refreshToken", '', new Date(new Date().getTime() + 1), '/') this.cookieService.set("refreshToken", '', new Date(new Date().getTime() + 1), '/')
this.message.create('error', `用户认证信息过期,请重新登录!`); this.message.create('error', `用户认证信息过期,请重新登录!`);

18
src/app/pages/home-page/home-page.component.ts

@ -5,6 +5,7 @@ import * as echarts from 'echarts';
import * as moment from 'moment'; import * as moment from 'moment';
import { NzModalService } from 'ng-zorro-antd/modal'; import { NzModalService } from 'ng-zorro-antd/modal';
import { GetOutOfLineDetailsComponent } from '../today-warning/get-out-of-line-details/get-out-of-line-details.component'; import { GetOutOfLineDetailsComponent } from '../today-warning/get-out-of-line-details/get-out-of-line-details.component';
import { NzMessageService } from 'ng-zorro-antd/message';
@Component({ @Component({
selector: 'app-home-page', selector: 'app-home-page',
templateUrl: './home-page.component.html', templateUrl: './home-page.component.html',
@ -12,7 +13,7 @@ import { GetOutOfLineDetailsComponent } from '../today-warning/get-out-of-line-d
}) })
export class HomePageComponent implements OnInit { export class HomePageComponent implements OnInit {
constructor(private http: HttpClient, private router: Router, private modal: NzModalService, private viewContainerRef: ViewContainerRef) { } constructor(private http: HttpClient, private router: Router, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private message: NzMessageService) { }
warningechartpie//预警饼图 warningechartpie//预警饼图
warningechartpieOption = { warningechartpieOption = {
@ -272,10 +273,10 @@ export class HomePageComponent implements OnInit {
violationType: { violationType: {
violationTypeAgg: [] violationTypeAgg: []
}, },
dev:{ dev: {
stationCount:'', stationCount: '',
violationCount:'', violationCount: '',
cameraCount:'' cameraCount: ''
} }
} }
totalCount totalCount
@ -641,6 +642,10 @@ export class HomePageComponent implements OnInit {
isOpenModel: boolean = false isOpenModel: boolean = false
look(item) { look(item) {
console.log(item)
if (item.notification.data.eventSystemName == '灭火器维护' || item.notification.data.eventSystemName == '证照预警') {
this.message.create('warning', `证照或者器材即将临期,请联系加油站处理!`);
} else {
this.isOpenModel = true this.isOpenModel = true
let data = { let data = {
violateImage: item.notification.data.violateImage, violateImage: item.notification.data.violateImage,
@ -673,6 +678,9 @@ export class HomePageComponent implements OnInit {
this.readMess(item.notification.id) this.readMess(item.notification.id)
} }
}
//标记为已读 //标记为已读
readMess(id) { readMess(id) {
let body = { let body = {

4
src/app/pages/home/home.component.html

@ -88,3 +88,7 @@
</div> </div>
</div> </div>
</ng-template> </ng-template>
<!--
<nz-modal [(nzVisible)]="isVisible">
<app-get-out-of-line-details [data]="modalData"></app-get-out-of-line-details>
</nz-modal> -->

9
src/app/pages/home/home.component.ts

@ -102,8 +102,13 @@ export class HomeComponent implements OnInit {
} }
this.messageId.push(obj) this.messageId.push(obj)
} }
isVisible = false
modalData
look(item) { look(item) {
if (item.notification.data.properties.EventSystemName == '灭火器维护' || item.notification.data.properties.EventSystemName == '证照预警') {
this.message.create('warning', `证照或者器材即将临期,请联系加油站处理!`);
} else {
let params = { let params = {
id: item.notification.entityId id: item.notification.entityId
} }
@ -135,9 +140,11 @@ export class HomeComponent implements OnInit {
this.notificationService.remove(element.messageId) this.notificationService.remove(element.messageId)
} }
}) })
this.readMess(item.notification.id)
}) })
this.readMess(item.notification.id) }
} }
//标记为已读 //标记为已读

11
src/app/pages/today-warning-admin/today-warning-admin.component.ts

@ -159,14 +159,11 @@ export class TodayWarningAdminComponent implements OnInit {
} }
isVisible=false
look(item) { look(item) {
let type if (item.violation.eventSystemName == '灭火器维护' || item.violation.eventSystemName == '证照预警') {
if (item.violation.violationType.indexOf('卸油')) { this.message.create('warning', `证照或者器材即将临期,请联系加油站处理!`);
type = 1
} else { } else {
type = 0
}
const modal = this.modal.create({ const modal = this.modal.create({
nzContent: GetOutOfLineDetailsComponent, nzContent: GetOutOfLineDetailsComponent,
nzViewContainerRef: this.viewContainerRef, nzViewContainerRef: this.viewContainerRef,
@ -189,6 +186,8 @@ export class TodayWarningAdminComponent implements OnInit {
const instance = modal.getContentComponent(); const instance = modal.getContentComponent();
} }
}
dispose(item) { dispose(item) {
console.log(item) console.log(item)
const modal = this.modal.create({ const modal = this.modal.create({

6
src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html

@ -13,12 +13,6 @@
</div> </div>
<div class="content"> <div class="content">
<div *ngIf="selectedType == 'img'" class="imgbox"> <div *ngIf="selectedType == 'img'" class="imgbox">
<!-- <div class="imglist">
<span class="imglisttitle">截图列表</span>
<div class="img">
<img src="../../../../assets/images/bgImg.jpg" alt="">
</div>
</div> -->
<div class="bigimg"> <div class="bigimg">
<img [src]="imgUrl" alt=""> <img [src]="imgUrl" alt="">
</div> </div>

1
src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.scss

@ -98,6 +98,7 @@
} }
.bigimg { .bigimg {
// min-width: 1149px;
flex: 1; flex: 1;
box-sizing: border-box; box-sizing: border-box;
padding-left: 13px; padding-left: 13px;

8
src/app/pages/today-warning/today-warning.component.ts

@ -113,12 +113,9 @@ export class TodayWarningComponent implements OnInit {
look(item) { look(item) {
let type if (item.violation.eventSystemName == '灭火器维护' || item.violation.eventSystemName == '证照预警') {
if (item.violation.violationType.indexOf('卸油')) { this.message.create('warning', `证照或者器材即将临期,请联系加油站处理!`);
type = 1
} else { } else {
type = 0
}
const modal = this.modal.create({ const modal = this.modal.create({
nzContent: GetOutOfLineDetailsComponent, nzContent: GetOutOfLineDetailsComponent,
nzViewContainerRef: this.viewContainerRef, nzViewContainerRef: this.viewContainerRef,
@ -140,6 +137,7 @@ export class TodayWarningComponent implements OnInit {
}); });
const instance = modal.getContentComponent(); const instance = modal.getContentComponent();
} }
}
dispose(item) { dispose(item) {
console.log(item) console.log(item)

BIN
src/assets/images/facility/in/XF_MHQ_GF_25.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
src/assets/images/facility/in/XF_MHQ_GF_35.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
src/assets/images/facility/in/XF_MHQ_GF_4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
src/assets/images/facility/in/XF_MHQ_GF_8.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
src/assets/images/facility/in/XF_MHQ_PT_35.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
src/assets/images/facility/in/XF_MHQ_PT_4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
src/assets/images/facility/in/XF_MHQ_PT_8.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
src/assets/images/facility/in/XF_MHT.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
src/assets/images/facility/in/XF_XFCM.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
src/assets/images/facility/in/XF_XFF.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
src/assets/images/facility/in/XF_XFQ.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
src/assets/images/facility/in/XF_XFS.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
src/assets/images/facility/in/XF_XFT.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
src/assets/images/mark/inside/gfmhq.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
src/assets/images/mark/inside/ptmhq.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
src/assets/images/mark/inside/tcmhq.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Loading…
Cancel
Save