Browse Source

const改成var

yangc 7 years ago
parent
commit
cb9fc0f723
33 changed files with 37 additions and 37 deletions
  1. 1 1
      src/main/webapp/resources/js/admin/controllers/AuditRealAuthCtrl.js
  2. 1 1
      src/main/webapp/resources/js/admin/controllers/KeyWordCtrl.js
  3. 1 1
      src/main/webapp/resources/js/admin/controllers/LogUsageCtrl.js
  4. 1 1
      src/main/webapp/resources/js/admin/controllers/SecQuestionCtrl.js
  5. 1 1
      src/main/webapp/resources/js/admin/controllers/SeekQualityBuyerCtrl.js
  6. 1 1
      src/main/webapp/resources/js/admin/controllers/SeekSalesmanCtrl.js
  7. 1 1
      src/main/webapp/resources/js/admin/controllers/bankInfo/AuditBankInfoCtrl.js
  8. 1 1
      src/main/webapp/resources/js/admin/controllers/fa/LoanApplyListCtrl.js
  9. 1 1
      src/main/webapp/resources/js/admin/controllers/help/HelpDetailCtrl.js
  10. 1 1
      src/main/webapp/resources/js/admin/controllers/help/HelpEditCtrl.js
  11. 1 1
      src/main/webapp/resources/js/admin/controllers/search/search_See.js
  12. 1 1
      src/main/webapp/resources/js/common/controllers/commonCtrls.js
  13. 1 1
      src/main/webapp/resources/js/common/query/address.js
  14. 1 1
      src/main/webapp/resources/js/common/query/authority.js
  15. 1 1
      src/main/webapp/resources/js/common/query/keyWord.js
  16. 1 1
      src/main/webapp/resources/js/common/query/logUsage.js
  17. 1 1
      src/main/webapp/resources/js/common/query/secQuestion.js
  18. 1 1
      src/main/webapp/resources/js/common/query/seekPurchase.js
  19. 1 1
      src/main/webapp/resources/js/common/query/seekQualityBuyer.js
  20. 1 1
      src/main/webapp/resources/js/common/query/seekSalesman.js
  21. 3 3
      src/main/webapp/resources/js/common/query/supplier.js
  22. 1 1
      src/main/webapp/resources/js/store/controllers/default/StoreBatchInfoCtrl.js
  23. 1 1
      src/main/webapp/resources/js/usercenter/app.js
  24. 1 1
      src/main/webapp/resources/js/usercenter/controllers/forstore/account_manager_ctrl.js
  25. 2 2
      src/main/webapp/resources/js/usercenter/controllers/forstore/bom_detail_ctrl.js
  26. 1 1
      src/main/webapp/resources/js/usercenter/controllers/forstore/buyer_logistics_ctrl.js
  27. 1 1
      src/main/webapp/resources/js/usercenter/controllers/forstore/order_pay_ctrl.js
  28. 1 1
      src/main/webapp/resources/js/usercenter/controllers/forstore/pay_center_ctrl.js
  29. 2 2
      src/main/webapp/resources/js/usercenter/controllers/forstore/seek_purchase_ctrl.js
  30. 1 1
      src/main/webapp/resources/js/vendor/controllers/forstore/purchase_accept_ctrl.js
  31. 1 1
      src/main/webapp/resources/js/vendor/controllers/forstore/purchase_offer_ctrl.js
  32. 1 1
      src/main/webapp/resources/js/vendor/controllers/forstore/seek_purchase_ctrl.js
  33. 1 1
      src/main/webapp/resources/js/vendor/controllers/forstore/vendor_logistics_ctrl.js

+ 1 - 1
src/main/webapp/resources/js/admin/controllers/AuditRealAuthCtrl.js

