Browse Source

[完善]增加获取列表数量参数

dev
邵佳豪 3 years ago
parent
commit
968ed49fd4
  1. 10
      src/app/system-management/analysis-of-the-host/analysis-of-the-host.component.ts

10
src/app/system-management/analysis-of-the-host/analysis-of-the-host.component.ts

@ -72,7 +72,9 @@ export class AnalysisOfTheHostComponent implements OnInit {
getHost() { getHost() {
this.http.get('/api/services/app/EdgeDevice/GetAll', { this.http.get('/api/services/app/EdgeDevice/GetAll', {
params: { params: {
organizationUnitId: this.selectedOilStation.id organizationUnitId: this.selectedOilStation.id,
SkipCount: '0',
MaxResultCount: '100',
} }
}).subscribe((data: any) => { }).subscribe((data: any) => {
console.log('主机列表', data.result.items) console.log('主机列表', data.result.items)
@ -86,10 +88,12 @@ export class AnalysisOfTheHostComponent implements OnInit {
getCamera() { getCamera() {
this.http.get('/api/services/app/Camera/GetAll', { this.http.get('/api/services/app/Camera/GetAll', {
params: { params: {
organizationUnitId: this.selectedOilStation.id organizationUnitId: this.selectedOilStation.id,
SkipCount: '0',
MaxResultCount: '100',
} }
}).subscribe((data: any) => { }).subscribe((data: any) => {
console.log('摄像头列表', data) // console.log('摄像头列表', data)
this.listOfDataCamera = data.result.items this.listOfDataCamera = data.result.items
}) })
} }

Loading…
Cancel
Save