Browse Source

阀门完善

dev
陈鹏飞 3 years ago
parent
commit
4671f0d5a6
  1. 15
      src/app/pages/left-domain/left-domain.component.html
  2. 4
      src/app/pages/left-domain/left-domain.component.ts
  3. 2
      src/app/pages/plan/plan.component.ts

15
src/app/pages/left-domain/left-domain.component.html

@ -205,6 +205,21 @@
</nz-collapse>
</div>
<!-- 处置预案 -->
<!-- 阀门 -->
<div class="publicBox refueller" *ngIf="beforeFence === 8">
<div class="interval" *ngFor="let item of FacilityList" (click)="selectFacility($event, item)" [ngClass]="{'selectFacility': selectFacilityId === item.getID()}">
<p class="title"><input type="text" class="tableInput" [disabled]="!editMode" [(ngModel)]="item.getPropertyData().name" (click)="stopBubbling($event)"></p>
<div class="table">
<div class="tableHeader">
<p class="overflowP" id="title{{item.modelInfo.key}}">描述</p>
</div>
<div class="tableContent">
<p [title]="item.getPropertyData().describe" class="overflowP" id="content{{item.modelInfo.key}}"><textarea nz-input nzAutosize id="num{{item.modelInfo.key}}" [disabled]="!editMode" [(ngModel)]="item.getPropertyData().describe" (click)="stopBubbling($event)" (input)="textInput(item)"></textarea></p>
</div>
</div>
</div>
</div>
<!-- 阀门 -->
<!-- 弹窗 -->
<nz-modal nzClassName="baseInfoDialog" [(nzVisible)]="isShowBaseDialog" nzFooter="null" (nzOnCancel)="closeBaseInfoDialog()" nzWidth="70%">
<app-oil-station-info *ngIf="isShowBaseDialog"></app-oil-station-info>

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

@ -83,11 +83,13 @@ export class LeftDomainComponent implements OnInit {
item.getType() === "JY_SYGX" ? list.push(item) : null
} else if (this.beforeFence === 6) { //油气回收
item.getType() === "JY_YQHSGX" ? list.push(item) : null
} else if (this.beforeFence === 8) { //阀门
item.getType() === "JY_FM" ? list.push(item) : null
}
})
this.FacilityList = list
this.selectFacilityId = null
if (this.beforeFence === 1 || this.beforeFence === 2) { //加油机/油罐设备
if (this.beforeFence === 1 || this.beforeFence === 2 || this.beforeFence === 8) { //加油机/油罐设备/阀门
this.FacilityList.forEach(item => {
window.setTimeout(()=>{
this.textInput(item)

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

@ -239,7 +239,7 @@ export class PlanComponent implements OnInit {
} else if (type === 7) {
fenceType = JYZInfoMoudleType.YJCZ
} else if (type === 8) {
fenceType = JYZInfoMoudleType.YJCZ
fenceType = JYZInfoMoudleType.FM
}
return fenceType
}

Loading…
Cancel
Save