Browse Source

初始化方法修改

yangc 8 years ago
parent
commit
8266dd43ed

+ 5 - 4
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_materialCtrl.js

@@ -1039,17 +1039,18 @@ define([ 'app/app', 'jquery-uploadify' ], function(app) {
 			loadData();
 		};
 
-		$scope.init = function () {
+		var init = function () {
 			$scope.param.keyword = '';
-			if ($scope.standard_tab == 'standard')
+			if ($scope.standard_tab == 'standard') {
 				$scope.param.type = "standard";
-			if ($scope.standard_tab == 'unstandard')
+			} else if ($scope.standard_tab == 'unstandard') {
 				$scope.param.type = "nStandard";
+			}
 			$scope.isBatch = false;
 			$scope.param.count = 10;
 		};
 
-		$scope.init();
+		init();
 
 		loadData();