summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/fcaps
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-12-16 10:43:47 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-12-16 10:43:51 +0800
commit5f0964a33352cb3a0ae77b6671b733340d6c3371 (patch)
treeec608bc639e9af8c8e188e18d55b84110ebd0446 /usecaseui-portal/src/app/views/fcaps
parent59755b5b5b3cdbdd2334d542b410dd5c7376ee06 (diff)
feat:optimize page style and modify the parameter request body
Change-Id: I204486076eaa07b98e0d4bb4e2c541df31da79b0 Issue-ID: USECASEUI-369 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/fcaps')
-rw-r--r--usecaseui-portal/src/app/views/fcaps/monitor-5g/monitor-5g.component.ts12
1 files changed, 7 insertions, 5 deletions
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 => {