Browse Source

代码执行顺序BUG修正。动态高度完善

dev
cpf 3 years ago
parent
commit
48eacd38e4
  1. 4
      src/app/pages/left-domain/left-domain.component.html
  2. 19
      src/app/pages/left-domain/left-domain.component.ts

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

@ -158,7 +158,7 @@
<p>油气回收系统类型</p>
<p>油气回收泵类型</p>
<p>油气回收处理装置</p>
<p>油气回收监测装置</p>
<p class="overflowP" id="title{{item.modelInfo.key}}">油气回收监测装置</p>
</div>
<div class="tableContent" style="flex: 45%;">
<p [title]="item.getPropertyData().VRUType"><input type="text" class="tableInput" [disabled]="!editMode" [(ngModel)]="item.getPropertyData().VRUType" (click)="stopBubbling($event)"></p>
@ -170,7 +170,7 @@
</p>
<p [title]="item.getPropertyData().VRUPumpType"><input type="text" class="tableInput" [disabled]="!editMode" [(ngModel)]="item.getPropertyData().VRUPumpType" (click)="stopBubbling($event)"></p>
<p [title]="item.getPropertyData().VRUPumpDevice"><input type="text" class="tableInput" [disabled]="!editMode" [(ngModel)]="item.getPropertyData().VRUPumpDevice" (click)="stopBubbling($event)"></p>
<p [title]="item.getPropertyData().MonitoringDevice"><input type="text" class="tableInput" [disabled]="!editMode" [(ngModel)]="item.getPropertyData().MonitoringDevice" (click)="stopBubbling($event)"></p>
<p [title]="item.getPropertyData().MonitoringDevice" class="overflowP" id="content{{item.modelInfo.key}}"><textarea nz-input nzAutosize id="num{{item.modelInfo.key}}" [disabled]="!editMode" [(ngModel)]="item.getPropertyData().MonitoringDevice" (click)="stopBubbling($event)" (input)="textInput(item)"></textarea></p>
</div>
</div>
<div class="propertyImage" id="orvrViewer{{item.getID()}}">

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

@ -89,18 +89,17 @@ export class LeftDomainComponent implements OnInit {
})
this.FacilityList = list
this.selectFacilityId = null
if (this.beforeFence === 1 || this.beforeFence === 7) { //加油机/阀门
this.FacilityList.forEach(item => {
window.setTimeout(()=>{
this.textInput(item)
},0)
})
} else if (this.beforeFence === 2) { //油罐设备
if (this.beforeFence === 1 || this.beforeFence === 2 || this.beforeFence === 6 || this.beforeFence === 7) { //加油机/油罐设备/油气回收/阀门
this.FacilityList.forEach(item => {
window.setTimeout(()=>{
this.textInput(item)
},0)
})
}
if (this.beforeFence === 3) { //消防设施
this.handleTreeData(this.FacilityList)
}
if (this.beforeFence === 2) { //油罐设备
PlanComponent.instance.tankFarm.isHave = false;
this.FacilityList.forEach(item => {
if (item.getPropertyData().tankFarm != undefined) {
@ -109,9 +108,8 @@ export class LeftDomainComponent implements OnInit {
return;
}
})
} else if (this.beforeFence === 3) { //消防设施
this.handleTreeData(this.FacilityList)
} else if (this.beforeFence === 5 || this.beforeFence === 6) { //初始化 Viewer
}
if (this.beforeFence === 5 || this.beforeFence === 6) { //初始化 Viewer
let id: string = this.beforeFence === 5 ? "pipelineViewer" : "orvrViewer"
this.FacilityList.forEach(item => {
if (item.getPropertyData() && item.getPropertyData().img) {
@ -121,6 +119,7 @@ export class LeftDomainComponent implements OnInit {
}
})
}
}
//选中 设备

Loading…
Cancel
Save