|
|
|
@ -16,7 +16,6 @@ define(['angular','decimal'], function (angular,decimal) {
|
|
|
|
|
$scope.today = new Date();
|
|
|
|
|
$scope.pagination = {};
|
|
|
|
|
$scope.today = new Date();
|
|
|
|
|
$scope.isAll = true;
|
|
|
|
|
$scope.clients = [$scope.currentUser.client];
|
|
|
|
|
if ($scope.currentUser.client.has_children) {
|
|
|
|
|
$scope.params.client_ids = [$scope.currentUser.client.client_id];
|
|
|
|
@ -25,23 +24,11 @@ define(['angular','decimal'], function (angular,decimal) {
|
|
|
|
|
clientList.forEach(function (client) {
|
|
|
|
|
$scope.clients.push(client);
|
|
|
|
|
});
|
|
|
|
|
$scope.clientIds = [];
|
|
|
|
|
$scope.clients.forEach(function (client) {
|
|
|
|
|
$scope.clientIds.push(client.client_id);
|
|
|
|
|
});
|
|
|
|
|
$scope.params.client_ids = angular.copy($scope.clientIds);
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
$scope.chooseClient = function (clientId) {
|
|
|
|
|
if (clientId == 'all') {
|
|
|
|
|
$scope.params.client_ids = angular.copy($scope.clientIds);
|
|
|
|
|
$scope.isAll = true;
|
|
|
|
|
$scope.chooseClientId = '';
|
|
|
|
|
} else {
|
|
|
|
|
$scope.chooseClientId = clientId;
|
|
|
|
|
$scope.params.client_ids = [clientId];
|
|
|
|
|
$scope.isAll = false;
|
|
|
|
|
}
|
|
|
|
|
$scope.chooseClientId = clientId;
|
|
|
|
|
$scope.params.client_ids = [clientId];
|
|
|
|
|
$scope.loadTradeLogs(1);
|
|
|
|
|
};
|
|
|
|
|
$scope.chooseToday = function () {
|
|
|
|
|