modify scale progress display 49/49449/1
authorzhangab <zhanganbing@chinamobile.com>
Wed, 30 May 2018 03:44:13 +0000 (11:44 +0800)
committerzhangab <zhanganbing@chinamobile.com>
Wed, 30 May 2018 03:44:20 +0000 (11:44 +0800)
Change-Id: I4a6ef01b376b70d445a6786426d4cc9e6f28ee55
Issue-ID: USECASEUI-122
Signed-off-by: zhangab <zhanganbing@chinamobile.com>
usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js
usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js
usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/view-models/lifecyclemanagement.html

index e15032d..9f813a3 100644 (file)
         // console.log('create response...');
         console.log(response);
         var operationId = response.data.operationId;
+        if(operationId == null){
+          console.log('error: operationId is null');
+          return false;
+        }
         successFun( operationId);
       });
     },
index a4b5294..73dc6ed 100644 (file)
@@ -753,7 +753,9 @@ app.controller('lcmCtrl', ['$scope', '$uibModal', '$log', '$http', '$timeout', '
           }
           console.log('timer finished!');
         } else if ('processing' === serviceProgress.result) {
-          ctrl.dynamic = serviceProgress.progress;
+          if(serviceProgress.progress > ctrl.dynamic){
+            ctrl.dynamic = serviceProgress.progress;
+          }
           ctrl.operation = serviceProgress.operationContent;
           console.log('timer processing ......');
         }
index b6e1506..4f50651 100644 (file)
@@ -57,7 +57,7 @@
                 <td>
                   <button class="btn btn-primary" ng-click="ctrl.scaleService(serviceInstance)">Scale</button>
                   <button class="btn btn-primary" ng-click="ctrl.deleteService(serviceInstance)">Delete</button>
-                  <button class="btn btn-primary" ng-click="ctrl.upDateService(serviceInstance)">upDate</button>
+                  <!-- <button class="btn btn-primary" ng-click="ctrl.upDateService(serviceInstance)">upDate</button> -->
                 </td>
               </tr>
             </tbody>