From: zhangab Date: Wed, 30 May 2018 03:44:13 +0000 (+0800) Subject: modify scale progress display X-Git-Tag: v1.1.1~2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F49449%2F1;p=usecase-ui.git modify scale progress display Change-Id: I4a6ef01b376b70d445a6786426d4cc9e6f28ee55 Issue-ID: USECASEUI-122 Signed-off-by: zhangab --- diff --git a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js index e15032de..9f813a36 100644 --- a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js +++ b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js @@ -381,6 +381,10 @@ // 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); }); }, diff --git a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js index a4b52941..73dc6edb 100644 --- a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js +++ b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js @@ -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 ......'); } diff --git a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/view-models/lifecyclemanagement.html b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/view-models/lifecyclemanagement.html index b6e15066..4f50651b 100644 --- a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/view-models/lifecyclemanagement.html +++ b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/view-models/lifecyclemanagement.html @@ -57,7 +57,7 @@ - +