Просмотр исходного кода

求购发布时间筛选默认选择7天去掉全部

huangb 7 лет назад
Родитель
Сommit
149a078da0

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

@@ -32,10 +32,10 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
             }
 
           // 发布时间
-          $scope.dateArea = 'ALL';
+          $scope.dateArea = 'sevenDay';
 
           // 更换待报价状态
-          $scope.vendorType = 'all'
+          $scope.vendorType = 'self'
           $scope.onVendorTypeChange = function () {
             $scope.keyword = '';
             $scope.startDate = null;
@@ -48,7 +48,7 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
             //   var seekUrl = 'http://10.1.51.82:24002';
             /*$scope.tab = 'waitOffer';*/
             $scope.toogleTab = function (tab) {
-              $scope.vendorType = 'all'
+              $scope.vendorType = 'self'
                 $scope.tab = tab;
               $scope.seekPurchaseTableParams = new ngTableParams({
                 page: 1,
@@ -77,7 +77,7 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
                         ? $scope.startDate.getTime() : null;
                     param.endDate = $scope.endDate ? $scope.endDate.getTime()
                         : null;
-                    param.overdue = $scope.vendorType === 'all' ? '' : ($scope.vendorType === 'self' ? '0' : '1')
+                    param.overdue = $scope.vendorType === 'self' ? '0' : '1'
                     $http({
                       method: 'get',
                       dataType: 'json',
@@ -110,7 +110,7 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
                         ? $scope.startDate.getTime() : null;
                     param.endDate = $scope.endDate ? $scope.endDate.getTime()
                         : null;
-                    param.overdue = $scope.vendorType === 'all' ? '' : ($scope.vendorType === 'self' ? '0' : '1')
+                    param.overdue =$scope.vendorType === 'self' ? '0' : '1'
                     $http({
                       method: 'get',
                       dataType: 'json',

+ 3 - 13
src/main/webapp/resources/view/usercenter/forstore/seekPurchase.html

@@ -1098,11 +1098,6 @@
         <div class="screen check-filter">
             <div class="radio-block" ng-show="tab == 'waitOffer'" style="display: block;">
                 求购筛选:
-                <label class="com-check-radio">
-                    <input type="radio" id="methodAll" name="method" ng-click="setFilters('vendorType', 'all')" ng-checked="vendorType == 'all'">
-                    <label for="methodAll"></label>
-                    全部
-                </label>
                 <label class="com-check-radio">
                     <input type="radio" id="forSeller" name="method" ng-click="setFilters('vendorType', 'self')" ng-checked="vendorType == 'self'">
                     <label for="forSeller"></label>
@@ -1116,25 +1111,20 @@
             </div>
             <div class="radio-block date-radio">
                 发布时间:
-                <label class="com-check-radio">
-                    <input type="radio" id="dateAll" name="date" ng-click="setFilters('dateArea', 'ALL')" ng-checked="dateArea == 'ALL'">
-                    <label for="dateAll"></label>
-                    全部
-                </label>
                 <label class="com-check-radio">
                     <input type="radio" id="oneDay" name="date" ng-click="setFilters('dateArea', 'oneDay')" ng-checked="dateArea == 'oneDay'">
                     <label for="oneDay"></label>
-                    1天
+                    1天
                 </label>
                 <label class="com-check-radio">
                     <input type="radio" id="threeDay" name="date" ng-click="setFilters('dateArea', 'threeDay')" ng-checked="dateArea == 'threeDay'">
                     <label for="threeDay"></label>
-                    3天
+                    3天
                 </label>
                 <label class="com-check-radio">
                     <input type="radio" id="sevenDay" name="date" ng-click="setFilters('dateArea', 'sevenDay')" ng-checked="dateArea == 'sevenDay'">
                     <label for="sevenDay"></label>
-                    7天
+                    7天
                 </label>
                 <label class="com-check-radio">
                     <input type="radio" id="autoDay" name="date" ng-click="setFilters('dateArea', 'autoDay')" ng-checked="dateArea == 'autoDay'">