From e7adec9a6b3e52513d5326c6c36d03440533a233 Mon Sep 17 00:00:00 2001 From: c00149107 Date: Mon, 31 Oct 2016 17:13:05 +0800 Subject: fix issue:GSO-89 Change-Id: I67c5e24d6bbd82f7e1340c9e93d19b9cc1e929b9 Signed-off-by: c00149107 --- .../src/main/webapp/lifecyclemgr/InputData.html | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/InputData.html') diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/InputData.html b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/InputData.html index d76182ce..b5a2d98c 100644 --- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/InputData.html +++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/InputData.html @@ -43,9 +43,22 @@ var name = key; if(name.includes('.')) { - name = key.substring(key.lastInexOf('.')+1,key.length); + name = key.substring(key.lastIndexOf('.')+1,key.length); } - $("body").append('
'); + var paramValue = jsonData.inputParameters[key]; + if(name.indexOf('location') != -1) { + var vimObj = getVimNameById(paramValue); + if(vimObj != undefined){ + paramValue = vimObj.name; + } + } + else if(name.indexOf('sdncontroller') != -1){ + var sdnControllerObj = getSdnControllerNameById(paramValue); + if(sdnControllerObj != undefined){ + paramValue = sdnControllerObj.name; + } + } + $("body").append('
'); } } -- cgit 1.2.3-korg