Browse Source

民主集中制

lizeyu 4 months ago
parent
commit
28e23695e7

+ 3 - 0
src/main/resources/static/app/main/partylife/meeting/list.html

@@ -72,6 +72,9 @@
                                 <button class="btn btn-default1"
                                         ng-click="search()">查询
                                 </button>
+                                <button class="btn btn-default1"
+                                        ng-click="reset()">重置
+                                </button>
                             </div>
                         </div>
                     </div>

+ 10 - 1
src/main/resources/static/app/main/partylife/meeting/list.js

@@ -18,8 +18,9 @@
             isunfold: false,//组织结构树展开收缩
             selectdzzdm: "",
             selectdzzmc: "",
-            defaultselected: $state.params.dzzdm
+            defaultselected: ''
         };
+        $scope.resettreeparams = angular.copy($scope.treeparams);
         //查询条件
         $scope.selectparams = {
             pageindex: 1,
@@ -31,6 +32,7 @@
             endDate: null
         };
         $scope.pageInfo = {ptotal: 0};
+        $scope.resetselectparams = angular.copy($scope.selectparams);
 
         $scope.$on('tabChildReloadData', function (event, data) {
             if (data.name == 'pf_meetingListCtrl') {
@@ -166,5 +168,12 @@
         };
 
         $scope.loadData();
+
+        $scope.reset = function () {
+            $scope.treeparams = angular.copy($scope.resettreeparams);
+            $scope.selectparams = angular.copy($scope.resetselectparams);
+            $scope.selectparams.partyLifeMeetingType = $scope.partyLifeMeetingType;
+            $scope.loadData();
+        }
     });
 })(angular);