|
@@ -41,43 +41,6 @@
|
|
|
};
|
|
|
$scope.load_dwxx();
|
|
|
|
|
|
- //党组织信息
|
|
|
- $scope.province = ['', '119', '118', '121'];
|
|
|
- $scope.dzz_total = {};
|
|
|
- $scope.dzz_GuangDong = {};
|
|
|
- $scope.dzz_HuNan = {};
|
|
|
- $scope.dzz_HaiNan = {};
|
|
|
- $scope.load_dzzcount = function (province) {
|
|
|
- $http
|
|
|
- ({
|
|
|
- method: 'get',
|
|
|
- url: '../../api/bigdata/getDzzxxCount',
|
|
|
- params: {
|
|
|
- province: province
|
|
|
- }
|
|
|
- }).then(function (result) {
|
|
|
- if (result.data != null) {
|
|
|
- var data = result.data;
|
|
|
- switch (province) {
|
|
|
- case '':
|
|
|
- $scope.dzz_total = data;
|
|
|
- break;
|
|
|
- case '119':
|
|
|
- $scope.dzz_GuangDong = data;
|
|
|
- break;
|
|
|
- case '118':
|
|
|
- $scope.dzz_HuNan = data;
|
|
|
- break;
|
|
|
- case '121':
|
|
|
- $scope.dzz_HaiNan = data;
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- };
|
|
|
- angular.forEach($scope.province, function (val) {
|
|
|
- $scope.load_dzzcount(val);
|
|
|
- });
|
|
|
|
|
|
//党员信息
|
|
|
$scope.dyxx = {};
|
|
@@ -135,6 +98,115 @@
|
|
|
|
|
|
//图标取数begin
|
|
|
{
|
|
|
+ //评先评优
|
|
|
+ $scope.dyTotal_x_dataList = [];
|
|
|
+ $scope.dyTotal_y_dataList = [
|
|
|
+ {
|
|
|
+ name: '党员数量',
|
|
|
+ type: 'bar',
|
|
|
+ data: [],
|
|
|
+ color: '#5186f8'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '发展党员数量',
|
|
|
+ type: 'bar',
|
|
|
+ data: [],
|
|
|
+ color: '#fff'
|
|
|
+ }
|
|
|
+ ];
|
|
|
+ $scope.dyTotal_legend = ['党员数量', '发展党员数量'];
|
|
|
+ $scope.dyTotal_barOption = {
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'axis',
|
|
|
+ axisPointer: {
|
|
|
+ type: 'shadow'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ legend: {
|
|
|
+ x: 'center',
|
|
|
+ y: 'bottom',
|
|
|
+ data: $scope.dyTotal_legend,
|
|
|
+ icon: "circle",
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ xAxis: {
|
|
|
+ type: "category",
|
|
|
+ data: $scope.dyTotal_x_dataList,
|
|
|
+ axisLabel: {
|
|
|
+ color: '#fff',
|
|
|
+ rotate:45
|
|
|
+ }
|
|
|
+ },
|
|
|
+ yAxis: {
|
|
|
+ type: "value",
|
|
|
+ axisLabel: {
|
|
|
+ color: '#fff'
|
|
|
+ },
|
|
|
+ axisTick: { //y轴刻度线
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ splitLine: { //网格线
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ splitNumber: 1
|
|
|
+ },
|
|
|
+ series: $scope.dyTotal_y_dataList,
|
|
|
+ grid: {
|
|
|
+ top: 20,
|
|
|
+ bottom: 25,
|
|
|
+ containLabel: true
|
|
|
+ }
|
|
|
+ };
|
|
|
+ $scope.load_dyTotal = function () {
|
|
|
+ $http
|
|
|
+ ({
|
|
|
+ method: 'get',
|
|
|
+ url: '../../api/bigdata/getPartyUserStatusTotalList',
|
|
|
+ params: {}
|
|
|
+ }).then(function (result) {
|
|
|
+ if (result.data != null && result.data.length > 0) {
|
|
|
+ var userStatusTotalList = result.data.filter(e => e.partyType === '400');
|
|
|
+ var partyList = [];
|
|
|
+ angular.forEach(result.data.filter(e => e.partyType === '400'), function (val) {
|
|
|
+ if (partyList.filter(p => p.partyCode === val.partyCode).length == 0) {
|
|
|
+ partyList.push({partyCode: val.partyCode, partyName: val.partyName});
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ angular.forEach(partyList, function (val) {
|
|
|
+ $scope.dyTotal_x_dataList.push(val.partyName);
|
|
|
+ var partyUserTotalList = userStatusTotalList.filter(e => e.partyCode === val.partyCode);
|
|
|
+ var count1 = 0; //党员数量
|
|
|
+ var count2 = 0; //发展党员数量
|
|
|
+ partyUserTotalList.forEach(e => {
|
|
|
+ switch (e.userStatus) {
|
|
|
+ case '1':
|
|
|
+ count2 += e.userCount;
|
|
|
+ break;
|
|
|
+ case '2':
|
|
|
+ count1 += e.userCount;
|
|
|
+ break;
|
|
|
+ case '3':
|
|
|
+ count1 += e.userCount;
|
|
|
+ break;
|
|
|
+ case '5':
|
|
|
+ count2 += e.userCount;
|
|
|
+ break;
|
|
|
+ case '6':
|
|
|
+ count2 += e.userCount;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $scope.dyTotal_y_dataList[0].data.push(count1);
|
|
|
+ $scope.dyTotal_y_dataList[1].data.push(count2);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ };
|
|
|
+ $scope.load_dyTotal();
|
|
|
+
|
|
|
//党组织分布情况
|
|
|
$scope.dzzfbqk_dataList = [];
|
|
|
$scope.dzzfbqk_nameList = [];
|
|
@@ -190,8 +262,8 @@
|
|
|
formatter: '{value}',
|
|
|
color: '#fff'
|
|
|
},
|
|
|
- axisTick:{ //y轴刻度线
|
|
|
- show:false
|
|
|
+ axisTick: { //y轴刻度线
|
|
|
+ show: false
|
|
|
},
|
|
|
splitLine: { //网格线
|
|
|
show: false
|
|
@@ -244,28 +316,92 @@
|
|
|
};
|
|
|
$scope.load_dzzfbqk();
|
|
|
|
|
|
- //年度考评结果
|
|
|
+ //发展党员情况
|
|
|
+ $scope.fzdyqk_dataList = [];
|
|
|
+ $scope.fzdyqk_nameList = ["预备党员", "入党申请人数", "入党积极分子", "发展对象"];
|
|
|
+ $scope.fzdyqk_barOption = {
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'axis',
|
|
|
+ axisPointer: { // 坐标轴指示器,坐标轴触发有效
|
|
|
+ type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
+ },
|
|
|
+ formatter: "{a} <br/>{b} : {c}"
|
|
|
+ },
|
|
|
+ xAxis: {
|
|
|
+ type: 'value',
|
|
|
+ name: '数量',
|
|
|
+ axisLabel: {
|
|
|
+ formatter: '{value}',
|
|
|
+ color: '#fff'
|
|
|
+ },
|
|
|
+ axisTick: { //y轴刻度线
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ splitLine: { //网格线
|
|
|
+ show: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ yAxis: {
|
|
|
+ type: 'category',
|
|
|
+ inverse: true,
|
|
|
+ axisLabel: {
|
|
|
+ color: '#fff'
|
|
|
+ },
|
|
|
+ data: $scope.fzdyqk_nameList
|
|
|
+ },
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ name: '发展党员情况',
|
|
|
+ data: $scope.fzdyqk_dataList,
|
|
|
+ type: "bar",
|
|
|
+ barWidth: 20,
|
|
|
+ itemStyle: {
|
|
|
+ normal: {
|
|
|
+ color: function (params) {
|
|
|
+ var colorList = ['#F8B551', '#918879', '#EFF0C7', '#91C7AE'];
|
|
|
+ return colorList[params.dataIndex];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ grid: {
|
|
|
+ top: 20,
|
|
|
+ bottom: 10,
|
|
|
+ containLabel: true
|
|
|
+ }
|
|
|
+ };
|
|
|
|
|
|
- $scope.ndkpjg_dataList = [];
|
|
|
- $scope.ndkpjg_nameList = [];
|
|
|
- $scope.ndkpjg_pieOption = {
|
|
|
+ //党员性别
|
|
|
+ $scope.dyxb_dataList = [];
|
|
|
+ $scope.dyxb_pieOption = {
|
|
|
legend: {
|
|
|
- bottom: 0,
|
|
|
- left: 'center',
|
|
|
- data: $scope.ndkpjg_nameList,
|
|
|
+ type: 'scroll',
|
|
|
+ orient: 'vertical',
|
|
|
+ right: 0,
|
|
|
+ bottom: 5,
|
|
|
+ data: $scope.xueli_legend_data,
|
|
|
+ top: '10%',
|
|
|
icon: "circle",
|
|
|
textStyle: {
|
|
|
color: '#fff'
|
|
|
+ },
|
|
|
+ formatter: function (name) {
|
|
|
+ var target = 0;
|
|
|
+ angular.forEach($scope.dyxb_dataList, function (item, index) {
|
|
|
+ if (item.name == name) {
|
|
|
+ target = item.value;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return name + ':' + target;
|
|
|
}
|
|
|
},
|
|
|
- tooltip: {
|
|
|
- trigger: 'item',
|
|
|
- formatter: "{a} <br/>{b} : {c} ({d}%)"
|
|
|
- },
|
|
|
series: [
|
|
|
+
|
|
|
{
|
|
|
- name: '基层单位党组织年度考评结果',
|
|
|
+ name: '党员性别',
|
|
|
type: 'pie',
|
|
|
+ radius: ['50%', '80%'],
|
|
|
avoidLabelOverlap: false,
|
|
|
label: {
|
|
|
normal: {
|
|
@@ -285,214 +421,124 @@
|
|
|
show: false
|
|
|
}
|
|
|
},
|
|
|
- data: $scope.ndkpjg_dataList
|
|
|
+ data: $scope.dyxb_dataList,
|
|
|
+ center: ['30%', '50%']
|
|
|
}
|
|
|
- ]
|
|
|
- };
|
|
|
-
|
|
|
- $scope.load_ndkpjg = function () {
|
|
|
- $scope.ndkpjg_dataList.length = 0;
|
|
|
- $http
|
|
|
- ({
|
|
|
- method: 'get',
|
|
|
- url: '../../api/bigdata/getDjkpxxTotalList',
|
|
|
- params: {
|
|
|
- year: $scope.selectparam.ndkpjg_nd
|
|
|
- }
|
|
|
- }).then(function (result) {
|
|
|
- var colorList = ['#F8B551', '#918879', '#EFF0C7', '#91C7AE', '#DCDCDC', '#F0FFFF', '#005983'];
|
|
|
- if (result.data != null && result.data.length > 0) {
|
|
|
- angular.forEach(result.data, function (item, index) {
|
|
|
- $scope.ndkpjg_dataList.push($scope.getPieData(item.COUNT, item.NAME, colorList[index < colorList.length ? index : (colorList.length - 1)]));
|
|
|
- $scope.ndkpjg_nameList.push(item.NAME);
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- };
|
|
|
- $scope.load_ndkpjg();
|
|
|
- $scope.$watch('selectparam.ndkpjg_nd', function (newValue, oldValue) {
|
|
|
- if (newValue != '' && newValue != null && newValue != oldValue) {
|
|
|
- $scope.load_ndkpjg();
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
- //党员动态
|
|
|
- $scope.nydt_x_dataList = [];
|
|
|
- $scope.nydt_y_dataList = [
|
|
|
- {
|
|
|
- name: '转入党员人数',
|
|
|
- type: 'line',
|
|
|
- stack: '总量',
|
|
|
- data: [],
|
|
|
- color: '#F8B551'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '转出党员人数',
|
|
|
- type: 'line',
|
|
|
- stack: '总量',
|
|
|
- data: [],
|
|
|
- color: '#918879'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '内部接转人数',
|
|
|
- type: 'line',
|
|
|
- stack: '总量',
|
|
|
- data: [],
|
|
|
- color: '#EFF0C7'
|
|
|
- }
|
|
|
- ];
|
|
|
- $scope.nydt_nameList = [];
|
|
|
- $scope.nydt_lineOption = {
|
|
|
- title: {
|
|
|
- text: ''
|
|
|
- },
|
|
|
+ ],
|
|
|
tooltip: {
|
|
|
- trigger: 'axis'
|
|
|
- },
|
|
|
- legend: {
|
|
|
- x: 'center',
|
|
|
- y: 'bottom',
|
|
|
- data: ['转入党员人数', '转出党员人数', '内部接转人数'],
|
|
|
- textStyle: {
|
|
|
- color: '#fff'
|
|
|
- }
|
|
|
- },
|
|
|
- /*grid: {
|
|
|
- left: '3%',
|
|
|
- right: '4%',
|
|
|
- bottom: '3%',
|
|
|
- containLabel: true
|
|
|
- },
|
|
|
- toolbox: {
|
|
|
- feature: {
|
|
|
- saveAsImage: {}
|
|
|
- }
|
|
|
- },*/
|
|
|
- xAxis: {
|
|
|
- type: 'category',
|
|
|
- boundaryGap: false,
|
|
|
- axisLabel: {
|
|
|
- color: '#fff'
|
|
|
- },
|
|
|
- data: $scope.nydt_x_dataList
|
|
|
- },
|
|
|
- yAxis: {
|
|
|
- type: 'value',
|
|
|
- axisLabel: {
|
|
|
- color: '#EFF0C7'
|
|
|
- },
|
|
|
- axisTick:{ //y轴刻度线
|
|
|
- show:false
|
|
|
- },
|
|
|
- splitLine: { //网格线
|
|
|
- show: false
|
|
|
+ trigger: 'item',
|
|
|
+ formatter: function (data) {
|
|
|
+ return data.seriesName + "<br/>" + data.name + " : " + data.value + " (" + data.percent.toFixed(0) + "%)";
|
|
|
}
|
|
|
- },
|
|
|
- series: $scope.nydt_y_dataList,
|
|
|
- grid: {
|
|
|
- top: 20,
|
|
|
- bottom: 25,
|
|
|
- containLabel: true
|
|
|
}
|
|
|
};
|
|
|
- $scope.load_nydt = function () {
|
|
|
+ $scope.load_dyxb = function () {
|
|
|
+ $scope.dyxb_dataList.length = 0;
|
|
|
$http
|
|
|
({
|
|
|
method: 'get',
|
|
|
- url: '../../api/bigdata/getDsjDydtList',
|
|
|
+ url: '../../api/bigdata/getDyxbCount',
|
|
|
params: {
|
|
|
- nd_OrderBy: 1
|
|
|
+ /*dzzdm: $scope.selectparams.selectdzzdm,
|
|
|
+ isOnduty: $scope.selectparams.navSelected*/
|
|
|
}
|
|
|
}).then(function (result) {
|
|
|
if (result.data != null && result.data.length > 0) {
|
|
|
- angular.forEach(result.data, function (val) {
|
|
|
- $scope.nydt_x_dataList.push(val.nd);
|
|
|
- $scope.nydt_y_dataList[0].data.push(val.zr);
|
|
|
- $scope.nydt_y_dataList[1].data.push(val.zc);
|
|
|
- $scope.nydt_y_dataList[2].data.push(val.nbjz);
|
|
|
+ var colors = ['#F8B551', '#918879'];
|
|
|
+ angular.forEach(result.data, function (val, index) {
|
|
|
+ $scope.dyxb_dataList.push($scope.getPieData(val.NUM, val.SEXNAME, colors[index]));
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
- $scope.load_nydt();
|
|
|
+ $scope.load_dyxb();
|
|
|
|
|
|
- //发展党员情况
|
|
|
- $scope.fzdyqk_dataList = [];
|
|
|
- $scope.fzdyqk_nameList = ["预备党员", "入党申请人数", "入党积极分子", "发展对象"];
|
|
|
- $scope.fzdyqk_barOption = {
|
|
|
- tooltip: {
|
|
|
- trigger: 'axis',
|
|
|
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
|
|
|
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
- },
|
|
|
- formatter: "{a} <br/>{b} : {c}"
|
|
|
- },
|
|
|
- xAxis: {
|
|
|
- type: 'value',
|
|
|
- name: '数量',
|
|
|
- axisLabel: {
|
|
|
- formatter: '{value}',
|
|
|
+ //三会一课
|
|
|
+ $scope.shyk_dataList = [];
|
|
|
+ $scope.shyk_pieOption = {
|
|
|
+ legend: {
|
|
|
+ type: 'scroll',
|
|
|
+ orient: 'vertical',
|
|
|
+ right: 0,
|
|
|
+ bottom: 5,
|
|
|
+ /*data: $scope.xueli_legend_data,*/
|
|
|
+ top: '10%',
|
|
|
+ icon: "circle",
|
|
|
+ textStyle: {
|
|
|
color: '#fff'
|
|
|
},
|
|
|
- axisTick:{ //y轴刻度线
|
|
|
- show:false
|
|
|
- },
|
|
|
- splitLine: { //网格线
|
|
|
- show: false
|
|
|
+ formatter: function (name) {
|
|
|
+ var target = 0;
|
|
|
+ angular.forEach($scope.shyk_dataList, function (item, index) {
|
|
|
+ if (item.name == name) {
|
|
|
+ target = item.value;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return name + ':' + target;
|
|
|
}
|
|
|
},
|
|
|
- yAxis: {
|
|
|
- type: 'category',
|
|
|
- inverse: true,
|
|
|
- axisLabel: {
|
|
|
- color: '#fff'
|
|
|
- },
|
|
|
- data: $scope.fzdyqk_nameList
|
|
|
- },
|
|
|
series: [
|
|
|
+
|
|
|
{
|
|
|
- name: '发展党员情况',
|
|
|
- data: $scope.fzdyqk_dataList,
|
|
|
- type: "bar",
|
|
|
- barWidth: 20,
|
|
|
- itemStyle: {
|
|
|
+ name: '三会一课类型',
|
|
|
+ type: 'pie',
|
|
|
+ /*radius: ['50%', '80%'],*/
|
|
|
+ avoidLabelOverlap: false,
|
|
|
+ label: {
|
|
|
normal: {
|
|
|
- color: function (params) {
|
|
|
- var colorList = ['#F8B551', '#918879', '#EFF0C7', '#91C7AE'];
|
|
|
- return colorList[params.dataIndex];
|
|
|
+ show: false,
|
|
|
+ position: 'center'
|
|
|
+ },
|
|
|
+ emphasis: {
|
|
|
+ show: true,
|
|
|
+ textStyle: {
|
|
|
+ fontSize: '20',
|
|
|
+ fontWeight: 'bold'
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ labelLine: {
|
|
|
+ normal: {
|
|
|
+ show: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: $scope.shyk_dataList,
|
|
|
+ center: ['30%', '50%']
|
|
|
}
|
|
|
],
|
|
|
- grid: {
|
|
|
- top: 20,
|
|
|
- bottom: 10,
|
|
|
- containLabel: true
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'item',
|
|
|
+ formatter: function (data) {
|
|
|
+ return data.seriesName + "<br/>" + data.name + " : " + data.value + " (" + data.percent.toFixed(0) + "%)";
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
- $scope.load_fzdyqk = function () {
|
|
|
+ $scope.load_shyk = function () {
|
|
|
+ $scope.shyk_dataList.length = 0;
|
|
|
$http
|
|
|
({
|
|
|
method: 'get',
|
|
|
- url: '../../api/bigdata/getDsjFzdyqkList',
|
|
|
- params: {}
|
|
|
+ url: '../../api/bigdata/getShykCount',
|
|
|
+ params: {
|
|
|
+ dzzdm: ''
|
|
|
+ }
|
|
|
}).then(function (result) {
|
|
|
- if (result.data != null && result.data.length > 0) {
|
|
|
- angular.forEach(result.data, function (val) {
|
|
|
- $scope.fzdyqk_nameList.push(val.lbmc);
|
|
|
- $scope.fzdyqk_dataList.push(val.sl);
|
|
|
+ if (result.data != null && result.data.item.length > 0) {
|
|
|
+ var colors = ['#F8B551', '#918879', '#EFF0C7', '#91C7AE'];
|
|
|
+ angular.forEach(result.data.item.filter(e => e.SHYKTYPE <= 4), function (val, index) {
|
|
|
+ $scope.shyk_dataList.push($scope.getPieData(val.NUM, val.SHYKTYPENAME, colors[index]));
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
- //$scope.load_fzdyqk();
|
|
|
+ $scope.load_shyk();
|
|
|
|
|
|
//组织饼图数据
|
|
|
$scope.getPieData = function (val, name, color) {
|
|
|
return {value: val, name: name, itemStyle: {color: color}};
|
|
|
};
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
//图标取数end
|
|
|
});
|