@@ -10,7 +10,7 @@ define(['app/app'], function (app) {
     }, {
       total : 0,
       getData : function ($defer, params) {
-        const param = BaseService.parseParams(params.url());
+          var param = BaseService.parseParams(params.url());
         param.status = $scope.status;
         User.getPageStatusRealAuth(param, function (data) {
           params.total(data.totalElements);

+ 1 - 1
src/main/webapp/resources/js/admin/controllers/KeyWordCtrl.js

@@ -10,7 +10,7 @@ define(['app/app'], function (app) {
       total : 0,
       getData : function ($defer, params) {
         $scope.paginationParams = params;
-        const param = BaseService.parseParams(params.url());
+          var param = BaseService.parseParams(params.url());
         //param.status = $scope.status;
         param.keyword = $scope.keyword;
         KeyWord.getKeyWordPageInfo(param, function (data) {

+ 1 - 1
src/main/webapp/resources/js/admin/controllers/LogUsageCtrl.js

@@ -9,7 +9,7 @@ define(['app/app'], function (app) {
       total : 0,
       getData : function ($defer, params) {
         $scope.paginationParams = params;
-        const param = BaseService.parseParams(params.url());
+          var param = BaseService.parseParams(params.url());
         //param.status = $scope.status;
         if($scope.search !=null){
           if($scope.search == 1){

+ 1 - 1
src/main/webapp/resources/js/admin/controllers/SecQuestionCtrl.js

@@ -8,7 +8,7 @@ define(['app/app'], function (app) {
     }, {
       total : 0,
       getData : function ($defer, params) {
-        const param = BaseService.parseParams(params.url());
+          var param = BaseService.parseParams(params.url());
         //param.status = $scope.status;
         //param.keyword = $scope.keyword;
         secQuestion.getPageInfo(param, function (data) {

+ 1 - 1
src/main/webapp/resources/js/admin/controllers/SeekQualityBuyerCtrl.js

@@ -7,7 +7,7 @@ define(['app/app'], function (app) {
     }, {
       total : 0,
       getData : function ($defer, params) {
-        const param = BaseService.parseParams(params.url());
+          var param = BaseService.parseParams(params.url());
         seekQualityBuyer.getBuyerPageInfo(param, function (data) {
           params.total(data.totalElements);
           $defer.resolve(data.content);

+ 1 - 1
src/main/webapp/resources/js/admin/controllers/SeekSalesmanCtrl.js

@@ -9,7 +9,7 @@ define(['app/app'], function (app) {
     }, {
       total : 0,
       getData : function ($defer, params) {
-        const param = BaseService.parseParams(params.url());
+          var param = BaseService.parseParams(params.url());
           param.status = $scope.seek_status;
           param.salesman = $scope.seek_salesman;
           param.keyword = $scope.keyword;

+ 1 - 1
src/main/webapp/resources/js/admin/controllers/bankInfo/AuditBankInfoCtrl.js

@@ -38,7 +38,7 @@ define(['app/app'], function (app) {
         }, {
             total : 0,
             getData : function ($defer, params) {
-                const param = BaseService.parseParams(params.url());
+                var param = BaseService.parseParams(params.url());
                 param.status = $scope.status;
                 param.keyword = $scope.keyword;
                 bankInfoService.getPageStatusBankInfo(param, function (data) {

+ 1 - 1
src/main/webapp/resources/js/admin/controllers/fa/LoanApplyListCtrl.js

@@ -9,7 +9,7 @@ define(['app/app'], function (app) {
       total : 0,
       getData : function ($defer, params) {
         $scope.paginationParams = params;
-        const param = BaseService.parseParams(params.url());
+        var param = BaseService.parseParams(params.url());
           LoanApply.getAllByPage(param, function (data) {
           params.total(data.totalElements);
           $defer.resolve(data.content);

+ 1 - 1
src/main/webapp/resources/js/admin/controllers/help/HelpDetailCtrl.js

@@ -33,7 +33,7 @@ define(['app/app'], function(app) {
 
         $scope.rootPath = BaseService.getRootPath();
         function switchBase64ToImg(el) {
-            const regex = new RegExp(':(.*?);');
+            var regex = new RegExp(':(.*?);');
             var data = el.src;
             var arr = data.split(','), mime = regex.exec(arr[0])[1],
                 bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n);

+ 1 - 1
src/main/webapp/resources/js/admin/controllers/help/HelpEditCtrl.js

@@ -33,7 +33,7 @@ define(['app/app'], function(app) {
 
         $scope.rootPath = BaseService.getRootPath();
         function switchBase64ToImg(el) {
-            const regex = new RegExp(':(.*?);');
+            var regex = new RegExp(':(.*?);');
             var data = el.src;
             var arr = data.split(','), mime = regex.exec(arr[0])[1],
                 bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n);

+ 1 - 1
src/main/webapp/resources/js/admin/controllers/search/search_See.js

@@ -122,7 +122,7 @@ define(['app/app'], function (app) {
             total : 0,
             getData : function ($defer, params) {
                 $scope.paginationParams = params;
-                const param = BaseService.parseParams(params.url());
+                var param = BaseService.parseParams(params.url());
                 //param.status = $scope.status;
                 if($scope.search !=null){
                     if($scope.search == 1){

+ 1 - 1
src/main/webapp/resources/js/common/controllers/commonCtrls.js

@@ -1853,7 +1853,7 @@ define([ 'app/app' ], function(app) {
 	}]);
 
     function checkNullStr (str) {
-        const NULL_ARR = ['空', '没', '无', '-', '—', 'null', '#N/A'];
+        var NULL_ARR = ['空', '没', '无', '-', '—', 'null', '#N/A'];
         var flag = true;
         NULL_ARR.map(function (s) {  flag = str === s ? false : flag; });
         return flag;

+ 1 - 1
src/main/webapp/resources/js/common/query/address.js

@@ -1,6 +1,6 @@
 define([ 'ngResource' ], function() {
 	angular.module('addressServices', [ 'ngResource' ]).factory('ShippingAddress', ['$resource', 'BaseService', function($resource, BaseService) {
-		const rootPath = BaseService.getRootPath();
+        var rootPath = BaseService.getRootPath();
 		//获取收货地址
 		return $resource('trade/address/shipping', {}, {
 			/*

+ 1 - 1
src/main/webapp/resources/js/common/query/authority.js

@@ -1,6 +1,6 @@
 define([ 'ngResource' ], function() {
 	angular.module('authorityServices', [ 'ngResource' ]).factory('Authority', ['$resource', 'BaseService', function($resource, BaseService) {
-		const rootPath = BaseService.getRootPath();
+        var rootPath = BaseService.getRootPath();
 		// 获取接口权限
 		return $resource('user/authentication/isauthority', {}, {
 			getAuthority : {

+ 1 - 1
src/main/webapp/resources/js/common/query/keyWord.js

@@ -1,6 +1,6 @@
 define([ 'ngResource' ], function() {
   angular.module('keyWordServices', [ 'ngResource' ]).factory('KeyWord', ['$resource', 'BaseService', function($resource, BaseService) {
-    const rootPath = BaseService.getRootPath();
+      var rootPath = BaseService.getRootPath();
     return $resource('keyword', {}, {
       getOneKeyWord:{
         url : 'keyword/getOneKeyWord/:id',

+ 1 - 1
src/main/webapp/resources/js/common/query/logUsage.js

@@ -1,6 +1,6 @@
 define([ 'ngResource' ], function() {
 	angular.module('logUsageServices', [ 'ngResource' ]).factory('logUsage', ['$resource', 'BaseService', function($resource, BaseService) {
-		const rootPath = BaseService.getRootPath();
+        var rootPath = BaseService.getRootPath();
 		return $resource('log/usage', {}, {
       getAllByPage:{
       	url:'log/usage/:userUu',

+ 1 - 1
src/main/webapp/resources/js/common/query/secQuestion.js

@@ -1,6 +1,6 @@
 define([ 'ngResource' ], function() {
 	angular.module('secQuestionServices', [ 'ngResource' ]).factory('secQuestion', ['$resource', 'BaseService', function($resource, BaseService) {
-		const rootPath = BaseService.getRootPath();
+        var rootPath = BaseService.getRootPath();
 		return $resource('user/secQuestion', {}, {
       add : {
         url : 'user/secQuestion/add',

+ 1 - 1
src/main/webapp/resources/js/common/query/seekPurchase.js

@@ -1,6 +1,6 @@
 define([ 'ngResource' ], function() {
 	angular.module('seekPurchaseServices', [ 'ngResource' ]).factory('seekPurchase', ['$resource', 'BaseService', function($resource, BaseService) {
-		const rootPath = BaseService.getRootPath();
+        var rootPath = BaseService.getRootPath();
 		return $resource('seek', {}, {
 		  getSeekUrl: {
 		    url: 'seek/accessUrl',

+ 1 - 1
src/main/webapp/resources/js/common/query/seekQualityBuyer.js

@@ -1,6 +1,6 @@
 define([ 'ngResource' ], function() {
 	angular.module('seekQualityBuyerServices', [ 'ngResource' ]).factory('seekQualityBuyer', ['$resource', 'BaseService', function($resource, BaseService) {
-		const rootPath = BaseService.getRootPath();
+        var rootPath = BaseService.getRootPath();
 		return $resource('seek/qualityBuyer', {}, {
       getBuyerPageInfo:{
         url:'seek/qualityBuyer/getBuyerPageInfo',

+ 1 - 1
src/main/webapp/resources/js/common/query/seekSalesman.js

@@ -1,6 +1,6 @@
 define([ 'ngResource' ], function() {
 	angular.module('seekSalesmanServices', [ 'ngResource' ]).factory('seekSalesman', ['$resource', 'BaseService', function($resource, BaseService) {
-		const rootPath = BaseService.getRootPath();
+        var rootPath = BaseService.getRootPath();
 		return $resource('seek/salesman', {}, {
             getPageInfo: {
                 url: 'seek/salesman/getPageInfo',

+ 3 - 3
src/main/webapp/resources/js/common/query/supplier.js

@@ -1,6 +1,6 @@
 define([ 'ngResource' ], function() {
 	angular.module('supplierServices', [ 'ngResource' ]).factory('SupplierAPI', ['$resource', 'BaseService', function($resource, BaseService) {
-		const rootPath = BaseService.getRootPath();
+        var rootPath = BaseService.getRootPath();
 		// 供应商
 		return $resource('api/produce/vendorlist', {}, {
 			/*
@@ -12,7 +12,7 @@ define([ 'ngResource' ], function() {
 			}
 		});
 	}]).factory('Supplier', ['$resource', 'BaseService', function($resource, BaseService) {
-		const rootPath = BaseService.getRootPath();
+        var rootPath = BaseService.getRootPath();
 		// 供应商
 		return $resource('produce/vendorlist', {}, {
 			/*
@@ -24,7 +24,7 @@ define([ 'ngResource' ], function() {
 			}
 		});
 	}]).factory('SupplierSubmit', ['$resource', 'BaseService', function($resource, BaseService) {
-		const rootPath = BaseService.getRootPath();
+        var rootPath = BaseService.getRootPath();
 		// 供应商申请
 		return $resource('/produce/vendorSubmit', {}, {
 			/*

+ 1 - 1
src/main/webapp/resources/js/store/controllers/default/StoreBatchInfoCtrl.js

@@ -17,7 +17,7 @@ define(['app/app'], function(app) {
 		}
 
 		// 获取商品批次号信息
-		const batchCode = $stateParams.batchCode;
+        var batchCode = $stateParams.batchCode;
 		// 价格信息
 		$scope.fragment = {};
 		$scope.fragment.price = {};

+ 1 - 1
src/main/webapp/resources/js/usercenter/app.js

@@ -674,7 +674,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'commo
 			if(typeof(email) == 'undefined') {
 				email = '';
 			} else {
-				const index = email.indexOf('@');
+				var index = email.indexOf('@');
 				email = email[0] + '***' + email.substring(index, email.length);
 			}
 			return email;

+ 1 - 1
src/main/webapp/resources/js/usercenter/controllers/forstore/account_manager_ctrl.js

@@ -248,7 +248,7 @@ define(['app/app'], function (app) {
 		}, {
 			total : 0,
 			getData : function ($defer, params) {
-				const param = BaseService.parseParams(params.url());
+                var param = BaseService.parseParams(params.url());
 				param.isSend = false;
 				ShippingAddress.pageAddressOfUser(param, {}, function (page) {
 					$scope.isBiggerFive = false;

+ 2 - 2
src/main/webapp/resources/js/usercenter/controllers/forstore/bom_detail_ctrl.js

@@ -246,7 +246,7 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
                 }, {
                   total: 0,
                   getData: function ($defer, params) {
-                    const param = BaseService.parseParams(params.url());
+                      var param = BaseService.parseParams(params.url());
                     // param.isMallGoods = $scope.isMallGoods;
                     // param.deadline = $scope.deadline;
                     // param.keyWord = $scope.keyWord;
@@ -788,7 +788,7 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
                 }, {
                   total: 0,
                   getData: function ($defer, params) {
-                    const param = BaseService.parseParams(params.url());
+                      var param = BaseService.parseParams(params.url());
                     seekPurchase.getSeekPurchaseBomListPage(param,
                         function (data) {
                           params.total(data.totalElements);

+ 1 - 1
src/main/webapp/resources/js/usercenter/controllers/forstore/buyer_logistics_ctrl.js

@@ -39,7 +39,7 @@ define(['app/app', 'calendar'], function(app) {
 		}, {
 			total : 0,
 			getData : function ($defer, params) {
-				const param = BaseService.parseParams(params.url());
+                var param = BaseService.parseParams(params.url());
 				param.isSend = false;
 				ShippingAddress.pageAddressOfUser(param, {}, function (page) {
                     $scope.isBiggerFive = false;

+ 1 - 1
src/main/webapp/resources/js/usercenter/controllers/forstore/order_pay_ctrl.js

@@ -912,7 +912,7 @@ define(['app/app'], function(app) {
 				return ;
 			}
 
-			const properPrice = detail.goodsHistory.prices.filter(function (price) {
+            var properPrice = detail.goodsHistory.prices.filter(function (price) {
 				return number >= price.start && number <= price.end;
 			});
 

+ 1 - 1
src/main/webapp/resources/js/usercenter/controllers/forstore/pay_center_ctrl.js

@@ -54,7 +54,7 @@ define(['app/app'], function(app) {
 		}, {
 			total : 0,
 			getData : function ($defer, params) {
-				const param = BaseService.parseParams(params.url());
+                var param = BaseService.parseParams(params.url());
 				if ($scope.keyword && $scope.keyword.length > 0){
 					param.keyword = $scope.keyword;
 				}

+ 2 - 2
src/main/webapp/resources/js/usercenter/controllers/forstore/seek_purchase_ctrl.js

@@ -40,7 +40,7 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
               }, {
                 total: 0,
                 getData: function ($defer, params) {
-                  const param = BaseService.parseParams(params.url());
+                    var param = BaseService.parseParams(params.url());
                   param.pageNumber = param.page;
                   param.pageSize = param.count;
                   if ($scope.isSearch) {
@@ -139,7 +139,7 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
           }, {
             total: 0,
             getData: function ($defer, params) {
-              const param = BaseService.parseParams(params.url());
+                var param = BaseService.parseParams(params.url());
               if ($scope.userInfo.enterprise) {
                 param.enUU = $scope.userInfo.enterprise.uu;
               } else {

+ 1 - 1
src/main/webapp/resources/js/vendor/controllers/forstore/purchase_accept_ctrl.js

@@ -19,7 +19,7 @@ define(['app/app'], function(app) {
         }, {
             total : 0,
             getData : function ($defer, params) {
-                const param = BaseService.parseParams(params.url());
+                var param = BaseService.parseParams(params.url());
                 filter = {};
                 filter.vendUU = $scope.userInfo.enterprise.uu;
 

+ 1 - 1
src/main/webapp/resources/js/vendor/controllers/forstore/purchase_offer_ctrl.js

@@ -13,7 +13,7 @@ define(['app/app'], function(app) {
         }, {
             total : 0,
             getData : function ($defer, params) {
-                const param = BaseService.parseParams(params.url());
+                var param = BaseService.parseParams(params.url());
                 var filter = {};
                 filter.vendUU = $scope.userInfo.enterprise.uu;
                 // param.enUU = $scope.userInfo.enterprise.uu;

+ 1 - 1
src/main/webapp/resources/js/vendor/controllers/forstore/seek_purchase_ctrl.js

@@ -33,7 +33,7 @@ define(['app/app'], function (app) {
           }, {
             total: 0,
             getData: function ($defer, params) {
-              const param = BaseService.parseParams(params.url());
+                var param = BaseService.parseParams(params.url());
               // param.deadline = $scope.deadline;
               // param.status = $scope.status;
               param.keyword = $scope.keyWord;

+ 1 - 1
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_logistics_ctrl.js

@@ -63,7 +63,7 @@ define(['app/app', 'calendar'], function (app) {
 		}, {
 			total : 0,
 			getData : function ($defer, params) {
-				const param = BaseService.parseParams(params.url());
+                var param = BaseService.parseParams(params.url());
 				param.isSend = true;
 				ShippingAddress.pageAddressOfUser(param, {}, function (page) {
 					$scope.isBiggerFive = false;