|
|
@@ -735,17 +735,16 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
getData : function($defer, params) {
|
|
|
$scope.loading = true;
|
|
|
var pageParams = params.url();
|
|
|
- pageParams.keyword = $scope.keyword;
|
|
|
- pageParams.fromDate = $scope.condition.dateFrom ? $scope.condition.dateFrom.getTime() : null;
|
|
|
- pageParams.endDate = $scope.condition.dateTo ? $scope.condition.dateTo.getTime() : null;
|
|
|
+ pageParams.searchFilter = {};
|
|
|
+ pageParams.searchFilter.keyword = $scope.keyword;
|
|
|
+ pageParams.searchFilter.fromDate = $scope.condition.dateFrom ? $scope.condition.dateFrom.getTime() : null;
|
|
|
+ pageParams.searchFilter.endDate = $scope.condition.dateTo ? $scope.condition.dateTo.getTime() : null;
|
|
|
getService()[getState($scope.active)].call(null, BaseService.parseParams(pageParams), function(page){
|
|
|
$scope.loading = false;
|
|
|
if(page) {
|
|
|
$defer.resolve(page.content);
|
|
|
params.total(page.totalElements);
|
|
|
- $scope.keywordXls = angular.copy($scope.keyword);//保存当前取值的关键词
|
|
|
- $scope.fromDateXls = angular.copy($scope.condition.dateFrom ? $scope.condition.dateFrom.getTime() : null);//保存当前取值的起始日期
|
|
|
- $scope.endDateXls = angular.copy($scope.condition.dateTo ? $scope.condition.dateTo.getTime() : null);//保存当前取值的截止日期
|
|
|
+ $scope.searchFilterXls = angular.copy(pageParams.searchFilter);//保存当前取值的条件
|
|
|
}
|
|
|
}, function(response){
|
|
|
$scope.loading = false;
|