|
|
|
@ -25,7 +25,7 @@ export class TodayWarningAdminComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
validateForm!: FormGroup; |
|
|
|
|
constructor(private http: HttpClient, private fb: FormBuilder, private router: Router, private toTree: TreeService, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private navChangeService: NavChangeService, private message: NzMessageService) { } |
|
|
|
|
|
|
|
|
|
isSpin:boolean = false |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
this.validateForm = this.fb.group({ |
|
|
|
|
level: [null], |
|
|
|
@ -112,13 +112,14 @@ export class TodayWarningAdminComponent implements OnInit {
|
|
|
|
|
disposalState = null |
|
|
|
|
} |
|
|
|
|
console.log(this.validateForm.value) |
|
|
|
|
this.isSpin = true |
|
|
|
|
let params = { |
|
|
|
|
Level: this.validateForm.value.level, |
|
|
|
|
ViolationIds: ViolationIds, |
|
|
|
|
ViolateArea: this.validateForm.value.area, |
|
|
|
|
organizationUnitId: this.validateForm.value.organization, |
|
|
|
|
ViolateTime: (this.validateForm.value.datePickerEnd && this.validateForm.value.datePickerStart) ? [moment(this.validateForm.value.datePickerStart).format('yyyy-MM-DD HH:mm:ss'), moment(this.validateForm.value.datePickerEnd).format('yyyy-MM-DD HH:mm:ss')] : null, |
|
|
|
|
// ViolateTime: ['2021-10-27', '2021-11-26'],
|
|
|
|
|
// ViolateTime: (this.validateForm.value.datePickerEnd && this.validateForm.value.datePickerStart) ? [moment(this.validateForm.value.datePickerStart).format('yyyy-MM-DD HH:mm:ss'), moment(this.validateForm.value.datePickerEnd).format('yyyy-MM-DD HH:mm:ss')] : null,
|
|
|
|
|
ViolateTime: ['2021-10-27', '2021-11-26'], |
|
|
|
|
IsHandled: disposalState, |
|
|
|
|
IsContainsChildren: 'true', |
|
|
|
|
SkipCount: '0', |
|
|
|
@ -130,7 +131,7 @@ export class TodayWarningAdminComponent implements OnInit {
|
|
|
|
|
this.list = data.result.items |
|
|
|
|
this.totalCount = data.result.totalCount |
|
|
|
|
console.log('预警列表', this.list) |
|
|
|
|
|
|
|
|
|
this.isSpin = false |
|
|
|
|
let obj = { |
|
|
|
|
name: '改变数量', |
|
|
|
|
num: this.totalCount |
|
|
|
@ -171,6 +172,7 @@ export class TodayWarningAdminComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
isVisible = false |
|
|
|
|
look(item) { |
|
|
|
|
console.log(item) |
|
|
|
|
const modal = this.modal.create({ |
|
|
|
|
nzContent: GetOutOfLineDetailsComponent, |
|
|
|
|
nzWrapClassName: "vertical-center-modal", |
|
|
|
@ -188,7 +190,7 @@ export class TodayWarningAdminComponent implements OnInit {
|
|
|
|
|
}, |
|
|
|
|
nzFooter: null, |
|
|
|
|
nzOnOk: async () => { |
|
|
|
|
|
|
|
|
|
console.log(99999,instance.content) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
const instance = modal.getContentComponent(); |
|
|
|
|