summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuji7 <lu.ji3@zte.com.cn>2017-11-01 14:55:19 +0800
committerLuji7 <lu.ji3@zte.com.cn>2017-11-01 14:57:14 +0800
commitd0fc97abef13dbce379e4e779abd186ec0dc59f3 (patch)
treebecb2339660d27b20474be599cb21f4512ae67cb
parent6546c1297f764b71989e664ed41b0f12ffa40d1f (diff)
Fix vimId format wrong.
Change-Id: I363e77e1a0cc5c8c5acbac3ddbb7b01ee67ddd2d Issue-id: USECASEUI-53 Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
-rw-r--r--usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js7
-rw-r--r--usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js24
2 files changed, 4 insertions, 27 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 634cf7c7..c9357618 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
@@ -118,8 +118,8 @@
var vimInfos = response.data;
var result = vimInfos.map(function (vim) {
return {
- name: vim['cloud-owner'] + '-' + vim['cloud-region-id'],
- value: vim['cloud-owner'] + '-' + vim['cloud-region-id']
+ name: vim['cloud-owner'] + '_' + vim['cloud-region-id'],
+ value: vim['cloud-owner'] + '_' + vim['cloud-region-id']
};
});
processFun(result);
@@ -257,10 +257,9 @@
});
},
- packageOnboard: function (onboardPackage, vims) {
+ packageOnboard: function (onboardPackage) {
console.log('onboard...');
console.log(onboardPackage);
- console.log(vims);
var requestBody = {
csarId: onboardPackage.uuid
};
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 f443f349..78e32aea 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
@@ -83,29 +83,7 @@ app.controller('lcmCtrl', ['$scope', '$uibModal', '$log', '$http', '$timeout', '
};
ctrl.packageOnboard = function (onboardPackage) {
- var modalInstance = $uibModal.open({
- ariaLabelledBy: 'modal-title',
- ariaDescribedBy: 'modal-body',
- templateUrl : 'app/uui/fusion/scripts/view-models/vnf-ns-onboard-dialog.html',
- controller : 'packageOnboardCtrl',
- controllerAs : 'ctrl',
- resolve: {
- onboardPackage: function () {
- return onboardPackage;
- }
- }
- });
- modalInstance.result.then(
- function(result) {
- console.log('receive ok button clicked!');
- console.log(result);
- },
- function(reason) {
- console.log('receive cancel button clicked!');
- console.log(reason);
- $log.info('Modal dismissed at: ' + new Date());
- }
- );
+ ServiceTemplateService.packageOnboard(onboardPackage);
};
}
]