diff options
author | shentao <shentao@chinamobile.com> | 2017-10-30 17:59:37 +0800 |
---|---|---|
committer | shentao <shentao@chinamobile.com> | 2017-10-30 17:59:45 +0800 |
commit | fdc95484da793f4bc66b36a2066ad3cebcb6246d (patch) | |
tree | 92c3b65d81a5832c98aecc9e5a22613a00d14174 /usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js | |
parent | 92ef503e377f26d2c0abcd26e1d52387751e34f1 (diff) |
Fix Monitor bug
Change-Id: I7608578aa57feee97e0265b71ca97e285e2f89e0
Issue-Id: USECASEUI-50
Signed-off-by: shentao <shentao@chinamobile.com>
Diffstat (limited to 'usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js')
-rw-r--r-- | usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js index abd58cef..985ec877 100644 --- a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js +++ b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js @@ -13,14 +13,19 @@ See the License for the specific language governing permissions and limitations under the License. */ +var currentTab = 'app/uui/fusion/scripts/view-models/alarm.html'; + app.controller('cmCtrl',['$scope',function ($scope) { $scope.routeData = [ {name : 'Services' , url : 'app/uui/fusion/scripts/view-models/lifecyclemanagement.html' , nclass : 'fa fa-users'}, {name : 'Alarm' , url : 'app/uui/fusion/scripts/view-models/alarm.html' , nclass : 'fa fa-users'}, - {name : 'Performance' , url : 'app/uui/fusion/scripts/view-models/performance.html', nclass : 'fa fa-cog'}, - {name : 'About Performance Froms' , url : 'app/uui/fusion/scripts/view-models/performance-details.html', nclass : 'fa fa-cubes'}, + {name : 'Performance' , url : 'app/uui/fusion/scripts/view-models/performance.html', nclass : 'fa fa-cog'} ]; - $scope.currentTab = 'app/uui/fusion/scripts/view-models/alarm.html'; + $scope.currentTab = currentTab; + $scope.$watch('currentTab', function(newValue, oldValue) { + if (newValue === oldValue) { return; } // AKA first run + // $scope.onClickTab(newValue); + }); $scope.onClickTab = function (url) { $scope.currentTab = url; }; |