diff options
author | 2018-05-30 11:44:13 +0800 | |
---|---|---|
committer | 2018-05-30 11:44:20 +0800 | |
commit | ed95800538cd31cc60aa5ea055ec2d3939432607 (patch) | |
tree | 15beec4e0490390e669b45560961eefd1b1b1d67 /usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller | |
parent | 704c19c2fef0beb4b0d19081fcb72b4d945eb257 (diff) |
modify scale progress display
Change-Id: I4a6ef01b376b70d445a6786426d4cc9e6f28ee55
Issue-ID: USECASEUI-122
Signed-off-by: zhangab <zhanganbing@chinamobile.com>
Diffstat (limited to 'usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller')
-rw-r--r-- | usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js | 4 | ||||
-rw-r--r-- | usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js | 4 |
2 files changed, 7 insertions, 1 deletions
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 ......'); } |