diff --git a/src/main/ui/static/analysis/partners-analysis.js b/src/main/ui/static/analysis/partners-analysis.js
index fe4100c96..f2525a4d2 100644
--- a/src/main/ui/static/analysis/partners-analysis.js
+++ b/src/main/ui/static/analysis/partners-analysis.js
@@ -404,7 +404,23 @@ define(['angular', 'uiBootstrap', 'uiRouter', 'angularEcharts','./transaction/an
}
]
};
-
+ $scope.analysisClients = function () {
+ $http.get('/sys/partners/analysis').then(function (resp) {
+ $scope.analysis = resp.data;
+ })
+ };
+ if ($scope.currentUser.org_id == 1 || $scope.currentUser.org_id == null) {
+ $scope.analysisClients();
+ }
+ $scope.mapFrame = 'all_locations.html';
+ $scope.loadLocations = function () {
+ var params = angular.copy($scope.params);
+ $http.get('/sys/partners/merchant/list_locations', {params: params}).then(function (resp) {
+ $scope.locations = resp.data;
+ window.merchant_maps.initMap($scope.locations);
+ });
+ };
+ $scope.loadLocations();
}]);
diff --git a/src/main/ui/static/analysis/templates/partners_analysis.html b/src/main/ui/static/analysis/templates/partners_analysis.html
index 5240b0ca6..f287b80ca 100644
--- a/src/main/ui/static/analysis/templates/partners_analysis.html
+++ b/src/main/ui/static/analysis/templates/partners_analysis.html
@@ -7,185 +7,228 @@
text-align: center;
}
-
-
-
-
-
-
-
-
-
-