From 993330a8817ffbd94a4f4bbd38d20e26b2e77350 Mon Sep 17 00:00:00 2001 From: c00149107 Date: Mon, 24 Apr 2017 17:47:59 +0800 Subject: Fix resmgr client showing errors Fix resmgr client showing errors Change-Id: I493d7089c262ee0bf8078259fe2e287d2966731f Issue-ID:CLIENT-200 Signed-off-by: c00149107 --- extsys/src/main/webapp/extsys/sdncontroller/js/app.js | 4 ++-- .../webapp/extsys/sdncontroller/templates/controller.html | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'extsys') diff --git a/extsys/src/main/webapp/extsys/sdncontroller/js/app.js b/extsys/src/main/webapp/extsys/sdncontroller/js/app.js index 25fb256b..9a47d6c6 100644 --- a/extsys/src/main/webapp/extsys/sdncontroller/js/app.js +++ b/extsys/src/main/webapp/extsys/sdncontroller/js/app.js @@ -122,7 +122,7 @@ var app = angular.module("ControllerApp", ["ui.router", "ngTable"]) $('#myModal #protocol').append($compile(Mustache.to_html(dropDown, dropdowndata_protocol))($scope));*/ - var dropdownResponse=[{"id":"netconf","name":"netconf"},{"id":"snmp","name":"snmp"}]; + var dropdownResponse=[{"id":"netconf","name":"netconf"},{"id":"snmp","name":"snmp"},{"id":"https","name":"https"},{"id":"http","name":"http"}]; var dropdownInfo = translateToDropdownInfo(dropdownResponse); $('#myModal #protocolDD').html(dropdownInfo); @@ -156,7 +156,7 @@ var app = angular.module("ControllerApp", ["ui.router", "ngTable"]) //var data = [{id: 1, name: "Moroni", age: 50}, {id: 2, name: "ABC", age: 30}, {id: 3, name: "Morhoni", age: 10}, {id: 4, name: "DABC", age: 31}, {id: 5, name: "Noor", age: 30}, {id: 6, name: "ABCD", age: 40}, {id: 7, name: "DABC", age: 31}, {id: 8, name: "Noor", age: 30}, {id: 9, name: "ABCD", age: 40}, {id: 10, name: "DABC", age: 31}, {id: 11, name: "Noor", age: 30}, {id: 12, name: "ABCD", age: 40}]; $scope.controllerTableParams = new NgTableParams({count: 5, sorting: {name: 'asc'} //{page: 1,count: 10,filter: {name: 'M'},sorting: {name: 'desc'} - }, { counts:[5, 10, 20, 50], dataset: $scope.data.controllerData}); + }, { counts:[5, 10, 20, 50], dataset: $scope.data}); /*$scope.$watch('checkboxes.checked', function(value) { angular.forEach($scope.data.controllerData, function(item) { diff --git a/extsys/src/main/webapp/extsys/sdncontroller/templates/controller.html b/extsys/src/main/webapp/extsys/sdncontroller/templates/controller.html index 1aab2bdf..2d336101 100644 --- a/extsys/src/main/webapp/extsys/sdncontroller/templates/controller.html +++ b/extsys/src/main/webapp/extsys/sdncontroller/templates/controller.html @@ -30,32 +30,32 @@ --> - {{controllerData.Name}} + {{controllerData.name}} - {{controllerData.Protocol}} + {{controllerData.protocol}} {{controllerData.productName}} - {{controllerData.Type}} + {{controllerData.type}} - {{controllerData.Vendor}} + {{controllerData.vendor}} - {{controllerData.Version}} + {{controllerData.version}} - {{controllerData.Description}} + {{controllerData.description}} {{controllerData.createTime}} - {{controllerData.Operation}} + {{controllerData.operation}}