Browse Source

[完善]列表查询完善

beijing
邵佳豪 3 years ago
parent
commit
73415c047d
  1. 4
      src/app/pages/criminal-records-admin/criminal-records-admin.component.ts
  2. 5
      src/app/pages/criminal-records/criminal-records.component.ts
  3. 4
      src/app/pages/misinformation-list/misinformation-list.component.ts
  4. 5
      src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.ts
  5. 5
      src/app/pages/warning-statistics-list/warning-statistics-list.component.ts

4
src/app/pages/criminal-records-admin/criminal-records-admin.component.ts

@ -511,7 +511,7 @@ export class CriminalRecordsAdminComponent implements OnInit {
}
ngAfterViewInit(): void {
fromEvent(this.element.nativeElement.querySelector(`#tbody`) as HTMLCanvasElement, 'scroll').pipe(debounceTime(100)).subscribe((event: any) => { //监听 DOM 滚动事件
fromEvent(this.element.nativeElement.querySelector(`#tbody`) as HTMLCanvasElement, 'scroll').pipe(debounceTime(500)).subscribe((event: any) => { //监听 DOM 滚动事件
if (event.target.scrollHeight - (event.target.scrollTop + event.target.clientHeight) <= 10) {
if (this.totalCount > this.list.length) {
console.log('需要加载数据了', event)
@ -560,6 +560,7 @@ export class CriminalRecordsAdminComponent implements OnInit {
this.validateForm.controls[i].markAsDirty();
this.validateForm.controls[i].updateValueAndValidity();
}
this.totalCount = null
this.list = []
this.SkipCount = '0'
this.getViolateRecordList()
@ -576,6 +577,7 @@ export class CriminalRecordsAdminComponent implements OnInit {
datePicker: [this.startdate, this.enddate],
misinformation: 'true',
});
this.totalCount = null
this.list = []
this.SkipCount = '0'
this.getViolateRecordList()

5
src/app/pages/criminal-records/criminal-records.component.ts

@ -482,7 +482,7 @@ export class CriminalRecordsComponent implements OnInit {
})
}
ngAfterViewInit(): void {
fromEvent(this.element.nativeElement.querySelector(`#tbody`) as HTMLCanvasElement, 'scroll').pipe(debounceTime(100)).subscribe((event: any) => { //监听 DOM 滚动事件
fromEvent(this.element.nativeElement.querySelector(`#tbody`) as HTMLCanvasElement, 'scroll').pipe(debounceTime(500)).subscribe((event: any) => { //监听 DOM 滚动事件
if (event.target.scrollHeight - (event.target.scrollTop + event.target.clientHeight) <= 10) {
if (this.totalCount > this.list.length) {
console.log('需要加载数据了', event)
@ -498,7 +498,7 @@ export class CriminalRecordsComponent implements OnInit {
this.validateForm.controls[i].markAsDirty();
this.validateForm.controls[i].updateValueAndValidity();
}
this.totalCount = null
this.list = []
this.SkipCount = '0'
this.getViolateRecordList()
@ -514,6 +514,7 @@ export class CriminalRecordsComponent implements OnInit {
datePicker: [this.startdate, this.enddate],
misinformation: 'true'
});
this.totalCount = null
this.list = []
this.SkipCount = '0'
this.getViolateRecordList()

4
src/app/pages/misinformation-list/misinformation-list.component.ts

@ -513,7 +513,7 @@ export class MisinformationListComponent implements OnInit {
}
ngAfterViewInit(): void {
fromEvent(this.element.nativeElement.querySelector(`#tbody`) as HTMLCanvasElement, 'scroll').pipe(debounceTime(100)).subscribe((event: any) => { //监听 DOM 滚动事件
fromEvent(this.element.nativeElement.querySelector(`#tbody`) as HTMLCanvasElement, 'scroll').pipe(debounceTime(500)).subscribe((event: any) => { //监听 DOM 滚动事件
if (event.target.scrollHeight - (event.target.scrollTop + event.target.clientHeight) <= 10) {
if (this.totalCount > this.list.length) {
console.log('需要加载数据了', event)
@ -562,6 +562,7 @@ export class MisinformationListComponent implements OnInit {
this.validateForm.controls[i].markAsDirty();
this.validateForm.controls[i].updateValueAndValidity();
}
this.totalCount = null
this.list = []
this.SkipCount = '0'
this.getViolateRecordList()
@ -578,6 +579,7 @@ export class MisinformationListComponent implements OnInit {
organization: JSON.parse(sessionStorage.getItem('userdata')).organization.id,
datePicker: [this.startdate, this.enddate]
});
this.totalCount = null
this.list = []
this.SkipCount = '0'
this.getViolateRecordList()

5
src/app/pages/oil-unloading-process-list/oil-unloading-process-list.component.ts

@ -658,7 +658,7 @@ export class OilUnloadingProcessListComponent implements OnInit {
this.validateForm.controls[i].markAsDirty();
this.validateForm.controls[i].updateValueAndValidity();
}
this.totalCount = null
this.list = []
this.SkipCount = '0'
this.getViolateRecordList()
@ -676,12 +676,13 @@ export class OilUnloadingProcessListComponent implements OnInit {
organization: JSON.parse(sessionStorage.getItem('userdata')).organization.id,
datePicker: [this.startdate, this.enddate]
});
this.totalCount = null
this.list = []
this.SkipCount = '0'
this.getViolateRecordList()
}
ngAfterViewInit(): void {
fromEvent(this.element.nativeElement.querySelector(`#tbody`) as HTMLCanvasElement, 'scroll').pipe(debounceTime(100)).subscribe((event: any) => { //监听 DOM 滚动事件
fromEvent(this.element.nativeElement.querySelector(`#tbody`) as HTMLCanvasElement, 'scroll').pipe(debounceTime(500)).subscribe((event: any) => { //监听 DOM 滚动事件
if (event.target.scrollHeight - (event.target.scrollTop + event.target.clientHeight) <= 10) {
if (this.totalCount > this.list.length) {
console.log('需要加载数据了', event)

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

@ -596,7 +596,7 @@ export class WarningStatisticsListComponent implements OnInit {
this.validateForm.controls[i].markAsDirty();
this.validateForm.controls[i].updateValueAndValidity();
}
this.totalCount = null
this.list = []
this.SkipCount = '0'
this.getLicenseList()
@ -614,12 +614,13 @@ export class WarningStatisticsListComponent implements OnInit {
eventSystemName: null,
organization: JSON.parse(sessionStorage.getItem('userdata')).organization.id
});
this.totalCount = null
this.list = []
this.SkipCount = '0'
this.getLicenseList()
}
ngAfterViewInit(): void {
fromEvent(this.element.nativeElement.querySelector(`#tbody`) as HTMLCanvasElement, 'scroll').pipe(debounceTime(100)).subscribe((event: any) => { //监听 DOM 滚动事件
fromEvent(this.element.nativeElement.querySelector(`#tbody`) as HTMLCanvasElement, 'scroll').pipe(debounceTime(500)).subscribe((event: any) => { //监听 DOM 滚动事件
if (event.target.scrollHeight - (event.target.scrollTop + event.target.clientHeight) <= 10) {
if (this.totalCount > this.list.length) {
console.log('需要加载数据了', event)

Loading…
Cancel
Save