From 5f0964a33352cb3a0ae77b6671b733340d6c3371 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Mon, 16 Dec 2019 10:43:47 +0800 Subject: feat:optimize page style and modify the parameter request body Change-Id: I204486076eaa07b98e0d4bb4e2c541df31da79b0 Issue-ID: USECASEUI-369 Signed-off-by: cyuamber --- .../src/app/views/fcaps/monitor-5g/monitor-5g.component.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'usecaseui-portal/src/app/views/fcaps') diff --git a/usecaseui-portal/src/app/views/fcaps/monitor-5g/monitor-5g.component.ts b/usecaseui-portal/src/app/views/fcaps/monitor-5g/monitor-5g.component.ts index 0ad68c55..21132892 100644 --- a/usecaseui-portal/src/app/views/fcaps/monitor-5g/monitor-5g.component.ts +++ b/usecaseui-portal/src/app/views/fcaps/monitor-5g/monitor-5g.component.ts @@ -79,13 +79,15 @@ export class Monitor5gComponent implements OnInit { if (this.selectDate !== 0) { time = this.selectDate } - const service_list = []; + const requestBody = { + service_list:[] + }; this.listOfData.forEach(item => { - service_list.push({ service_id: item.service_instance_id }); + requestBody.service_list.push({ service_id: item.service_instance_id }); }); - this.fetchTrafficData(service_list, time); - this.fetchOnlineusersData(service_list, time); - this.fetchBandwidthData(service_list, time); + this.fetchTrafficData(requestBody, time); + this.fetchOnlineusersData(requestBody, time); + this.fetchBandwidthData(requestBody, time); } fetchTrafficData(service_list, time) { this.myhttp.getFetchTraffic(service_list, time).subscribe(res => { -- cgit 1.2.3-korg