Browse Source

处理bug

wangcz 7 years ago
parent
commit
cc6390a52a

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

@@ -4066,6 +4066,8 @@ define(['app/app', 'jquery-uploadify'], function(app) {
           deadline: true
       };
       // 打开日期选择框
+      $scope.nowDate = new Date();
+      $scope.deadDate = new Date(Date.now() + 1000 * 60 * 60 * 24 * 30 * 3);
       $scope.condition = [];
       var start = {
           open : false
@@ -4099,8 +4101,6 @@ define(['app/app', 'jquery-uploadify'], function(app) {
               $scope.endDate = new Date($scope.endDate.getFullYear(), $scope.endDate.getMonth(), $scope.endDate.getDate())
               $scope.endDate = new Date($scope.endDate.getTime() + 23 * 60 * 60 * 1000 + 59 * 60 * 1000 + 59 * 1000);
           }
-          $scope.seekPurchaseTableParams.page(1);
-          $scope.seekPurchaseTableParams.reload();
       };
       var formatDateTime = function (date) {
           var y = date.getFullYear();