刘向辉 3 years ago
parent
commit
c1201465bd
  1. 10
      src/app/pages/home-page/home-page.component.html
  2. 5
      src/app/pages/home-page/home-page.component.scss
  3. 5
      src/app/pages/home-page/home-page.component.ts
  4. 1
      src/app/pages/left-domain/left-domain.component.ts
  5. 2
      src/app/pages/login/login.component.ts
  6. 4
      src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.html
  7. 26
      src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.ts
  8. 306
      src/app/pages/oil-unloading-process/oil-unloading-process.component.html
  9. 372
      src/app/pages/oil-unloading-process/oil-unloading-process.component.scss
  10. 42
      src/app/pages/oil-unloading-process/oil-unloading-process.component.ts
  11. 2
      src/app/pages/plan-admin/plan-admin.component.html
  12. BIN
      src/assets/images/bluebg.png
  13. BIN
      src/assets/images/bottomArrow.png
  14. BIN
      src/assets/images/bottomArrow2.png
  15. BIN
      src/assets/images/down.png
  16. BIN
      src/assets/images/left.png
  17. BIN
      src/assets/images/left2.png
  18. BIN
      src/assets/images/left3.png
  19. BIN
      src/assets/images/logo.png
  20. BIN
      src/assets/images/longleft.png
  21. BIN
      src/assets/images/noImg.png
  22. BIN
      src/assets/images/right.png
  23. BIN
      src/assets/images/right2.png
  24. BIN
      src/assets/images/right3.png
  25. BIN
      src/assets/images/rightArrow.png
  26. BIN
      src/assets/images/upload.jpg
  27. BIN
      src/assets/images/upload.png
  28. BIN
      src/assets/images/yellowbg.png

10
src/app/pages/home-page/home-page.component.html

@ -150,22 +150,22 @@
<div class="numlistbox"> <div class="numlistbox">
<img src="../../../assets/images/stationNum.png" alt=""> <img src="../../../assets/images/stationNum.png" alt="">
<div class="content"> <div class="content">
<span class="lightspan lightspan1">120</span> <span class="lightspan lightspan1">{{HomeAggregatioData.dev.stationCount}}</span>
<span>接入油站(个)</span> <span>接入油站(个)</span>
</div> </div>
</div> </div>
<div class="numlistbox"> <div class="numlistbox">
<img src="../../../assets/images/modelNum.png" alt=""> <img src="../../../assets/images/modelNum.png" alt="">
<div class="content"> <div class="content">
<span class="lightspan lightspan2">120</span> <span class="lightspan lightspan2">{{HomeAggregatioData.dev.violationCount}}</span>
<span>接入油站(个)</span> <span>加油站模型(个)</span>
</div> </div>
</div> </div>
<div class="numlistbox"> <div class="numlistbox">
<img src="../../../assets/images/cameraNum.png" alt=""> <img src="../../../assets/images/cameraNum.png" alt="">
<div class="content"> <div class="content">
<span class="lightspan lightspan3">120</span> <span class="lightspan lightspan3">{{HomeAggregatioData.dev.cameraCount}}</span>
<span>接入油站(个)</span> <span>摄像头(个)</span>
</div> </div>
</div> </div>
<div class="angle-border left-top-border"></div> <div class="angle-border left-top-border"></div>

5
src/app/pages/home-page/home-page.component.scss

