From 5150528130a100b2ab712b60da5f90534e1dec7c Mon Sep 17 00:00:00 2001 From: Luji7 Date: Fri, 23 Sep 2016 17:20:23 +0800 Subject: add nodetype in detail page Change-Id: I3a4294857becd2835fba856c2ec3e03f1c29e0f2 Signed-off-by: Luji7 --- .../main/webapp/lifecyclemgr/js/tmNodesController.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'openo-portal') diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/tmNodesController.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/tmNodesController.js index 562f400c..0450f7e7 100644 --- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/tmNodesController.js +++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/tmNodesController.js @@ -53,9 +53,9 @@ var vm = avalon.define({ resp.nsState ]; var tableData = [ - [resp.vnfInfoId], - [resp.vlInfo.vldId], - [resp.vnffgInfo.vnffgInstanceId] + [resp.vnfInfoId, 'vnf'], + [resp.vlInfo.vldId, 'vl'], + [resp.vnffgInfo.vnffgInstanceId, 'vnffg'] ]; vm.$initNfvNodesTab(); vm.nodesList.nodesData = tableData; @@ -116,19 +116,14 @@ var vm = avalon.define({ +'' +''; $('#'+ divId).append(tableEleStr); - //$('#'+ tableId).append(' '); var trEle = $('#'+ tableId + ' > thead >tr'); - //var dataTableColumn = []; for ( var one in column){ var th = '' + column[one].name + ''; trEle.append(th); } var table = $("#" + tableId).dataTable({ - //"sDom" : "tr<'row'<'col-md-6 col-sm-12'><'col-md-6 col-sm-12'pli>>", // datatable layout - //"sDom" : "<'row'<'col-md-12 col-sm-12'lip>r><'table-scrollable't>>", "sDom": '<"top"rt><"bottom"lip>', "oLanguage": setting.language,//language - //"bJQueryUI": true, "bPaginate": setting.paginate,// page button "bFilter": false,// search bar "bAutoWidth":true,//automatically set colum width @@ -161,7 +156,8 @@ var vm = avalon.define({ $nodesTabFields : {// table columns table: [ {"mData": "id", name: "ID", "bVisible": false}, - {"mData": "instanceId", name: "Instance Id"} + {"mData": "instanceId", name: "Instance Id"}, + {"mData": "nodeType", name: "Node Type"} ] }, $initNodesTable: function () { @@ -176,7 +172,7 @@ var vm = avalon.define({ } }); -var initParam = function() { //initialize template detail params +var initParam = function() { var paramStr = window.location.search.substring(1); if(paramStr.length > 0) { avalon.scan(); @@ -188,4 +184,5 @@ var initParam = function() { //initialize template detail params vm.$init(); } }; + initParam(); \ No newline at end of file -- cgit 1.2.3-korg