From 661bdd125756ecf3df3872a0ff069c2fda8f6a5d Mon Sep 17 00:00:00 2001 From: nancylizi Date: Mon, 31 Oct 2016 14:45:20 +0800 Subject: Fix the bug "Can not show package detail", remove the modeldsigner child menu. Change-Id: I6d9231db6e0d8458c33a228861a441ea27707ba5 Issue-id:GSO-86 Signed-off-by: nancylizi --- .../src/main/webapp/catalog/js/package/pmController.js | 15 +++++++-------- .../src/main/webapp/catalog/js/package/pmUtil.js | 15 ++++++++++----- .../src/main/webapp/catalog/js/template/topoUtil.js | 4 ++-- .../src/main/webapp/common/json/menu_list.json | 6 ------ 4 files changed, 19 insertions(+), 21 deletions(-) (limited to 'openo-portal') diff --git a/openo-portal/portal-catalog/src/main/webapp/catalog/js/package/pmController.js b/openo-portal/portal-catalog/src/main/webapp/catalog/js/package/pmController.js index 3b19d23e..714d953c 100644 --- a/openo-portal/portal-catalog/src/main/webapp/catalog/js/package/pmController.js +++ b/openo-portal/portal-catalog/src/main/webapp/catalog/js/package/pmController.js @@ -83,6 +83,7 @@ var vm = avalon.define({ setting.language = vm.$language; setting.paginate = true; setting.info = true; + setting.sort = true; setting.columns = vm.$packageTableFields.table; setting.restUrl = vm.$restUrl.queryPackageInfoUrl; setting.tableId = vm.$tableId; @@ -120,15 +121,13 @@ var vm = avalon.define({ vm.packageDetail.detailData[index].isActive = true; }, $initPackageDetailTable : function (csarId) { - var data; - for(var i=0; i' + obj.aData.name + ''; + + '\'block\',\'' + obj.aData.csarId + '\', \'' + obj.aData.name + '\')">' + obj.aData.name + ''; } pmUtil.onBoardRender = function(obj) { diff --git a/openo-portal/portal-catalog/src/main/webapp/catalog/js/template/topoUtil.js b/openo-portal/portal-catalog/src/main/webapp/catalog/js/template/topoUtil.js index 2c0561e0..47bd9a5d 100644 --- a/openo-portal/portal-catalog/src/main/webapp/catalog/js/template/topoUtil.js +++ b/openo-portal/portal-catalog/src/main/webapp/catalog/js/template/topoUtil.js @@ -388,7 +388,7 @@ topoUtil.generateNodeTemplate = function(data) { nodeTemplate.currentLinkNum = 0; var relationShips = data.relationShips || []; //some nodes may not have relationships $.each(relationShips, function(index, obj){ - if (obj.sourceNodeId == data.id) { + if (obj.sourceNodeId == data.name) { switch(obj.type) { case "containedIn" : case "tosca.relationships.nfv.ContainedIn" : @@ -414,7 +414,7 @@ topoUtil.generateNodeTemplate = function(data) { break; } } - if (obj.targetNodeId == data.id) { + if (obj.targetNodeId == data.name) { switch(obj.type) { case "connectedTo" : case "tosca.relationships.nfv.ConnectsTo" : diff --git a/openo-portal/portal-common/src/main/webapp/common/json/menu_list.json b/openo-portal/portal-common/src/main/webapp/common/json/menu_list.json index d99bce15..b7c088f4 100644 --- a/openo-portal/portal-common/src/main/webapp/common/json/menu_list.json +++ b/openo-portal/portal-common/src/main/webapp/common/json/menu_list.json @@ -50,12 +50,6 @@ "url":"../user/user.html", "iconClass":"fa fa-puzzle-piece" }, - { - "parentId":"openo_menu_orchestrator", - "id":"openo_menu_orchestrator_model_design", - "url":"/winery/servicetemplates.html", - "iconClass":"fa fa-folder-open-o" - }, { "parentId":"openo_menu_orchestrator", "id":"openo_menu_orchestrator_package", -- cgit 1.2.3-korg