summaryrefslogtreecommitdiffstats
path: root/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js
diff options
context:
space:
mode:
authorshentao <shentao@chinamobile.com>2018-01-29 16:01:39 +0800
committershentao <shentao@chinamobile.com>2018-01-29 16:01:46 +0800
commit38e9a13577863ec33962aa52885250845b40be98 (patch)
tree4a1d685724ad36289a0eafb877be37990c23bedd /usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js
parent4395945178cf9731e488cc0e92f2d6aa53663d2a (diff)
Fix alarm list page bug
Change-Id: I69a81921d62a4d483e69e0d3b24614e269a1858d Issue-ID: USECASEUI-101 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.js41
1 files changed, 32 insertions, 9 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 985ec877..03e90bc2 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,17 +13,40 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
-var currentTab = 'app/uui/fusion/scripts/view-models/alarm.html';
+var currentTab = 'app/uui/fusion/scripts/view-models/performance.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'}
+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: 'Topological diagram',
+ url: 'app/uui/fusion/scripts/view-models/topology.html',
+ nclass: 'fa fa-cog'
+ },
+ {
+ name: 'Device topological',
+ url: 'app/uui/fusion/scripts/view-models/device-topological.html',
+ nclass: 'fa fa-cog'
+ }*/
];
$scope.currentTab = currentTab;
- $scope.$watch('currentTab', function(newValue, oldValue) {
- if (newValue === oldValue) { return; } // AKA first run
+ $scope.$watch('currentTab', function (newValue, oldValue) {
+ if (newValue === oldValue) {
+ return;
+ } // AKA first run
// $scope.onClickTab(newValue);
});
$scope.onClickTab = function (url) {
@@ -32,4 +55,4 @@ app.controller('cmCtrl',['$scope',function ($scope) {
$scope.isActiveTab = function (tabRoute) {
return tabRoute == $scope.currentTab;
}
-}]);
+}]); \ No newline at end of file