Browse Source

进度条输入限制

yangc 8 years ago
parent
commit
36cc2cc163

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

@@ -26,10 +26,10 @@ define([ 'app/app', 'jquery-uploadify' ], function(app) {
 		}
 
 		$scope.onSalePriceChange = function (salePrice) {
-			if (salePrice < 0) {
-				$scope.salePrice = 0;
-			} else if (salePrice > 200) {
-				$scope.salePrice = 200;
+			if ($scope.uasBatchPutOnProperty.editFluctuateRate < 0) {
+				$scope.uasBatchPutOnProperty.editFluctuateRate = 0;
+			} else if ($scope.uasBatchPutOnProperty.editFluctuateRate > 200) {
+				$scope.uasBatchPutOnProperty.editFluctuateRate = 200;
 			}
 		}