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> <i nz-icon nzType="close" nzTheme="outline" (click)="destroyModal()"></i>
</div> </div>
<p *ngIf="!data2.handleTime && !isScrap" style="color: green;text-align: center;margin-top: 12px;">维保</p> <p *ngIf="!data2.handleTime && !isScrap" style="color: green;text-align: center;margin-top: 12px;">维保<span
<p *ngIf="!data2.handleTime && isScrap" style="color: red;text-align: center;margin-top: 12px;">报废</p> *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;"> <p *ngIf="data2.handleTime && (isScraped == '维保' || isScraped == '报废')" style="text-align: center;color: #91CCFF;">
<br> <br>
<span *ngIf="isScraped == '维保'" style="color: green;">已处置<br></span> <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) { if (this.data2.handleTime) {
let params = { let params = {
Id: this.data2.violatedItemSnapshotObj.id 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) { refreshEchartsData1(data) {
console.log('echarts信息', data) // console.log('echarts信息', data)
//饼图 //饼图
let totalCount = 0 let totalCount = 0
data.violationList.forEach(element => { data.violationList.forEach(element => {
@ -539,7 +539,7 @@ export class WarningStatisticsListComponent implements OnInit {
} }
let ViolationIds = [] let ViolationIds = []
console.log(456, this.validateForm.value) // console.log(456, this.validateForm.value)
if (this.validateForm.value.eventSystemName) { if (this.validateForm.value.eventSystemName) {
ViolationIds.push(this.validateForm.value.eventSystemName) ViolationIds.push(this.validateForm.value.eventSystemName)
} else { } else {
@ -587,7 +587,7 @@ export class WarningStatisticsListComponent implements OnInit {
this.validateForm.controls[key].markAsPristine(); this.validateForm.controls[key].markAsPristine();
this.validateForm.controls[key].updateValueAndValidity(); this.validateForm.controls[key].updateValueAndValidity();
} }
console.log('赋值日期', [this.startdate, this.enddate]) // console.log('赋值日期', [this.startdate, this.enddate])
this.validateForm.patchValue({ this.validateForm.patchValue({
datePicker: [this.startdate, this.enddate], datePicker: [this.startdate, this.enddate],
eventSystemName: null, eventSystemName: null,
@ -629,7 +629,7 @@ export class WarningStatisticsListComponent implements OnInit {
}, },
nzFooter: null, nzFooter: null,
nzOnOk: async () => { nzOnOk: async () => {
console.log(99999, instance.content) // console.log(99999, instance.content)
} }
}); });
const instance = modal.getContentComponent(); const instance = modal.getContentComponent();

Loading…
Cancel
Save