|
|
|
@ -2421,16 +2421,19 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).result.then(function () {
|
|
|
|
|
$scope.loadSubClients();
|
|
|
|
|
$scope.loadSubClients(1);
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.loadSubClients = function () {
|
|
|
|
|
$http.get('/sys/partners/' + $scope.partner.client_moniker + '/sub_clients').then(function (resp) {
|
|
|
|
|
$scope.subPartners = resp.data;
|
|
|
|
|
$scope.loadSubClients = function (page) {
|
|
|
|
|
$scope.page = page || $scope.pagination.page || 1;
|
|
|
|
|
$http.get('/sys/partners/' + $scope.partner.client_moniker + '/sub_clients/'+$scope.page).then(function (resp) {
|
|
|
|
|
$scope.subPartners = resp.data.data;
|
|
|
|
|
$scope.pagination = resp.data.pagination;
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
$scope.loadSubClients();
|
|
|
|
|
|
|
|
|
|
$scope.loadSubClients(1);
|
|
|
|
|
|
|
|
|
|
$scope.loadPartnerPaymentInfo = function () {
|
|
|
|
|
$http.get('/sys/partners/' + $scope.partner.client_moniker).then(function (resp) {
|
|
|
|
|