Browse Source

[完善]完善处置消防设施框

dev
邵佳豪 3 years ago
parent
commit
5a43d0fb9d
  1. 8
      src/app/pages/warning-statistics-list/disposeequipment/disposeequipment.component.html
  2. 2
      src/app/pages/warning-statistics-list/disposeequipment/disposeequipment.component.ts
  3. 8
      src/app/pages/warning-statistics-list/warning-statistics-list.component.ts

8
src/app/pages/warning-statistics-list/disposeequipment/disposeequipment.component.html

@ -6,8 +6,12 @@
<i nz-icon nzType="close" nzTheme="outline" (click)="destroyModal()"></i>
</div>
<p *ngIf="!data2.handleTime && !isScrap" style="color: green;text-align: center;margin-top: 12px;">维保</p>
<p *ngIf="!data2.handleTime && isScrap" style="color: red;text-align: center;margin-top: 12px;">报废</p>
<p *ngIf="!data2.handleTime && !isScrap" style="color: green;text-align: center;margin-top: 12px;">维保<span
*ngIf="data2.numberOfTimes == 2">临期预警</span><span *ngIf="data2.numberOfTimes == 3">逾期预警</span>
</p>
<p *ngIf="!data2.handleTime && isScrap" style="color: red;text-align: center;margin-top: 12px;">报废<span
*ngIf="data2.numberOfTimes == 2">临期预警</span><span *ngIf="data2.numberOfTimes == 3">逾期预警</span>
</p>
<p *ngIf="data2.handleTime && (isScraped == '维保' || isScraped == '报废')" style="text-align: center;color: #91CCFF;">
<br>
<span *ngIf="isScraped == '维保'" style="color: green;">已处置<br></span>

2
src/app/pages/warning-statistics-list/disposeequipment/disposeequipment.component.ts

@ -27,7 +27,7 @@ export class DisposeequipmentComponent implements OnInit {
console.log('快照预警数据', this.data2)
// console.log('快照预警数据', this.data2)
if (this.data2.handleTime) {
let params = {
Id: this.data2.violatedItemSnapshotObj.id

8
src/app/pages/warning-statistics-list/warning-statistics-list.component.ts

@ -424,7 +424,7 @@ export class WarningStatisticsListComponent implements OnInit {
})
}
refreshEchartsData1(data) {
console.log('echarts信息', data)
// console.log('echarts信息', data)
//饼图
let totalCount = 0
data.violationList.forEach(element => {
@ -539,7 +539,7 @@ export class WarningStatisticsListComponent implements OnInit {
}
let ViolationIds = []
console.log(456, this.validateForm.value)
// console.log(456, this.validateForm.value)
if (this.validateForm.value.eventSystemName) {
ViolationIds.push(this.validateForm.value.eventSystemName)
} else {
@ -587,7 +587,7 @@ export class WarningStatisticsListComponent implements OnInit {
this.validateForm.controls[key].markAsPristine();
this.validateForm.controls[key].updateValueAndValidity();
}
console.log('赋值日期', [this.startdate, this.enddate])
// console.log('赋值日期', [this.startdate, this.enddate])
this.validateForm.patchValue({
datePicker: [this.startdate, this.enddate],
eventSystemName: null,
@ -629,7 +629,7 @@ export class WarningStatisticsListComponent implements OnInit {
},
nzFooter: null,
nzOnOk: async () => {
console.log(99999, instance.content)
// console.log(99999, instance.content)
}
});
const instance = modal.getContentComponent();

Loading…
Cancel
Save