Selaa lähdekoodia

添加委外,品质,财务模块

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@1932 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
aof 10 vuotta sitten
vanhempi
commit
9795c9af59
1 muutettua tiedostoa jossa 18 lisäystä ja 2 poistoa
  1. 18 2
      src/main/webapp/resources/js/index/mobile.index.app.js

+ 18 - 2
src/main/webapp/resources/js/index/mobile.index.app.js

@@ -60,7 +60,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
 			url: '/return/:id',
 			url: '/return/:id',
 			templateUrl: 'static/tpl/index_mobile/sale/return_detail.html',
 			templateUrl: 'static/tpl/index_mobile/sale/return_detail.html',
 			controller: 'SaleReturnCtrl'
 			controller: 'SaleReturnCtrl'
-			})		
+		})	
 	}]);
 	}]);
 	
 	
 	app.factory('StatusCode', function(){
 	app.factory('StatusCode', function(){
@@ -98,7 +98,12 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
 		};
 		};
 	});
 	});
 	
 	
-	app.controller('MyCtrl', ['$scope', '$rootScope', function($scope, $rootScope) {
+	app.controller('MyCtrl', ['$scope', '$rootScope','$window', 'AuthenticationService', function($scope, $rootScope,$window,AuthenticationService) {
+		$scope.logout = function() {
+			AuthenticationService.logout().success(function() {
+				$window.location.reload();
+			});
+		};
 		$rootScope.$on('$locationChangeSuccess', function(evt, newUrl) {
 		$rootScope.$on('$locationChangeSuccess', function(evt, newUrl) {
 			var routeState = newUrl.substr(newUrl.indexOf('#/') + 2);
 			var routeState = newUrl.substr(newUrl.indexOf('#/') + 2);
 			if (routeState.indexOf('/') > -1)
 			if (routeState.indexOf('/') > -1)
@@ -164,6 +169,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
 		SnapshotService.getTodo(function(data){
 		SnapshotService.getTodo(function(data){
 			$scope.todo = data;
 			$scope.todo = data;
 		});
 		});
+		$scope.active =[false,true,false,false];
+		$scope.showMake = function(index) {
+			for (var i=0;i<$scope.active.length;i++) {
+				if($scope.active[i] == true) {
+					$scope.active[i] = false;
+				} 
+				if(index == i) {
+					$scope.active[i] = true;
+				}
+			}
+		}
 	}]);
 	}]);
 	
 	
 	/**
 	/**