|
|
@@ -643,8 +643,9 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
condition.dateFrom = date;
|
|
|
condition.dateTo = null;
|
|
|
} else {
|
|
|
+ date.setMonth(date.getMonth() - 6)
|
|
|
condition.dateFrom = null;
|
|
|
- condition.dateTo = null;
|
|
|
+ condition.dateTo = date;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -1572,6 +1573,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
$scope.condition.dateZone = zone;
|
|
|
$scope.dateZoneText = typeof zone == 'undefined' ? '半年前' : (zone == 1 ? '一个月内' : '半年内');
|
|
|
$scope.condition.$dateZoneOpen = false;
|
|
|
+ getDateCondition(zone, $scope.condition);
|
|
|
+ $scope.tableParams.reload();
|
|
|
};
|
|
|
$scope.setActive = function(state) {
|
|
|
if($scope.active != state) {
|
|
|
@@ -1841,6 +1844,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
$scope.condition.dateZone = zone;
|
|
|
$scope.dateZoneText = typeof zone == 'undefined' ? '半年前' : (zone == 1 ? '一个月内' : '半年内');
|
|
|
$scope.condition.$dateZoneOpen = false;
|
|
|
+ getDateCondition(zone, $scope.condition);
|
|
|
+ $scope.tableParams.reload();
|
|
|
};
|
|
|
$scope.setActive = function(state) {
|
|
|
if($scope.active != state) {
|
|
|
@@ -2556,6 +2561,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
$scope.condition.dateZone = zone;
|
|
|
$scope.dateZoneText = typeof zone == 'undefined' ? '半年前' : (zone == 1 ? '一个月内' : '半年内');
|
|
|
$scope.condition.$dateZoneOpen = false;
|
|
|
+ getDateCondition(zone, $scope.condition);
|
|
|
+ $scope.tableParams.reload();
|
|
|
};
|
|
|
$scope.setActive = function(state) {
|
|
|
if($scope.active != state) {
|