+
预警信息
@@ -118,6 +118,9 @@
预警时间
+
+ 状态
+
操作
@@ -140,10 +143,10 @@
Ⅲ级
Ⅳ级
-
+
{{item.violation.violationType}}
-
+
{{item.violation.violationName}}
@@ -152,6 +155,10 @@
{{item.violateTime | date:"yyyy-MM-dd HH:mm:ss"}}
+
+ 已处置
+ 未处置
+
查看
diff --git a/src/app/pages/criminal-records/criminal-records.component.ts b/src/app/pages/criminal-records/criminal-records.component.ts
index b9c18f2..e3c2425 100644
--- a/src/app/pages/criminal-records/criminal-records.component.ts
+++ b/src/app/pages/criminal-records/criminal-records.component.ts
@@ -143,7 +143,7 @@ export class CriminalRecordsComponent implements OnInit {
left: '42px',
right: '30px',
bottom: '38px',
- top: '60px'
+ top: '80px'
}
};
baroption2 = {
diff --git a/src/app/pages/disposition/disposition.component.html b/src/app/pages/disposition/disposition.component.html
new file mode 100644
index 0000000..152f821
--- /dev/null
+++ b/src/app/pages/disposition/disposition.component.html
@@ -0,0 +1,21 @@
+
\ No newline at end of file
diff --git a/src/app/pages/disposition/disposition.component.scss b/src/app/pages/disposition/disposition.component.scss
new file mode 100644
index 0000000..b616fdb
--- /dev/null
+++ b/src/app/pages/disposition/disposition.component.scss
@@ -0,0 +1,85 @@
+.box {
+ .title {
+ font-family: sybold;
+ width: 100%;
+ height: 48px;
+ background: linear-gradient(270deg, rgba(35, 153, 255, 0) 0%, rgba(35, 153, 255, 0.57) 50%, rgba(35, 153, 255, 0) 100%);
+ display: flex;
+ align-items: center;
+ position: relative;
+
+ .titlecontent {
+ width: 100%;
+ height: 32px;
+ line-height: 32px;
+ background: linear-gradient(270deg, rgba(35, 153, 255, 0) 0%, rgba(35, 153, 255, 0.57) 50%, rgba(35, 153, 255, 0) 100%);
+ text-align: center;
+ color: #91CCFF;
+ font-size: 16px;
+ }
+
+ i {
+ position: absolute;
+ right: 12px;
+ color: #fff;
+ font-size: 18px;
+ cursor: pointer;
+ }
+ }
+
+ .form {
+ box-sizing: border-box;
+ padding: 0 17px;
+
+ p {
+ margin-bottom: 0;
+ color: #C4E2FC;
+ margin: 16px 0;
+ }
+
+ nz-form-item {
+ margin-bottom: 0;
+
+ textarea {
+ color: rgba(145, 204, 255, 0.95) !important;
+ width: 100%;
+ height: 300px;
+ background: #173d60;
+ }
+ }
+
+ nz-date-picker {
+ background-color: #143c61;
+ width: 100%;
+ }
+
+ .btnbox {
+ width: 100%;
+ margin-top: 24px;
+ margin-bottom: 17px;
+ display: flex;
+ justify-content: flex-end;
+
+ button {
+ border-radius: 0px;
+ color: #91CCFF;
+ }
+
+ button:nth-child(2) {
+ margin-left: 16px;
+ }
+
+ .ok {
+ background: rgba(0, 129, 255, 0.4);
+ }
+
+ .cancel {
+ border: 1px solid #C4E2FC;
+ background: #0c1e38;
+ color: rgba(99, 102, 105, 0.6);
+ box-shadow: 0 0 3px 0 #fff inset;
+ }
+ }
+ }
+
+}
diff --git a/src/app/pages/disposition/disposition.component.ts b/src/app/pages/disposition/disposition.component.ts
new file mode 100644
index 0000000..93ec6b3
--- /dev/null
+++ b/src/app/pages/disposition/disposition.component.ts
@@ -0,0 +1,33 @@
+import { Component, OnInit } from '@angular/core';
+import { NzModalRef } from 'ng-zorro-antd/modal';
+import { FormBuilder, FormGroup, Validators } from '@angular/forms';
+@Component({
+ selector: 'app-disposition',
+ templateUrl: './disposition.component.html',
+ styleUrls: ['./disposition.component.scss']
+})
+export class DispositionComponent implements OnInit {
+ validateForm!: FormGroup;
+ constructor(private modal: NzModalRef, private fb: FormBuilder) { }
+
+
+ peopleName:string
+
+ ngOnInit(): void {
+ if(sessionStorage.getItem('isGasStation') == 'true'){
+ this.peopleName = JSON.parse(sessionStorage.getItem('userdataOfgasstation')).name
+ }else{
+ this.peopleName = JSON.parse(sessionStorage.getItem('userdata')).name
+ }
+
+ this.validateForm = this.fb.group({
+ content: [null, [Validators.required]]
+ });
+ }
+ destroyModal(){
+ this.modal.destroy();
+ }
+ ok(){
+ this.modal.triggerOk()
+ }
+}
diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html
index 46dc0cf..f8c1dbb 100644
--- a/src/app/pages/home/home.component.html
+++ b/src/app/pages/home/home.component.html
@@ -59,4 +59,24 @@
-
\ No newline at end of file
+
+
+
+
+
+

+
+
+ 您有一条新的预警提醒!
+ {{item.notification.data.properties.ViolationName}}
+
+
+
+
\ No newline at end of file
diff --git a/src/app/pages/home/home.component.ts b/src/app/pages/home/home.component.ts
index a08734d..dfe18f8 100644
--- a/src/app/pages/home/home.component.ts
+++ b/src/app/pages/home/home.component.ts
@@ -1,14 +1,17 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, OnInit, ViewChild, TemplateRef, ViewContainerRef } from '@angular/core';
import { Router, NavigationEnd, ActivatedRoute } from '@angular/router';
import { Title } from '@angular/platform-browser'
import { filter } from 'rxjs/operators';
-import { NavChangeService } from 'src/app/service/navChange.service';
+import { NavChangeService } from '../../service/navChange.service';
import { CacheTokenService } from '../../service/cache-token.service' //引入服务
import { CookieService } from 'ngx-cookie-service';
import { NzMessageService } from 'ng-zorro-antd/message';
import { SignalRAspNetCoreHelper } from '../../../shared/helpers/SignalRAspNetCoreHelper';
-
-
+import { NzNotificationService } from 'ng-zorro-antd/notification';
+import { GetOutOfLineDetailsComponent } from '../today-warning/get-out-of-line-details/get-out-of-line-details.component';
+import { NzModalService } from 'ng-zorro-antd/modal';
+import { HttpClient } from '@angular/common/http';
+declare var abp: any
@Component({
selector: 'app-home',
@@ -16,9 +19,10 @@ import { SignalRAspNetCoreHelper } from '../../../shared/helpers/SignalRAspNetCo
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
+ @ViewChild('warning', { static: false }) template?: TemplateRef<{}>;
+ constructor(private http: HttpClient, private router: Router, private navChangeService: NavChangeService, public token: CacheTokenService,
+ private cookieService: CookieService, private message: NzMessageService, private notificationService: NzNotificationService, private modal: NzModalService, private viewContainerRef: ViewContainerRef) { }
- constructor(private router: Router, private navChangeService: NavChangeService, public token: CacheTokenService,
- private cookieService: CookieService, private message: NzMessageService) { }
isGasStationNav: boolean
isGasStation: boolean
isGasStationBack: boolean
@@ -78,13 +82,73 @@ export class HomeComponent implements OnInit {
this.userName = JSON.parse(sessionStorage.getItem('userdata')).userName
}
+
+
+ }
+ ngAfterViewInit() {
SignalRAspNetCoreHelper.initSignalR();
- abp.event.on('abp.notifications.received', function (userNotification) {
- console.log('abp.notifications.received成功收到了哈哈哈', userNotification);
+ abp.event.on('abp.notifications.received', (userNotification) => {
+ console.log('abp.notifications.received收到通知', userNotification);
+ this.receiptOfNotification(userNotification)
});
+ }
+ messageId = []
+ receiptOfNotification(userNotification) {
+ let obj = {
+ id: userNotification.notification.entityId,
+ messageId: this.notificationService.template(this.template!, { nzPlacement: 'bottomRight', nzClass: 'receiptOfNotification', nzDuration: 0, nzData: userNotification }).messageId
+ }
+ this.messageId.push(obj)
+ }
+
+ look(item) {
+ let params = {
+ id: item.notification.entityId
+ }
+ this.http.get('/api/services/app/ViolateRecord/Get', {
+ params: params
+ }).subscribe((data: any) => {
+ const modal = this.modal.create({
+ nzContent: GetOutOfLineDetailsComponent,
+ nzViewContainerRef: this.viewContainerRef,
+ nzWidth: 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)
+ }
+ })
+ })
}
+ close(item) {
+ // console.log(item)
+ this.messageId.forEach((element) => {
+ if (element.id == item.notification.entityId) {
+ this.notificationService.remove(element.messageId)
+ }
+ })
+ }
+
+ ngOnDestroy() {
+ abp.signalr.disconnect()
+ }
//获得时间
time: string
diff --git a/src/app/pages/left-domain/left-domain.component.ts b/src/app/pages/left-domain/left-domain.component.ts
index e263429..010427d 100644
--- a/src/app/pages/left-domain/left-domain.component.ts
+++ b/src/app/pages/left-domain/left-domain.component.ts
@@ -38,6 +38,8 @@ export class LeftDomainComponent implements OnInit {
//初始化组件
initComponent(type?: number) {
+ this.selectPlanId = null
+ this.selectNodeId = null
if (type != undefined && type != null) {
this.beforeFence = type
this.handleFacility()
@@ -50,12 +52,9 @@ export class LeftDomainComponent implements OnInit {
//处理 设备data
handleFacility() {
if (this.beforeFence === 7) { //应急预案
- MarkWindow.instance ? this.allMarkPlanData = MarkWindow.instance.allMarkPlanData : null
- EventManager.addListener(Event_GetAllMarkPlanData, (data: Event_GetAllMarkPlanData) => {
- this.allMarkPlanData = data.data
- PlanComponent.instance.allMarkPlanData = this.allMarkPlanData
- })
- PlanComponent.instance.allMarkPlanData = this.allMarkPlanData
+ if (MarkWindow.instance) {
+ this.allMarkPlanData = MarkWindow.instance.allMarkPlanData
+ }
return
}
let list: FacilityInfoUIItem[] = []
@@ -210,31 +209,33 @@ export class LeftDomainComponent implements OnInit {
//选中 数据节点
selectNode(item: MarkPlanData, e: MarkNodeData, index: number) {
if (this.selectPlanId != item.id || this.selectNodeId != e.id) { //选中
+ this.selectPlanId = item.id
+ this.selectNodeId = e.id
+ PlanComponent.instance.beforeEmergencyPlan = item
+ PlanComponent.instance.beforePlanNode = e
if (PlanComponent.instance.progressList.length != item.nodes.length) {
PlanComponent.instance.updateProgressList()
}
this.updateFatherData(index) //更新/初始化父组件 数据
- this.selectPlanId = item.id
- this.selectNodeId = e.id
+ PlanComponent.instance.initViewer()
MarkWindow.instance.selectMarkNode(item.id, e.id)
- PlanComponent.instance.beforeEmergencyPlan = item
PlanComponent.instance.beforePlanNode = MarkWindow.instance.currentMarkNodeInfo.nodeData
} else if (this.selectPlanId === item.id && this.selectNodeId === e.id) { //取消选中
+ this.selectPlanId = null
+ this.selectNodeId = null
PlanComponent.instance.beforeEmergencyPlan = new MarkPlanData(-99, "请选择节点")
PlanComponent.instance.beforePlanNode = new MarkNodeData(-99, "请选择节点")
this.updateFatherData(index) //更新/初始化父组件 数据
- this.selectPlanId = null
- this.selectNodeId = null
MarkWindow.instance.selectMarkNode(null, null)
}
}
//更新/初始化父组件 数据
updateFatherData(index) {
+ PlanComponent.instance.updateTimer? window.clearTimeout(PlanComponent.instance.updateTimer) : null //清除定时器
PlanComponent.instance.progressList.forEach((item,key)=>{ key >= index? PlanComponent.instance.progressList[key] = 0 : PlanComponent.instance.progressList[key] = 100 })
PlanComponent.instance.nzCurrent = index
PlanComponent.instance.isSuspend = true //暂停
- PlanComponent.instance.updateTimer? window.clearTimeout(PlanComponent.instance.updateTimer) : null //清除定时器
}
saveDisposalDialog: boolean = false; //整体保存预案 弹窗
diff --git a/src/app/pages/login/login.component.html b/src/app/pages/login/login.component.html
index ce7ecf1..5fc7bb9 100644
--- a/src/app/pages/login/login.component.html
+++ b/src/app/pages/login/login.component.html
@@ -61,18 +61,3 @@
-
-
-
-

-
-
- 您有一条新的预警提醒!
- 这是详细描述这是详细描述这是详细描述...
-
-
-
-
-
-
-
diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts
index 1fc96cf..7a6b72d 100644
--- a/src/app/pages/login/login.component.ts
+++ b/src/app/pages/login/login.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit, AfterViewInit, ViewChild, TemplateRef } from '@angular/core';
+import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http'
import { Router, ActivatedRoute } from '@angular/router'
import { CacheTokenService } from '../../service/cache-token.service'//引入服务
@@ -18,7 +18,6 @@ declare var abp: any
export class LoginComponent implements OnInit {
validateForm!: FormGroup;
- @ViewChild(TemplateRef, { static: false }) template?: TemplateRef<{}>;
constructor(private http: HttpClient, private router: Router, private route: ActivatedRoute, public token: CacheTokenService, private cookieService: CookieService, private fb: FormBuilder, private message: NzMessageService, private notificationService: NzNotificationService) { }
ngOnInit() {
@@ -149,10 +148,6 @@ export class LoginComponent implements OnInit {
)
}
- receiptOfNotification() {
- this.notificationService.template(this.template!, { nzPlacement: 'bottomRight', nzClass: 'receiptOfNotification', nzDuration: 0 });
- }
-
roleList = [
'管理员', '职工'
]
diff --git a/src/app/pages/oil-unloading-process/oil-unloading-process.component.html b/src/app/pages/oil-unloading-process/oil-unloading-process.component.html
new file mode 100644
index 0000000..fa9eb0d
--- /dev/null
+++ b/src/app/pages/oil-unloading-process/oil-unloading-process.component.html
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+ 事前准备
+
+
+
+
+
+

+
+
油罐车朝向检察
+
+
+
+

+
+
卸油效率检查
+
+
+
+

+
+
设置隔离检查
+
+
+
+

+
+
轮胎固定检察
+
+
+
+

+
+
放置灭火器检察
+
+
+
+

+
+
+
+

+
+
静电接地检查15分钟
+
+
+
+
+
+
+
+
+ 事中操作
+
+
+
+
+
+
+

+
+
卸油车取样
+
+
+
+

+
+
连接卸油管
+
+
+
+
+
+
+

+
+
+

+
+
1.第三方确认检查
+
+

+
+
+

+
+
2.拆除卸油管
+
+

+
+
+

+
+
3.作业现场清理
+
+

+
+
+

+
+
车辆出场
+
+
+
+
+
+
+
+
+
![]()
+
+
车辆进场
+
+
+

+
+
+ 卸油过程全程监测
+
+
+
+
卸油全程监卸
+
+

+

+
+
+
+
卸油员及司押人员服装
+
+

+
+
+
+
登车防护检查
+
+

+
+
+
+
油品泄漏检查
+
+

+
+
+
+
+
+
+
+
+
+
+

+
+
+
+

+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/app/pages/oil-unloading-process/oil-unloading-process.component.scss b/src/app/pages/oil-unloading-process/oil-unloading-process.component.scss
new file mode 100644
index 0000000..bfa4b73
--- /dev/null
+++ b/src/app/pages/oil-unloading-process/oil-unloading-process.component.scss
@@ -0,0 +1,344 @@
+.box {
+ width: 100%;
+ // height: 700px;
+ color: #fff;
+ display: flex;
+ flex-direction: column;
+ background-image: linear-gradient(#003B6E, #000D21);
+ position: relative;
+
+ ::-webkit-scrollbar {
+ display: none; /* Chrome Safari */
+ }
+ scrollbar-width: none; /* firefox */
+ -ms-overflow-style: none; /* IE 10+ */
+}
+
+.titlebox {
+ width: 100%;
+ height: 48px;
+ background: linear-gradient(270deg, rgba(35, 153, 255, 0) 0%, rgba(35, 153, 255, 0.57) 50%, rgba(35, 153, 255, 0) 100%);
+ display: flex;
+ align-items: center;
+
+ .title {
+ width: 100%;
+ height: 32px;
+ background: linear-gradient(270deg, rgba(35, 153, 255, 0) 0%, rgba(35, 153, 255, 0.57) 50%, rgba(35, 153, 255, 0) 100%);
+ display: flex;
+ justify-content: center;
+
+ div {
+ width: 120px;
+ height: 32px;
+ text-align: center;
+ line-height: 32px;
+ font-family: sybold;
+ font-size: 16px;
+ position: relative;
+ cursor: pointer;
+ margin: 0 18px;
+
+ .border {
+ position: absolute;
+ bottom: -7px;
+ left: -18px;
+ width: 120px;
+ height: 4px;
+ }
+ }
+
+ .selected {
+ background: linear-gradient(90deg, rgba(35, 153, 255, 0.57) 0%, #25b7d4 50%, rgba(35, 153, 255, 0.57) 100%);
+
+ .border {
+ background: linear-gradient(90deg, rgba(35, 217, 255, 0) 0%, #25b7d4 50%, rgba(35, 217, 255, 0) 100%);
+ }
+
+ }
+ }
+}
+
+.ant-modal-close {
+ color: #fff;
+}
+
+.content {
+ flex: 1;
+ box-sizing: border-box;
+ padding: 18px;
+ max-height: 700px;
+ overflow-y: auto;
+ position: relative;
+
+ .oilbox {
+ display: flex;
+ width: 100%;
+ height: 100%;
+ box-sizing: border-box;
+ padding: 18px 20px;
+
+ .title {
+ width: 100%;
+ height: 30px;
+ line-height: 30px;
+ background: rgba(35, 153, 255, 0.2);
+ text-align: left;
+ border-bottom: 1px solid rgba(54, 162, 255, 0.47);
+ box-sizing: border-box;
+ padding-left: 16px;
+ color: #36A2FF;
+
+ }
+
+ .leftbox {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: center;
+ margin-right: 70px;
+
+ .lefttop,
+ .leftbottom {
+ width: 840px;
+ border: 1px solid rgba(54, 162, 255, 0.47);
+ display: flex;
+
+ .title {
+ height: 100%;
+ width: 26px;
+ text-align: center;
+ padding: 0;
+ }
+
+ .content {
+ flex: 1;
+ background: #001d3c;
+ }
+ }
+
+ .lefttop {
+ margin-bottom: 16px;
+
+ .content {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: center;
+
+ .imglist1 {
+ width: 100%;
+ display: flex;
+ justify-content: space-around;
+ }
+
+ .line {
+ width: 80%;
+ display: flex;
+ margin-top: 6px;
+
+ div {
+ flex: 1;
+ height: 6px;
+ border-right: 1px solid #91CCFF;
+ border-bottom: 1px solid #91CCFF;
+ }
+
+ div:nth-child(1) {
+ border-left: 1px solid #91CCFF;
+ }
+ }
+
+ .imglist2 {
+ margin-top: -6px;
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ }
+ }
+ }
+
+ .leftbottom {
+ .content {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
+ align-items: center;
+
+ .colimglist {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+
+ .colimglist1 {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ .img {
+ margin: 0 50px;
+ }
+ }
+
+ .colline {
+ height: 6px;
+ width: 200px;
+ border-right: 1px solid #91CCFF;
+ border-left: 1px solid #91CCFF;
+ border-bottom: 1px solid #91CCFF;
+ }
+ }
+
+ width: 100%;
+
+ .goout1 {
+ position: absolute;
+ bottom: 52px;
+ right: 280px;
+ }
+
+ .goout2 {
+ position: absolute;
+ bottom: 18px;
+ right: 160px;
+ }
+ }
+
+ }
+ }
+
+ .rightbox {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+
+ .rightbottom {
+ width: 160px;
+ height: 538px;
+ display: flex;
+ flex-direction: column;
+ border: 1px solid rgba(54, 162, 255, 0.47);
+
+ .content {
+ padding: 6px;
+ flex: 1;
+ background: #001d3c;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
+ // align-items:;
+ .imgbox{
+ .name{
+ margin-bottom: 3px;
+ }
+ }
+ }
+ }
+ }
+
+ .imgbox {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+
+ .img {
+ width: 96px;
+ height: 64px;
+ box-shadow: 0px 0px 6px #36A2FF;
+ border: 1px solid #C4E2FC;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ position: relative;
+
+ img {
+ width: 100%;
+ height: 100%;
+ cursor: pointer;
+ }
+
+ .err {
+ width: 24px;
+ height: 24px;
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translate(-50%, -50%);
+ }
+ }
+
+ .selectedimg {
+ box-shadow: 0px 0px 8px #FF4B65;
+ border: 1px solid #FF4B65;
+ background: #3f213b;
+
+ img {
+ width: 24px;
+ height: 24px;
+ }
+ }
+
+ .errimg {
+ box-shadow: 0px 0px 8px #FF4B65;
+ border: 1px solid #FF4B65;
+ }
+
+ .name {
+ margin-top: 3px;
+ color: #FFFFFF;
+ font-size: 14px;
+ }
+
+ }
+ }
+
+ .topline{
+ position: absolute;
+ top: 18px;
+ right: 136px;
+ width: 576px;
+ height:16px;
+ border-top: 1px solid #91CCFF;
+ border-right: 1px solid #91CCFF;
+ }
+ .toplinearrows{
+ position: absolute;
+ top: 5px;
+ right: 690px;
+ }
+ .bottomlinearrows{
+ position: absolute;
+ bottom: -88px;
+ right: 428px;
+ }
+ .bottomline{
+ position: absolute;
+ bottom: -68px;
+ right: 136px;
+ width: 300px;
+ height: 17px;
+ border-bottom: 1px solid #91CCFF;
+ border-right: 1px solid #91CCFF;
+ }
+}
+
+
+.longleft1,
+.longleft2 {
+ position: absolute;
+}
+
+.longleft1 {
+ right: 213px;
+ top: 102px;
+}
+
+.longleft2 {
+ right: 250px;
+ bottom: 137px;
+ width: 100px;
+}
diff --git a/src/app/pages/oil-unloading-process/oil-unloading-process.component.ts b/src/app/pages/oil-unloading-process/oil-unloading-process.component.ts
new file mode 100644
index 0000000..42be27a
--- /dev/null
+++ b/src/app/pages/oil-unloading-process/oil-unloading-process.component.ts
@@ -0,0 +1,32 @@
+import { Component, OnInit, Input } from '@angular/core';
+import Viewer from 'viewerjs'
+@Component({
+ selector: 'app-oil-unloading-process',
+ templateUrl: './oil-unloading-process.component.html',
+ styleUrls: ['./oil-unloading-process.component.scss']
+})
+export class OilUnloadingProcessComponent implements OnInit {
+ @Input() data: any
+ constructor() { }
+
+ ngOnInit(): void {
+ }
+ lookImg() {
+ let dom = document.getElementById(`viewerjs`)
+ let pObjs = dom.childNodes;
+ let node = document.createElement("img")
+ node.style.display = "none";
+ node.src = "../../../../assets/images/bgImg.png";
+ node.id = 'img'
+ dom.appendChild(node)
+ setTimeout(() => {
+ let viewer = new Viewer(document.getElementById(`viewerjs`), {
+ hidden: () => {
+ dom.removeChild(pObjs[0]);
+ viewer.destroy();
+ }
+ });
+ node.click();
+ }, 0);
+ }
+}
diff --git a/src/app/pages/pages.module.ts b/src/app/pages/pages.module.ts
index e176876..70eb8c1 100644
--- a/src/app/pages/pages.module.ts
+++ b/src/app/pages/pages.module.ts
@@ -49,11 +49,13 @@ import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';
import { PlanAdminComponent } from './plan-admin/plan-admin.component';
import { GetOutOfLineDetailsComponent } from './today-warning/get-out-of-line-details/get-out-of-line-details.component';
import { NzNotificationModule } from 'ng-zorro-antd/notification';
+import { DispositionComponent } from './disposition/disposition.component';
+import { OilUnloadingProcessComponent } from './oil-unloading-process/oil-unloading-process.component';
@NgModule({
declarations: [LoginComponent, RegisterComponent, HomeComponent, PlanComponent, TodayWarningComponent, CriminalRecordsComponent,
TodayWarningAdminComponent, CriminalRecordsAdminComponent, LeftDomainComponent, EquipmentInfoComponent, OilStationInfoComponent,
- AddequipmentComponent, EditequipmentComponent,PlanAdminComponent, GetOutOfLineDetailsComponent],
+ AddequipmentComponent, EditequipmentComponent,PlanAdminComponent, GetOutOfLineDetailsComponent, DispositionComponent, OilUnloadingProcessComponent],
imports: [
@@ -94,7 +96,7 @@ import { NzNotificationModule } from 'ng-zorro-antd/notification';
NzPopconfirmModule,
NzBadgeModule
],
- entryComponents: [AddequipmentComponent, EditequipmentComponent,GetOutOfLineDetailsComponent],
+ entryComponents: [AddequipmentComponent, EditequipmentComponent,GetOutOfLineDetailsComponent,DispositionComponent,OilUnloadingProcessComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
diff --git a/src/app/pages/plan-admin/plan-admin.component.html b/src/app/pages/plan-admin/plan-admin.component.html
index e30c6b0..97fec22 100644
--- a/src/app/pages/plan-admin/plan-admin.component.html
+++ b/src/app/pages/plan-admin/plan-admin.component.html
@@ -5,9 +5,9 @@