feat:The front end does filtering and processing the data returned by the interface 95/99795/1
authorcyuamber <xuranyjy@chinamobile.com>
Thu, 19 Dec 2019 08:37:56 +0000 (16:37 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Thu, 19 Dec 2019 08:38:00 +0000 (16:38 +0800)
Change-Id: If1f43fe8f31d358a2871801136c8658e9a913767
Issue-ID: USECASEUI-370
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
usecaseui-portal/src/app/views/fcaps/monitor-5g/monitor-5g.component.ts

index 8216669..5ba444c 100644 (file)
@@ -86,7 +86,9 @@ export class Monitor5gComponent implements OnInit {
             service_list:[]
         };
         this.listOfData.forEach(item => {
-            requestBody.service_list.push({ service_id: item.service_snssai });
+            if(item.service_snssai !==null && item.service_snssai!==undefined){
+                requestBody.service_list.push({ service_id: item.service_snssai });
+            }
         });
         this.fetchTrafficData(requestBody, time);
         this.fetchOnlineusersData(requestBody, time);