@ -297,13 +297,10 @@
.yellow { .yellow {
background-color: #FF9963; background-color: #FF9963;
// background-image: url(../../../assets/images/yellowbg.png);
} }
.blue { .blue {
background-color: #36A2FF; background-color: #36A2FF;
// background-image: url(../../../assets/images/bluebg.png);
} }
} }
@ -397,7 +394,7 @@
.numlistbox { .numlistbox {
height: 64px; height: 64px;
width: 60%; width: 61%;
display: flex; display: flex;
img { img {

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

@ -271,6 +271,11 @@ export class HomePageComponent implements OnInit {
areaAgg: [], areaAgg: [],
violationType: { violationType: {
violationTypeAgg: [] violationTypeAgg: []
},
dev:{
stationCount:'',
violationCount:'',
cameraCount:''
} }
} }
totalCount totalCount

1
src/app/pages/left-domain/left-domain.component.ts

@ -283,7 +283,6 @@ export class LeftDomainComponent implements OnInit {
this.updateFatherData(index) //更新/初始化父组件 数据 this.updateFatherData(index) //更新/初始化父组件 数据
PlanComponent.instance.initViewer() PlanComponent.instance.initViewer()
MarkWindow.instance.selectMarkNode(item.id, e.id) MarkWindow.instance.selectMarkNode(item.id, e.id)
PlanComponent.instance.beforePlanNode = MarkWindow.instance.currentMarkNodeInfo.nodeData
} else if (this.selectPlanId === item.id && this.selectNodeId === e.id) { //取消选中 } else if (this.selectPlanId === item.id && this.selectNodeId === e.id) { //取消选中
this.selectPlanId = null this.selectPlanId = null
this.selectNodeId = null this.selectNodeId = null

2
src/app/pages/login/login.component.ts

@ -125,7 +125,7 @@ export class LoginComponent implements OnInit {
this.router.navigate(['/warning/petrolStation']) this.router.navigate(['/warning/petrolStation'])
} else { } else {
sessionStorage.setItem("isGasStation", 'false'); sessionStorage.setItem("isGasStation", 'false');
this.router.navigate(['/plan']) this.router.navigate(['/homepage'])
} }
} }
this.message.create('success', `登陆成功`); this.message.create('success', `登陆成功`);

4
src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.html

@ -33,7 +33,7 @@
<div class="rightbox"> <div class="rightbox">
<span class="chartname"> <span class="chartname">
<img src="../../../assets/images/flower.png" alt=""> <img src="../../../assets/images/flower.png" alt="">
一个月卸油预警走势 30天卸油作业总数走势
</span> </span>
<div class="barchart" id="barchart"> <div class="barchart" id="barchart">
@ -152,7 +152,7 @@
</ng-template> </ng-template>
</div> </div>
<div nz-col nzSpan="2"> <div nz-col nzSpan="2">
<span style="color: #36A2FF;" (click)="look(item)">查看</span> <span style="color: #36A2FF;cursor: pointer;" (click)="look(item)">查看</span>
</div> </div>
</div> </div>
</div> </div>

26
src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.ts

@ -161,7 +161,6 @@ export class OilUnloadingProcessListComponent implements OnInit {
show: false show: false
}, },
inverse: true inverse: true
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
@ -359,9 +358,6 @@ export class OilUnloadingProcessListComponent implements OnInit {
data: [], data: [],
type: 'bar', type: 'bar',
itemStyle: { itemStyle: {
normal: {
color: '#36A2FF', //柱状颜色
},
color: { color: {
type: 'linear', type: 'linear',
x: 0, x: 0,
@ -369,9 +365,9 @@ export class OilUnloadingProcessListComponent implements OnInit {
x2: 0, x2: 0,
y2: 1, y2: 1,
colorStops: [{ colorStops: [{
offset: 0, color: '#23F0FF' // 0% 处的颜色 offset: 0, color: 'rgba(54, 162, 255, 1)' // 0% 处的颜色
}, { }, {
offset: 1, color: 'rgba(35, 153, 255, 0.1)' // 100% 处的颜色 offset: 1, color: 'rgba(54, 162, 255, 0.1)' // 100% 处的颜色
}], }],
global: false // 缺省为 false global: false // 缺省为 false
} }
@ -383,9 +379,6 @@ export class OilUnloadingProcessListComponent implements OnInit {
data: [], data: [],
type: 'bar', type: 'bar',
itemStyle: { itemStyle: {
normal: {
color: '#FFBD4B', //柱状颜色
},
color: { color: {
type: 'linear', type: 'linear',
x: 0, x: 0,
@ -393,9 +386,9 @@ export class OilUnloadingProcessListComponent implements OnInit {
x2: 0, x2: 0,
y2: 1, y2: 1,
colorStops: [{ colorStops: [{
offset: 0, color: '#23F0FF' // 0% 处的颜色 offset: 0, color: 'rgba(255, 189, 75, 1)' // 0% 处的颜色
}, { }, {
offset: 1, color: 'rgba(35, 153, 255, 0.1)' // 100% 处的颜色 offset: 1, color: 'rgba(255, 189, 75, 0.1)' // 100% 处的颜色
}], }],
global: false // 缺省为 false global: false // 缺省为 false
} }
@ -407,9 +400,6 @@ export class OilUnloadingProcessListComponent implements OnInit {
data: [], data: [],
type: 'bar', type: 'bar',
itemStyle: { itemStyle: {
normal: {
color: '#46DFFF', //柱状颜色
},
color: { color: {
type: 'linear', type: 'linear',
x: 0, x: 0,
@ -417,9 +407,9 @@ export class OilUnloadingProcessListComponent implements OnInit {
x2: 0, x2: 0,
y2: 1, y2: 1,
colorStops: [{ colorStops: [{
offset: 0, color: '#23F0FF' // 0% 处的颜色 offset: 0, color: 'rgba(70, 223, 255, 1)' // 0% 处的颜色
}, { }, {
offset: 1, color: 'rgba(35, 153, 255, 0.1)' // 100% 处的颜色 offset: 1, color: 'rgba(70, 223, 255, 0.1)' // 100% 处的颜色
}], }],
global: false // 缺省为 false global: false // 缺省为 false
} }
@ -448,7 +438,6 @@ export class OilUnloadingProcessListComponent implements OnInit {
this.myChart.setOption({ this.myChart.setOption({
legend: { selected: { [params.name]: true } } legend: { selected: { [params.name]: true } }
}) })
console.log('点击了', params.name);
if (params.name == '预警事件') { if (params.name == '预警事件') {
this.isgoback = true this.isgoback = true
this.refreshEchartsData2(this.echartsData) this.refreshEchartsData2(this.echartsData)
@ -500,6 +489,7 @@ export class OilUnloadingProcessListComponent implements OnInit {
} }
goback() { goback() {
this.isgoback = false this.isgoback = false
this.mybarChart.clear();
this.refreshEchartsData1(this.echartsData) this.refreshEchartsData1(this.echartsData)
} }
//获取统计信息 //获取统计信息
@ -594,7 +584,7 @@ export class OilUnloadingProcessListComponent implements OnInit {
const modal = this.modal.create({ const modal = this.modal.create({
nzContent: OilUnloadingProcessComponent, nzContent: OilUnloadingProcessComponent,
nzViewContainerRef: this.viewContainerRef, nzViewContainerRef: this.viewContainerRef,
nzWidth: 1200, nzWidth: 1000,
nzBodyStyle: { nzBodyStyle: {
'border': '1px solid #6d9cc7', 'border': '1px solid #6d9cc7',
'border-radius': '0px', 'border-radius': '0px',

306
src/app/pages/oil-unloading-process/oil-unloading-process.component.html

@ -7,173 +7,185 @@
</div> </div>
</div> </div>
</div> </div>
<div class="content"> <div class="contentbox">
<div class="oilbox"> <div class="topbox">
<div class="leftbox"> <div class="title">
<div class="lefttop" > 卸油前准备
<div class="title"> </div>
事前准备 <div class="content content1">
<div class="imgbox">
<span class="timespan"
[ngClass]="{'timespanerr': !data.oilUnloadingNodes[0].isCorrect || !data.oilUnloadingNodes[0].violateImage}"><i
nz-icon nzType="clock-circle" nzTheme="outline"></i>{{data.oilUnloadingNodes[0].violateTime ? (data.oilUnloadingNodes[0].violateTime | date:"MM-dd HH:mm:ss") : '/'}}</span>
<div class="img" (click)="lookImg(data.oilUnloadingNodes[0].violateImage)" [ngClass]="{'selectedimg': !data.oilUnloadingNodes[0].violateImage}">
<img [src]="data.oilUnloadingNodes[0].violateImage ? data.oilUnloadingNodes[0].violateImage : '../../../../assets/images/nopng.png'"
alt="">
<img *ngIf="!data.oilUnloadingNodes[0].isCorrect" class="err"
src="../../../../assets/images/err.png" alt="">
</div> </div>
<div class="content"> <span class="name">油罐车进场</span>
<div class="imglist1"> </div>
<div class="imgbox"> <img src="../../../assets/images/rightArrow.png" alt="">
<div class="img"> <div class="imgbox">
<img src="../../../../assets/images/bgImg.png" alt=""> <span class="timespan"
</div> [ngClass]="{'timespanerr': !data.oilUnloadingNodes[3].isCorrect || !data.oilUnloadingNodes[3].violateImage}"><i
<span class="name">油罐车朝向检察</span> nz-icon nzType="clock-circle" nzTheme="outline"></i>{{data.oilUnloadingNodes[3].violateTime ? (data.oilUnloadingNodes[3].violateTime | date:"MM-dd HH:mm:ss") : '/'}}</span>
</div> <div class="img" (click)="lookImg(data.oilUnloadingNodes[3].violateImage)" [ngClass]="{'selectedimg': !data.oilUnloadingNodes[3].violateImage}">
<div class="imgbox"> <img [src]="data.oilUnloadingNodes[3].violateImage ? data.oilUnloadingNodes[3].violateImage : '../../../../assets/images/nopng.png'"
<div class="img"> alt="">
<img src="../../../../assets/images/bgImg.png" alt=""> <img *ngIf="!data.oilUnloadingNodes[3].isCorrect" class="err"
</div> src="../../../../assets/images/err.png" alt="">
<span class="name">卸油效率检查</span>
</div>
<div class="imgbox">
<div class="img">
<img src="../../../../assets/images/bgImg.png" alt="">
</div>
<span class="name">设置隔离检查</span>
</div>
<div class="imgbox">
<div class="img">
<img src="../../../../assets/images/bgImg.png" alt="">
</div>
<span class="name">轮胎固定检察</span>
</div>
<div class="imgbox">
<div class="img">
<img src="../../../../assets/images/bgImg.png" alt="">
</div>
<span class="name">放置灭火器检察</span>
</div>
</div>
<div class="line">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<img style="height: 42px;" src="../../../../assets/images/down.png" alt="">
<div class="imglist2">
<div class="imgbox">
<div class="img">
<img src="../../../../assets/images/bgImg.png" alt="">
</div>
<span class="name">静电接地检查15分钟</span>
</div>
</div>
</div> </div>
<span class="name">设置隔离区域</span>
</div> </div>
<img src="../../../assets/images/rightArrow.png" alt="">
<!-- <img style="height: 42px;" src="../../../../assets/images/down.png" alt=""> --> <div class="imgbox">
<div class="leftbottom"> <span class="timespan"
<div class="title"> [ngClass]="{'timespanerr': !data.oilUnloadingNodes[4].isCorrect || !data.oilUnloadingNodes[4].violateImage}"><i
事中操作 nz-icon nzType="clock-circle" nzTheme="outline"></i>{{data.oilUnloadingNodes[4].violateTime ? (data.oilUnloadingNodes[4].violateTime | date:"MM-dd HH:mm:ss") : '/'}}</span>
<div class="img" (click)="lookImg(data.oilUnloadingNodes[4].violateImage)" [ngClass]="{'selectedimg': !data.oilUnloadingNodes[4].violateImage}">
<img [src]="data.oilUnloadingNodes[4].violateImage ? data.oilUnloadingNodes[4].violateImage : '../../../../assets/images/nopng.png'"
alt="">
<img *ngIf="!data.oilUnloadingNodes[4].isCorrect" class="err"
src="../../../../assets/images/err.png" alt="">
</div> </div>
<div class="content"> <span class="name">固定罐车轮胎</span>
<div class="colimglist"> </div>
<div class="colimglist1"> <img src="../../../assets/images/rightArrow.png" alt="">
<div class="imgbox"> <div class="imgbox">
<div class="img"> <span class="timespan"
<img src="../../../../assets/images/bgImg.png" alt=""> [ngClass]="{'timespanerr': !data.oilUnloadingNodes[6].isCorrect || !data.oilUnloadingNodes[6].violateImage}"><i
</div> nz-icon nzType="clock-circle" nzTheme="outline"></i>{{data.oilUnloadingNodes[6].violateTime ? (data.oilUnloadingNodes[6].violateTime | date:"MM-dd HH:mm:ss") : '/'}}</span>
<span class="name">卸油车取样</span> <div class="img" (click)="lookImg(data.oilUnloadingNodes[6].violateImage)" [ngClass]="{'selectedimg': !data.oilUnloadingNodes[6].violateImage}">
</div> <img [src]="data.oilUnloadingNodes[6].violateImage ? data.oilUnloadingNodes[6].violateImage : '../../../../assets/images/nopng.png'"
<div class="imgbox"> alt="">
<div class="img"> <img *ngIf="!data.oilUnloadingNodes[6].isCorrect" class="err"
<img src="../../../../assets/images/bgImg.png" alt=""> src="../../../../assets/images/err.png" alt="">
</div> </div>
<span class="name">连接卸油管</span> <span class="name">连接静电接地</span>
</div> </div>
</div> <img src="../../../assets/images/rightArrow.png" alt="">
<div class="colline"> <div class="imgbox">
<span class="timespan"
[ngClass]="{'timespanerr': !data.oilUnloadingNodes[5].isCorrect || !data.oilUnloadingNodes[5].violateImage}"><i
nz-icon nzType="clock-circle" nzTheme="outline"></i>{{data.oilUnloadingNodes[5].violateTime ? (data.oilUnloadingNodes[5].violateTime | date:"MM-dd HH:mm:ss") : '/'}}</span>
<div class="img" (click)="lookImg(data.oilUnloadingNodes[5].violateImage)" [ngClass]="{'selectedimg': !data.oilUnloadingNodes[5].violateImage}">
<img [src]="data.oilUnloadingNodes[5].violateImage ? data.oilUnloadingNodes[5].violateImage : '../../../../assets/images/nopng.png'"
alt="">
<img *ngIf="!data.oilUnloadingNodes[5].isCorrect" class="err"
src="../../../../assets/images/err.png" alt="">
</div>
<span class="name">放置消防器材</span>
</div>
</div>
</div>
</div>
</div> <img class="bottomArrow" src="../../../assets/images/bottomArrow.png" alt="">
<img style="height: 42px;" src="../../../../assets/images/down.png" alt="">
<div class="imgbox">
<div class="img"> <div class="bottombox">
<img src="../../../../assets/images/bgImg.png" alt=""> <div class="title">
</div> 卸油操作
<span class="name">1.第三方确认检查</span> </div>
</div> <div class="content content2">
<img style="height: 42px;" src="../../../../assets/images/down.png" alt=""> <div class="colimglist">
<div class="imgbox"> <div class="imgbox">
<div class="img"> <span class="timespan"
<img src="../../../../assets/images/bgImg.png" alt=""> [ngClass]="{'timespanerr': !data.oilUnloadingNodes[7].isCorrect || !data.oilUnloadingNodes[7].violateImage}"><i
</div> nz-icon nzType="clock-circle" nzTheme="outline"></i>{{data.oilUnloadingNodes[7].violateTime ? (data.oilUnloadingNodes[7].violateTime | date:"MM-dd HH:mm:ss") : '/'}}</span>
<span class="name">2.拆除卸油管</span> <div class="img" (click)="lookImg(data.oilUnloadingNodes[7].violateImage)" [ngClass]="{'selectedimg': !data.oilUnloadingNodes[7].violateImage}">
</div> <img [src]="data.oilUnloadingNodes[7].violateImage ? data.oilUnloadingNodes[7].violateImage : '../../../../assets/images/nopng.png'"
<img style="height: 42px;" src="../../../../assets/images/down.png" alt=""> alt="">
<div class="imgbox"> <img *ngIf="!data.oilUnloadingNodes[7].isCorrect" class="err"
<div class="img"> src="../../../../assets/images/err.png" alt="">
<img src="../../../../assets/images/bgImg.png" alt="">
</div>
<span class="name">3.作业现场清理</span>
</div> </div>
<img class="goout1" style="height: 42px;" src="../../../../assets/images/right3.png" alt=""> <span class="name">取样检查</span>
<div class="imgbox goout2"> </div>
<div class="img">
<img src="../../../../assets/images/bgImg.png" alt=""> <img class="rightArrow" src="../../../assets/images/rightArrow.png" alt="">
</div> <div class="imgbox">
<span class="name">车辆出场</span> <span class="timespan"
[ngClass]="{'timespanerr': !data.oilUnloadingNodes[8].isCorrect || !data.oilUnloadingNodes[8].violateImage}"><i
nz-icon nzType="clock-circle" nzTheme="outline"></i>{{data.oilUnloadingNodes[8].violateTime ? (data.oilUnloadingNodes[8].violateTime | date:"MM-dd HH:mm:ss") : '/'}}</span>
<div class="img" (click)="lookImg(data.oilUnloadingNodes[8].violateImage)" [ngClass]="{'selectedimg': !data.oilUnloadingNodes[8].violateImage}">
<img [src]="data.oilUnloadingNodes[8].violateImage ? data.oilUnloadingNodes[8].violateImage : '../../../../assets/images/nopng.png'"
alt="">
<img *ngIf="!data.oilUnloadingNodes[8].isCorrect" class="err"
src="../../../../assets/images/err.png" alt="">
</div> </div>
<span class="name">连接卸油管</span>
</div> </div>
</div> <img class="rightArrow" src="../../../assets/images/rightArrow.png" alt="">
</div>
<div class="rightbox">
<div class="righttop">
<div class="imgbox"> <div class="imgbox">
<div class="img selectedimg"> <span class="timespan"
<img [src]="'' ? '' : '../../../../assets/images/nopng.png'" alt=""> [ngClass]="{'timespanerr': !data.oilUnloadingNodes[9].isCorrect || !data.oilUnloadingNodes[9].violateImage}"><i
nz-icon nzType="clock-circle" nzTheme="outline"></i>{{data.oilUnloadingNodes[9].violateTime ? (data.oilUnloadingNodes[9].violateTime | date:"MM-dd HH:mm:ss") : '/'}}</span>
<div class="img" (click)="lookImg(data.oilUnloadingNodes[9].violateImage)" [ngClass]="{'selectedimg': !data.oilUnloadingNodes[9].violateImage}">
<img [src]="data.oilUnloadingNodes[9].violateImage ? data.oilUnloadingNodes[9].violateImage : '../../../../assets/images/nopng.png'"
alt="">
<img *ngIf="!data.oilUnloadingNodes[9].isCorrect" class="err"
src="../../../../assets/images/err.png" alt="">
</div> </div>
<span class="name">车辆进场</span> <span class="name">第三方确认</span>
</div> </div>
</div> </div>
<img style="height: 42px;margin: 18px 0;" src="../../../../assets/images/down.png" alt="">
<div class="rightbottom"> <div class="colimglist">
<div class="title" style="text-align: center;"> <div class="imgbox">
卸油过程全程监测 <!-- <span class="timespan"><i nz-icon nzType="clock-circle" nzTheme="outline"></i>暂无步骤</span>
<div class="img">
<img src="../../../../assets/images/bgImg.png" alt="">
</div> -->
<span class="name">开始卸油</span>
</div> </div>
<div class="content"> <img class="rightArrow" src="../../../assets/images/rightArrow.png" alt="">
<div class="imgbox"> <div class="imgbox">
<span class="name">卸油全程监卸</span> <span class="timespan"
<div class="img errimg"> [ngClass]="{'timespanerr': !data.oilUnloadingNodes[10].isCorrect || !data.oilUnloadingNodes[10].violateImage}"><i
<img src="../../../../assets/images/bgImg.png" alt=""> nz-icon nzType="clock-circle" nzTheme="outline"></i>{{data.oilUnloadingNodes[10].violateTime ? (data.oilUnloadingNodes[10].violateTime | date:"MM-dd HH:mm:ss") : '/'}}</span>
<img class="err" src="../../../../assets/images/err.png" alt=""> <div class="img" (click)="lookImg(data.oilUnloadingNodes[10].violateImage)" [ngClass]="{'selectedimg': !data.oilUnloadingNodes[10].violateImage}">
</div> <img [src]="data.oilUnloadingNodes[10].violateImage ? data.oilUnloadingNodes[10].violateImage : '../../../../assets/images/nopng.png'"
</div> alt="">
<div class="imgbox"> <img *ngIf="!data.oilUnloadingNodes[10].isCorrect" class="err"
<span class="name">卸油员及司押人员服装</span> src="../../../../assets/images/err.png" alt="">
<div class="img">
<img (click)="lookImg()" src="../../../../assets/images/bgImg.png" alt="">
</div>
</div> </div>
<div class="imgbox"> <span class="name">全程监卸</span>
<span class="name">登车防护检查</span> </div>
<div class="img"> <img class="rightArrow" src="../../../assets/images/rightArrow.png" alt="">
<img (click)="lookImg()" src="../../../../assets/images/bgImg.png" alt=""> <div class="imgbox">
</div> <span class="timespan"
[ngClass]="{'timespanerr': !data.oilUnloadingNodes[11].isCorrect || !data.oilUnloadingNodes[11].violateImage}"><i
nz-icon nzType="clock-circle" nzTheme="outline"></i>{{data.oilUnloadingNodes[11].violateTime ? (data.oilUnloadingNodes[11].violateTime | date:"MM-dd HH:mm:ss") : '/'}}</span>
<div class="img" (click)="lookImg(data.oilUnloadingNodes[11].violateImage)" [ngClass]="{'selectedimg': !data.oilUnloadingNodes[11].violateImage}">
<img [src]="data.oilUnloadingNodes[11].violateImage ? data.oilUnloadingNodes[11].violateImage : '../../../../assets/images/nopng.png'"
alt="">
<img *ngIf="!data.oilUnloadingNodes[11].isCorrect" class="err"
src="../../../../assets/images/err.png" alt="">
</div> </div>
<div class="imgbox"> <span class="name">拆除卸油管</span>
<span class="name">油品泄漏检查</span> </div>
<div class="img"> <img class="rightArrow" src="../../../assets/images/rightArrow.png" alt="">
<img src="../../../../assets/images/bgImg.png" alt=""> <div class="imgbox">
</div> <span class="timespan"
[ngClass]="{'timespanerr': !data.oilUnloadingNodes[12].isCorrect || !data.oilUnloadingNodes[12].violateImage}"><i
nz-icon nzType="clock-circle" nzTheme="outline"></i>{{data.oilUnloadingNodes[12].violateTime ? (data.oilUnloadingNodes[12].violateTime | date:"MM-dd HH:mm:ss") : '/'}}</span>
<div class="img" (click)="lookImg(data.oilUnloadingNodes[12].violateImage)" [ngClass]="{'selectedimg': !data.oilUnloadingNodes[12].violateImage}">
<img [src]="data.oilUnloadingNodes[12].violateImage ? data.oilUnloadingNodes[12].violateImage : '../../../../assets/images/nopng.png'"
alt="">
<img *ngIf="!data.oilUnloadingNodes[12].isCorrect" class="err"
src="../../../../assets/images/err.png" alt="">
</div> </div>
<span class="name">清理现场</span>
</div> </div>
</div> </div>
</div>
</div>
<div class="topline">
</div>
<img class="toplinearrows" style="height: 42px;" src="../../../../assets/images/down.png" alt="">
<div class="bottomline">
<div class="line"></div>
<div class="line2"></div>
<img class="bottomArrow2" src="../../../assets/images/bottomArrow2.png" alt="">
</div>
</div> </div>
<img class="bottomlinearrows" style="height: 42px;" src="../../../../assets/images/left3.png" alt="">
</div> </div>
</div> </div>

372
src/app/pages/oil-unloading-process/oil-unloading-process.component.scss

@ -1,17 +1,20 @@
.box { .box {
width: 100%; width: 100%;
// height: 700px;
color: #fff; color: #fff;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-image: linear-gradient(#003B6E, #000D21); background-image: linear-gradient(#003B6E, #000D21);
position: relative; position: relative;
::-webkit-scrollbar { ::-webkit-scrollbar {
display: none; /* Chrome Safari */ display: none;
/* Chrome Safari */
} }
scrollbar-width: none; /* firefox */
-ms-overflow-style: none; /* IE 10+ */ scrollbar-width: none;
/* firefox */
-ms-overflow-style: none;
/* IE 10+ */
} }
.titlebox { .titlebox {
@ -63,282 +66,175 @@
color: #fff; color: #fff;
} }
.content { .contentbox {
flex: 1; flex: 1;
width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 18px; padding: 18px;
max-height: 700px; max-height: 700px;
overflow-y: auto; overflow-y: auto;
position: relative; position: relative;
display: flex;
flex-direction: column;
align-items: center;
.oilbox { .topbox,
.bottombox {
display: flex; display: flex;
width: 100%; border: 1px solid rgba(54, 162, 255, 0.4);
height: 100%;
box-sizing: border-box;
padding: 18px 20px;
.title { .title {
width: 100%; width: 28px;
height: 30px; height: 100%;
line-height: 30px; border-right: 1px solid rgba(54, 162, 255, 0.4);
background: rgba(35, 153, 255, 0.2); background: #052c53;
text-align: left; line-height: 20px;
border-bottom: 1px solid rgba(54, 162, 255, 0.47); font-size: 14px;
box-sizing: border-box;
padding-left: 16px;
color: #36A2FF; color: #36A2FF;
text-align: center;
box-sizing: border-box;
padding-top: 20px;
}
.content {
flex: 1;
background: #001631;
} }
.leftbox { .content1 {
display: flex; display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center; align-items: center;
margin-right: 70px; justify-content: space-around;
box-sizing: border-box;
padding: 0 30px;
}
.lefttop, .content2 {
.leftbottom { display: flex;
width: 840px; flex-direction: column;
border: 1px solid rgba(54, 162, 255, 0.47); justify-content: space-around;
align-content: center;
position: relative;
.colimglist {
display: flex; display: flex;
justify-content: center;
align-items: center;
}
.title { .rightArrow {
height: 100%; width: 40px;
width: 26px; height: 38px;
text-align: center; margin: 0 12px;
padding: 0;
}
.content {
flex: 1;
background: #001d3c;
}
} }
.lefttop { .line {
margin-bottom: 16px; position: absolute;
width: 465px;
.content { height: 10px;
display: flex; border-bottom: 1px solid #91CCFF;
flex-direction: column; border-right: 1px solid #91CCFF;
justify-content: space-between; left: 190px;
align-items: center; top: 180px;
.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 { .line2 {
.content { position: absolute;
position: relative; width: 1px;
display: flex; height: 6px;
flex-direction: column; border-right: 1px solid #91CCFF;
justify-content: space-around; left: 190px;
align-items: center; top: 190px;
}
.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;
}
}
.bottomArrow2 {
position: absolute;
left: 172px;
top: 187px;
} }
} }
}
.rightbox { .topbox {
flex: 1; width: 100%;
display: flex; height: 184px;
flex-direction: column; }
align-items: center;
.rightbottom { .bottombox {
width: 160px; width: 100%;
height: 538px; height: 384px;
display: flex; }
flex-direction: column;
border: 1px solid rgba(54, 162, 255, 0.47); .bottomArrow {
margin: 13px 0;
.content { }
padding: 6px;
flex: 1; .imgbox {
background: #001d3c; display: flex;
display: flex; flex-direction: column;
flex-direction: column; justify-content: center;
justify-content: space-around; align-items: center;
// align-items:;
.imgbox{ .timespan {
.name{ i {
margin-bottom: 3px; margin-right: 6px;
}
}
}
} }
color: #36A2FF;
} }
.timespanerr{
.imgbox { color: #FF4B65;
}
.img {
width: 120px;
height: 80px;
box-shadow: 0px 0px 6px #36A2FF;
border: 1px solid #C4E2FC;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
position: relative;
margin: 8px 0;
.img { img {
width: 96px; width: 100%;
height: 64px; height: 100%;
box-shadow: 0px 0px 6px #36A2FF; cursor: pointer;
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 { .err {
margin-top: 3px; width: 24px;
color: #FFFFFF; height: 24px;
font-size: 14px; position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
} }
} }
}
.topline{ .selectedimg {
position: absolute; box-shadow: 0px 0px 8px #FF4B65;
top: 18px; border: 1px solid #FF4B65;
right: 136px; background: #3f213b;
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;
}
}
img {
width: 24px;
height: 24px;
}
}
.longleft1, .errimg {
.longleft2 { box-shadow: 0px 0px 8px #FF4B65;
position: absolute; border: 1px solid #FF4B65;
} }
.longleft1 { .name {
right: 213px; margin-top: 3px;
top: 102px; color: #FFFFFF;
} font-size: 14px;
}
.longleft2 { }
right: 250px;
bottom: 137px;
width: 100px;
} }

42
src/app/pages/oil-unloading-process/oil-unloading-process.component.ts

@ -1,5 +1,6 @@
import { Component, OnInit, Input } from '@angular/core'; import { Component, OnInit, Input } from '@angular/core';
import Viewer from 'viewerjs' import Viewer from 'viewerjs'
import { NzMessageService } from 'ng-zorro-antd/message';
@Component({ @Component({
selector: 'app-oil-unloading-process', selector: 'app-oil-unloading-process',
templateUrl: './oil-unloading-process.component.html', templateUrl: './oil-unloading-process.component.html',
@ -7,26 +8,31 @@ import Viewer from 'viewerjs'
}) })
export class OilUnloadingProcessComponent implements OnInit { export class OilUnloadingProcessComponent implements OnInit {
@Input() data: any @Input() data: any
constructor() { } constructor(private message: NzMessageService) { }
ngOnInit(): void { ngOnInit(): void {
console.log(this.data)
} }
lookImg() { lookImg(url) {
let dom = document.getElementById(`viewerjs`) if (url) {
let pObjs = dom.childNodes; let dom = document.getElementById(`viewerjs`)
let node = document.createElement("img") let pObjs = dom.childNodes;
node.style.display = "none"; let node = document.createElement("img")
node.src = "../../../../assets/images/bgImg.png"; node.style.display = "none";
node.id = 'img' node.src = "../../../../assets/images/bgImg.png";
dom.appendChild(node) node.id = 'img'
setTimeout(() => { dom.appendChild(node)
let viewer = new Viewer(document.getElementById(`viewerjs`), { setTimeout(() => {
hidden: () => { let viewer = new Viewer(document.getElementById(`viewerjs`), {
dom.removeChild(pObjs[0]); hidden: () => {
viewer.destroy(); dom.removeChild(pObjs[0]);
} viewer.destroy();
}); }
node.click(); });
}, 0); node.click();
}, 0);
}else{
this.message.create('warning', `该节点没有图片`);
}
} }
} }

2
src/app/pages/plan-admin/plan-admin.component.html

@ -53,7 +53,7 @@
<div class="tablebox" id="tablebox"> <div class="tablebox" id="tablebox">
<nz-table [nzPageSize]='999' #headerTable [nzData]="list" [nzShowPagination]="false" <nz-table [nzPageSize]='999' #headerTable [nzData]="list" [nzShowPagination]="false"
[nzScroll]="{ y:tableheight() }"> [nzScroll]="{ y:tableheight() }" [nzNoResult]='null'>
<thead> <thead>
<tr> <tr>
<th></th> <th></th>

BIN
src/assets/images/bluebg.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

BIN
src/assets/images/bottomArrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
src/assets/images/bottomArrow2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
src/assets/images/down.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

BIN
src/assets/images/left.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

BIN
src/assets/images/left2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

BIN
src/assets/images/left3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

BIN
src/assets/images/logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

BIN
src/assets/images/longleft.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

BIN
src/assets/images/noImg.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

BIN
src/assets/images/right.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

BIN
src/assets/images/right2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

BIN
src/assets/images/right3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

BIN
src/assets/images/rightArrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
src/assets/images/upload.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

BIN
src/assets/images/upload.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

BIN
src/assets/images/yellowbg.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 385 B

Loading…
Cancel
Save