fix: ifx bug of slicing management page 97/99797/1
authorcyuamber <xuranyjy@chinamobile.com>
Thu, 19 Dec 2019 09:20:51 +0000 (17:20 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Thu, 19 Dec 2019 09:20:56 +0000 (17:20 +0800)
Change-Id: Icad8d4d3e64cab01168e6621754ad43f0ed07ccd
Issue-ID: USECASEUI-369
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component.ts
usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nssi-management/nssi-model/nssi-model.component.ts
usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts
usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.ts

index c34787d..569a018 100644 (file)
@@ -24,9 +24,9 @@ export class NsiModelComponent implements OnInit {
   }
     getNsiDetail() {
         this.myhttp.getSlicingNsiDetail(this.nsiId).subscribe(res => {
+            this.isSpinning = false;
             const {result_header: {result_code}, result_body: {hosted_business_list,included_nssi_list} } = res;
             if (+result_code === 200) {
-                this.isSpinning = false;
                 this.businessList = hosted_business_list;
                 this.nssiList = included_nssi_list;
             }
index d1af545..034d866 100644 (file)
@@ -22,9 +22,9 @@ export class NssiModelComponent implements OnInit {
   }
     getNssiDetail(){
         this.myhttp.getSlicingNssiDetail(this.nssiId).subscribe(res => {
+            this.isSpinning = false;
             const {result_header: {result_code}, result_body: {hosted_nsi_list} } = res;
             if (+result_code === 200) {
-                this.isSpinning = false;
                 this.nsiList = hosted_nsi_list;
             }
         })
index 253e1c3..e0328c8 100644 (file)
@@ -29,9 +29,9 @@ export class SlicingBusinessModelComponent implements OnInit {
 
     getDetail() {
         this.myhttp.getSlicingBusinessDetail(this.businessId).subscribe(res => {
+            this.isSpinning = false;
             const { result_body, result_header: { result_code } } = res;
             if (+result_code === 200) {
-                this.isSpinning = false;
                 const {business_demand_info,business_demand_info: { coverage_area_ta_list },nst_info,nsi_info}  = result_body;
                 business_demand_info.area = coverage_area_ta_list.map(item => {
                     item = item.split(';').join('-');
@@ -52,7 +52,7 @@ export class SlicingBusinessModelComponent implements OnInit {
             nzOkText: null,
             nzCancelText: null,
             nzComponentParams:{
-                businessId:data.nsi_id
+                nsiId:data.nsi_id
             }
         });
     }
index 1cee88d..834f0c9 100644 (file)
@@ -23,6 +23,7 @@ export class SlicingBusinessTableComponent implements OnInit {
         this.progressingTimer.forEach((item) => {
             clearInterval(item.timer);
         })
+        this.progressingTimer = [];
     }
     selectedValue:string = BUSINESS_STATUS[0];
     listOfData: any[] = [];
@@ -72,9 +73,17 @@ export class SlicingBusinessTableComponent implements OnInit {
     getListOfProcessingStatus(){
         this.pageIndex = 1;
         this.pageSize = 10;
+        this.progressingTimer.forEach((item) => {
+            clearInterval(item.timer);
+        });
+        this.progressingTimer = [];
         this.getBusinessList();
     }
     searchData(reset: boolean = false) {
+        this.progressingTimer.forEach((item) => {
+            clearInterval(item.timer);
+        });
+        this.progressingTimer = [];
         this.getBusinessList();
     }
     switchChange(slicing,i){