|
@@ -427,6 +427,85 @@
|
|
|
};
|
|
|
$scope.load_dyxb();
|
|
|
|
|
|
+ //中层干部年龄
|
|
|
+ $scope.ltgbnl_dataList = [];
|
|
|
+ $scope.ltgbnl_pieOption = {
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'item',
|
|
|
+ formatter: function (data) {
|
|
|
+ return data.seriesName + "<br/>" + data.name + " : " + data.value + " (" + data.percent.toFixed(0) + "%)";
|
|
|
+ }
|
|
|
+ },
|
|
|
+ legend: {
|
|
|
+ type: 'scroll',
|
|
|
+ orient: 'vertical',
|
|
|
+ right: 0,
|
|
|
+ bottom: 5,
|
|
|
+ data: $scope.ltgbnl_dataList,
|
|
|
+ top: '10%',
|
|
|
+ icon: "circle",
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff'
|
|
|
+ },
|
|
|
+ formatter: function (name) {
|
|
|
+ var target = 0;
|
|
|
+ angular.forEach($scope.ltgbnl_dataList, function (item, index) {
|
|
|
+ if (item.name == name) {
|
|
|
+ target = item.value;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return name + ':' + target;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ series: [
|
|
|
+
|
|
|
+ {
|
|
|
+ name: '中层干部年龄',
|
|
|
+ type: 'pie',
|
|
|
+ radius: ['50%', '80%'],
|
|
|
+ avoidLabelOverlap: false,
|
|
|
+ label: {
|
|
|
+ normal: {
|
|
|
+ show: false,
|
|
|
+ position: 'center'
|
|
|
+ },
|
|
|
+ emphasis: {
|
|
|
+ show: true,
|
|
|
+ textStyle: {
|
|
|
+ fontSize: '20',
|
|
|
+ fontWeight: 'bold'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ labelLine: {
|
|
|
+ normal: {
|
|
|
+ show: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: $scope.ltgbnl_dataList,
|
|
|
+ center: ['30%', '50%']
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ };
|
|
|
+ $scope.load_ltgbnl = function () {
|
|
|
+ $scope.ltgbnl_dataList.length = 0;
|
|
|
+ $http
|
|
|
+ ({
|
|
|
+ method: 'get',
|
|
|
+ url: '../../api/bigdata/getLeaderTeamNlCount',
|
|
|
+ params: {}
|
|
|
+ }).then(function (result) {
|
|
|
+ $scope.ltgbnl_dataList.length = 0;
|
|
|
+ if (result.data != null && result.data.length > 0) {
|
|
|
+ let colors = ['#F8B551', '#918879', '#EFF0C7', '#91C7AE', '#DCDCDC', '#F0FFFF', '#005983'];
|
|
|
+ angular.forEach(result.data, function (val, index) {
|
|
|
+ $scope.ltgbnl_dataList.push($scope.getPieData(val.NUM, val.AGENAME, colors[index]));
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ };
|
|
|
+ $scope.load_ltgbnl();
|
|
|
+
|
|
|
//三会一课
|
|
|
$scope.shyk_dataList = [];
|
|
|
$scope.shyk_pieOption = {
|