feat: Modify the function of NSMF slicing-management 94/103494/2
authorgjaibm1314 <695000801@qq.com>
Wed, 11 Mar 2020 05:01:25 +0000 (13:01 +0800)
committerxu ran <xuranyjy@chinamobile.com>
Wed, 11 Mar 2020 09:11:58 +0000 (09:11 +0000)
Change-Id: Ia1411d44afb8fc9267a30de0cd9dd0e89eac5733
Issue-ID: USECASEUI-369
Signed-off-by: gjaibm1314 <695000801@qq.com>
usecaseui-portal/src/app/mock/json/slicing_business_list.json
usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html
usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-management.component.ts

index bedefa9..f57945e 100644 (file)
@@ -11,8 +11,8 @@
         "service_instance_name": "slicing-01-eMBB",
         "service_type": "eMMB",
         "service_snssai": "1-010101",
-        "orchestration_status": "activated",
-        "last_operation_type": "activate",
+        "orchestration_status": "processing",
+        "last_operation_type": "processing",
         "last_operation_progress": 80
       },
       {
@@ -21,7 +21,7 @@
         "service_type": "eMMB",
         "service_snssai": "1-010101",
         "orchestration_status": "activated",
-        "last_operation_type": "activate",
+        "last_operation_type": "DELETE",
         "last_operation_progress": 99
       },
       {
index 14c51f1..eef3575 100644 (file)
@@ -43,7 +43,7 @@
                         <td>
                             <div class="action-icon">
                                 <nz-switch [ngModel]="data.orchestration_status==='activated'?true:false"
-                                    [nzDisabled]="data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100'"
+                                    [nzDisabled]="data.orchestration_status === 'processing' || (data.orchestration_status !== 'processing' && data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100')"
                                     (ngModelChange)="switchChange(data,i)"></nz-switch>
                                 <nz-progress
                                     *ngIf="data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && data.last_operation_type !== 'DELETE'"
                                 </nz-progress>
                             </div>
                             <div class="action-icon">
-                                <i [ngClass]="{'cannotclick': data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && (data.last_operation_type !== 'DELETE' || data.orchestration_status==='activated')}"
+                                <i [ngClass]="{'cannotclick': data.orchestration_status === 'processing' || (data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && (data.last_operation_type !== 'DELETE' || data.orchestration_status==='activated'))}"
                                     nz-icon nzType="poweroff" nzTheme="outline" class="anticon anticon-poweroff"
                                     (click)="terminate(data,i)"></i>
                                 <nz-progress
-                                    *ngIf="data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && terminateStart"
+                                    *ngIf="data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && terminateStart[i]"
                                     [nzPercent]="data.last_operation_progress" [nzShowInfo]="false" nzStatus="active">
                                 </nz-progress>
                             </div>
index 39e5f1d..af7e2d6 100644 (file)
@@ -149,7 +149,9 @@ export class SlicingTaskManagementComponent implements OnInit {
       if (this.selectedValue && this.selectedValue !== 'all') {
         this.getListOfProcessingStatus();
       } else {
-        this.getTaskList();
+          setTimeout(() => {
+              this.getTaskList()
+          }, 5000);
       }
     }
   }