diff options
author | 2017-01-23 16:53:22 +0800 | |
---|---|---|
committer | 2017-01-23 16:53:22 +0800 | |
commit | 6adc7511d2405362cda6cdcf8d7875ac60b10077 (patch) | |
tree | 8d4c061c757920a081c1d10d6fc9e3dad84e9727 /portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js | |
parent | 928ff2eb017b4cfe2a9d775688493fdcbed5c008 (diff) |
Change the coding on the new sg framework
Move the logic from client to sg
Change the create parameter tab showing
Change-Id: Ieb8f7a6aaef79f3fcde31c9cf8a40c163cb944a4
Issue-ID:GSO-136
Signed-off-by: c00149107 <chenchuanyu@huawei.com>
Diffstat (limited to 'portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js')
-rw-r--r-- | portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js | 51 |
1 files changed, 2 insertions, 49 deletions
diff --git a/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js b/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js index ddeabf7e..f7a01ea2 100644 --- a/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js +++ b/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js @@ -1,4 +1,4 @@ -/* Copyright 2016, Huawei Technologies Co., Ltd.
+/* Copyright 2016-2017, Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -169,7 +169,7 @@ function translateToTemplatesInfo(templates) { /*******************************************Get Service**********************************************/
function loadGetServiceData(){
- var returnVal;
+ var returnVal = [];
var requestUrl = "/openoapi/inventory/v1/services";
var parameter = {
'sort': [],
@@ -220,53 +220,6 @@ function loadServiceDetails(serviceId){ return returnObj;
}
-//get the vim name by id.
-function getVimNameById(vimId){
-
- // TODO re-confirm the latest url.
- var requestUrl ="/openoapi/extsys/v1/vims/" + vimId;
- var returnObj;
- $
- .ajax({
- type : "GET",
- async: false,
- url : requestUrl,
- contentType : "application/json",
- success : function(jsonobj) {
- // TODO return according to the json data received.
- returnObj = jsonobj;
- },
- error : function(xhr, ajaxOptions, thrownError) {
- alert("Error on getting link data : " + xhr.responseText);
- }
- });
- return returnObj;
-}
-
-// get the sdn controller name by id.
-function getSdnControllerNameById(sdnControllerId){
-
- // TODO re-confirm the latest url.
- var requestUrl ="/openoapi/extsys/v1/sdncontrollers/" + sdnControllerId;
- var returnObj;
- $
- .ajax({
- type : "GET",
- async: false,
- url : requestUrl,
- contentType : "application/json",
- success : function(jsonobj) {
- // TODO return according to the json data received.
- returnObj = jsonobj;
- },
- error : function(xhr, ajaxOptions, thrownError) {
- alert("Error on getting link data : " + xhr.responseText);
- }
- });
- return returnObj;
-}
-
-
function anchorClick(serviceId){
var jsonData = loadServiceDetails(serviceId);
|