|
@@ -1,6 +1,6 @@
|
|
|
(function ($app) {
|
|
|
'use strict';
|
|
|
- $app.module('gtPartyApp').controller('showDjdsj_dwdtCtrl', function ($scope, $state, $alert, AuthUser, flowaudit, $http, $ocLazyLoad, $loading,$timeout) {
|
|
|
+ $app.module('gtPartyApp').controller('showDjdsj_dwdtCtrl', function ($scope, $state, $alert, AuthUser, flowaudit, $http, $ocLazyLoad, $loading, $timeout) {
|
|
|
|
|
|
if (AuthUser.getUser().Id == null || AuthUser.getUser().Id == '') {
|
|
|
window.location.href = "/app/main/index.html#!/login";
|
|
@@ -13,25 +13,19 @@
|
|
|
$scope.pxpy_x_dataList = [];
|
|
|
$scope.pxpy_y_dataList = [
|
|
|
{
|
|
|
- name: '先进基层党组织',
|
|
|
+ name: '优秀党务工作者',
|
|
|
type: 'bar',
|
|
|
data: [],
|
|
|
- color: '#fff'
|
|
|
+ color: '#5B9BD5'
|
|
|
},
|
|
|
{
|
|
|
name: '优秀共产党员',
|
|
|
type: 'bar',
|
|
|
data: [],
|
|
|
- color: '#fff'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '优秀党务工作者',
|
|
|
- type: 'bar',
|
|
|
- data: [],
|
|
|
- color: '#fff'
|
|
|
+ color: '#ED7D31'
|
|
|
}
|
|
|
];
|
|
|
- $scope.pxpy_legend = ['先进基层党组织', '优秀共产党员', '优秀党务工作者'];
|
|
|
+ $scope.pxpy_legend = ['优秀党务工作者', '优秀共产党员'];
|
|
|
$scope.pxpy_barOption = {
|
|
|
tooltip: {
|
|
|
trigger: 'axis',
|
|
@@ -65,7 +59,8 @@
|
|
|
},
|
|
|
splitLine: { //网格线
|
|
|
show: false
|
|
|
- }
|
|
|
+ },
|
|
|
+ splitNumber: 1
|
|
|
},
|
|
|
series: $scope.pxpy_y_dataList,
|
|
|
grid: {
|
|
@@ -78,26 +73,25 @@
|
|
|
$http
|
|
|
({
|
|
|
method: 'get',
|
|
|
- url: '../../api/bigdata/getDsjPxpyList',
|
|
|
+ url: '../../api/bigdata/getDnpxxxTotalList',
|
|
|
params: {}
|
|
|
}).then(function (result) {
|
|
|
if (result.data != null && result.data.length > 0) {
|
|
|
angular.forEach(result.data, function (val) {
|
|
|
- $scope.pxpy_x_dataList.push(val.nd);
|
|
|
- $scope.pxpy_y_dataList[0].data.push(val.xjjcdzz);
|
|
|
- $scope.pxpy_y_dataList[1].data.push(val.yxgcdy);
|
|
|
- $scope.pxpy_y_dataList[2].data.push(val.yxdwgzz);
|
|
|
+ $scope.pxpy_x_dataList.push(val.year);
|
|
|
+ $scope.pxpy_y_dataList[0].data.push(val.count2);
|
|
|
+ $scope.pxpy_y_dataList[1].data.push(val.count1);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
$scope.load_pxpy();
|
|
|
|
|
|
- //创岗建区
|
|
|
- $scope.cgjq_dataList = [];
|
|
|
- $scope.cgjq_nameList = ['责任岗', '党员先锋岗', '责任区', '红旗责任区'];
|
|
|
- ;
|
|
|
- $scope.cgjq_barOption = {
|
|
|
+ //党内品牌
|
|
|
+ $scope.dnpp_dataList = [];
|
|
|
+ $scope.dnpp_nameList = [];
|
|
|
+ $scope.dnpp_barOption = {
|
|
|
+ color: ['#F8B551'],
|
|
|
tooltip: {
|
|
|
trigger: 'axis',
|
|
|
axisPointer: { // 坐标轴指示器,坐标轴触发有效
|
|
@@ -110,7 +104,7 @@
|
|
|
axisLabel: {
|
|
|
color: '#fff'
|
|
|
},
|
|
|
- data: $scope.cgjq_nameList
|
|
|
+ data: $scope.dnpp_nameList
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "value",
|
|
@@ -122,189 +116,124 @@
|
|
|
},
|
|
|
splitLine: { //网格线
|
|
|
show: false
|
|
|
- }
|
|
|
+ },
|
|
|
+ splitNumber: 1
|
|
|
},
|
|
|
series: [
|
|
|
{
|
|
|
- name: '创岗建区情况',
|
|
|
- data: $scope.cgjq_dataList,
|
|
|
+ name: '党内品牌',
|
|
|
+ data: $scope.dnpp_dataList,
|
|
|
type: "bar",
|
|
|
- barWidth: 30,
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: function (params) {
|
|
|
- var colorList = ['#F8B551', '#918879', '#EFF0C7', '#91C7AE'];
|
|
|
- return colorList[params.dataIndex];
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ barWidth: 30
|
|
|
}
|
|
|
],
|
|
|
grid: {
|
|
|
top: 20,
|
|
|
- bottom: 20
|
|
|
+ bottom: 0,
|
|
|
+ containLabel: true
|
|
|
}
|
|
|
- }
|
|
|
- ;
|
|
|
- $scope.load_cgjq = function () {
|
|
|
- /*$http
|
|
|
+ };
|
|
|
+ $scope.load_dnpp = function () {
|
|
|
+ $http
|
|
|
({
|
|
|
method: 'get',
|
|
|
- url: '../../api/bigdata/getDsjCgjqList',
|
|
|
+ url: '../../api/bigdata/getPartyBrandTotalList',
|
|
|
params: {}
|
|
|
}).then(function (result) {
|
|
|
if (result.data != null && result.data.length > 0) {
|
|
|
angular.forEach(result.data, function (val) {
|
|
|
- $scope.cgjq_nameList.push(val.lbmc);
|
|
|
- $scope.cgjq_dataList.push(val.sl);
|
|
|
+ $scope.dnpp_nameList.push(val.year);
|
|
|
+ $scope.dnpp_dataList.push(val.count);
|
|
|
});
|
|
|
}
|
|
|
- });*/
|
|
|
- $http
|
|
|
- ({
|
|
|
- method: 'get', url: '../../api/bigdata/getCGJQTotal', params: {}
|
|
|
- }).then(function (res) {
|
|
|
- $scope.cgjq_dataList.push(res.data.POSTTOTAL);
|
|
|
- $scope.cgjq_dataList.push(res.data.POSTCOUNT);
|
|
|
- $scope.cgjq_dataList.push(res.data.AREATOTAL);
|
|
|
- $scope.cgjq_dataList.push(res.data.AREACOUNT);
|
|
|
-
|
|
|
- }, function (resp) {
|
|
|
-
|
|
|
});
|
|
|
};
|
|
|
- $scope.load_cgjq();
|
|
|
+ $scope.load_dnpp();
|
|
|
|
|
|
- //党内品牌
|
|
|
- $scope.dnpp_dataList = [];
|
|
|
- $scope.dnpp_legend_dataList = [];
|
|
|
- $scope.dnpp_pieOption = {
|
|
|
- legend: {
|
|
|
- bottom: 0,
|
|
|
- left: 'center',
|
|
|
- data: $scope.dnpp_legend_dataList,
|
|
|
- icon: "circle",
|
|
|
- textStyle: {
|
|
|
+ //述职评议
|
|
|
+ $scope.szpy_dataList = [];
|
|
|
+ $scope.szpy_nameList = [];
|
|
|
+ $scope.szpy_barOption = {
|
|
|
+ color: ['#F8B551'],
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'axis',
|
|
|
+ axisPointer: { // 坐标轴指示器,坐标轴触发有效
|
|
|
+ type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
+ },
|
|
|
+ formatter: "{a} <br/>{b} : {c}"
|
|
|
+ },
|
|
|
+ xAxis: {
|
|
|
+ type: "category",
|
|
|
+ axisLabel: {
|
|
|
color: '#fff'
|
|
|
- }
|
|
|
+ },
|
|
|
+ data: $scope.szpy_nameList
|
|
|
},
|
|
|
- tooltip: {
|
|
|
- trigger: 'item',
|
|
|
- formatter: "{a} <br/>{b} : {c} ({d}%)"
|
|
|
+ yAxis: {
|
|
|
+ type: "value",
|
|
|
+ axisLabel: {
|
|
|
+ color: '#fff'
|
|
|
+ },
|
|
|
+ axisTick: { //y轴刻度线
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ splitLine: { //网格线
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ splitNumber: 1
|
|
|
},
|
|
|
series: [
|
|
|
{
|
|
|
- name: '党内品牌',
|
|
|
- type: 'pie',
|
|
|
- avoidLabelOverlap: false,
|
|
|
- label: {
|
|
|
- normal: {
|
|
|
- show: false,
|
|
|
- position: 'center'
|
|
|
- },
|
|
|
- emphasis: {
|
|
|
- show: true,
|
|
|
- textStyle: {
|
|
|
- fontSize: '20',
|
|
|
- fontWeight: 'bold'
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- labelLine: {
|
|
|
- normal: {
|
|
|
- show: false
|
|
|
- }
|
|
|
- },
|
|
|
- data: $scope.dnpp_dataList
|
|
|
+ name: '述职评议情况',
|
|
|
+ data: $scope.szpy_dataList,
|
|
|
+ type: "bar",
|
|
|
+ barWidth: 30
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ grid: {
|
|
|
+ top: 20,
|
|
|
+ bottom: 0,
|
|
|
+ containLabel: true
|
|
|
+ }
|
|
|
};
|
|
|
- $scope.load_dnpp = function () {
|
|
|
- /*$http
|
|
|
- ({
|
|
|
- method: 'get',
|
|
|
- url: '../../api/bigdata/getDsjDnppList',
|
|
|
- params: {
|
|
|
- nd: $scope.ndkpjg_nd
|
|
|
- }
|
|
|
- }).then(function (result) {
|
|
|
- if (result.data != null && result.data.length > 0) {
|
|
|
- var colors = ['#4565f4', '#c4cffd', '#01588d', '#84cac8', '#019e97'];
|
|
|
- angular.forEach(result.data, function (val, index) {
|
|
|
- $scope.dnpp_legend_dataList.push(val.lbmc);
|
|
|
- $scope.dnpp_dataList.push($scope.getPieData(val.sl, val.lbmc, colors.length > index ? colors[index] : ''));
|
|
|
- });
|
|
|
- }
|
|
|
- });*/
|
|
|
-
|
|
|
- $scope.dnpp_dataList.length = 0;
|
|
|
+ $scope.load_szpy = function () {
|
|
|
$http
|
|
|
({
|
|
|
method: 'get',
|
|
|
- url: '../../api/bigdata/getDjkpxxTotalList',
|
|
|
+ url: '../../api/bigdata/getSzpyTotalList',
|
|
|
params: {}
|
|
|
}).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.dnpp_dataList.push($scope.getPieData(item.COUNT, item.NAME, colorList[index < colorList.length ? index : (colorList.length - 1)]));
|
|
|
- $scope.dnpp_legend_dataList.push(item.NAME);
|
|
|
+ angular.forEach(result.data, function (val) {
|
|
|
+ $scope.szpy_nameList.push(val.typeName);
|
|
|
+ $scope.szpy_dataList.push(val.count);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
- $scope.load_dnpp();
|
|
|
+ $scope.load_szpy();
|
|
|
|
|
|
- //党员动态
|
|
|
- $scope.nydt_x_dataList = [];
|
|
|
- $scope.nydt_y_dataList = [
|
|
|
- {
|
|
|
- name: '转入党员人数',
|
|
|
- type: 'line',
|
|
|
- stack: '总量',
|
|
|
- data: [],
|
|
|
- color: '#fff'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '转出党员人数',
|
|
|
- type: 'line',
|
|
|
- stack: '总量',
|
|
|
- data: [],
|
|
|
- color: '#fff'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '内部接转人数',
|
|
|
- type: 'line',
|
|
|
- stack: '总量',
|
|
|
- data: [],
|
|
|
- color: '#fff'
|
|
|
- }
|
|
|
- ];
|
|
|
- $scope.nydt_lineOption = {
|
|
|
- title: {
|
|
|
- text: ''
|
|
|
- },
|
|
|
+ //党内关怀帮扶情况
|
|
|
+ $scope.dnghbf_dataList = [];
|
|
|
+ $scope.dnghbf_nameList = [];
|
|
|
+ $scope.dnghbf_barOption = {
|
|
|
+ color: ['#F8B551'],
|
|
|
tooltip: {
|
|
|
- trigger: 'axis'
|
|
|
- },
|
|
|
- legend: {
|
|
|
- x: 'center',
|
|
|
- y: 'bottom',
|
|
|
- data: ['转入党员人数', '转出党员人数', '内部接转人数'],
|
|
|
- textStyle: {
|
|
|
- color: '#fff'
|
|
|
- }
|
|
|
+ trigger: 'axis',
|
|
|
+ axisPointer: { // 坐标轴指示器,坐标轴触发有效
|
|
|
+ type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
+ },
|
|
|
+ formatter: "{a} <br/>{b} : {c}"
|
|
|
},
|
|
|
xAxis: {
|
|
|
- type: 'category',
|
|
|
- boundaryGap: false,
|
|
|
- data: $scope.nydt_x_dataList,
|
|
|
+ type: "category",
|
|
|
axisLabel: {
|
|
|
color: '#fff'
|
|
|
- }
|
|
|
+ },
|
|
|
+ data: $scope.dnghbf_nameList
|
|
|
},
|
|
|
yAxis: {
|
|
|
- type: 'value',
|
|
|
+ type: "value",
|
|
|
axisLabel: {
|
|
|
color: '#fff'
|
|
|
},
|
|
@@ -313,93 +242,58 @@
|
|
|
},
|
|
|
splitLine: { //网格线
|
|
|
show: false
|
|
|
- }
|
|
|
+ },
|
|
|
+ splitNumber: 1
|
|
|
},
|
|
|
- series: $scope.nydt_y_dataList,
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ name: '党内关怀帮扶情况',
|
|
|
+ data: $scope.dnghbf_dataList,
|
|
|
+ type: "bar",
|
|
|
+ barWidth: 30
|
|
|
+ }
|
|
|
+ ],
|
|
|
grid: {
|
|
|
top: 20,
|
|
|
- bottom: 25,
|
|
|
+ bottom: 0,
|
|
|
containLabel: true
|
|
|
}
|
|
|
};
|
|
|
- $scope.load_nydt = function () {
|
|
|
+ $scope.load_dnghbf = function () {
|
|
|
$http
|
|
|
({
|
|
|
method: 'get',
|
|
|
- url: '../../api/bigdata/getDsjDydtList',
|
|
|
- params: {
|
|
|
- nd_OrderBy: 1
|
|
|
- }
|
|
|
+ url: '../../api/bigdata/getDnghbfTotalList',
|
|
|
+ params: {}
|
|
|
}).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);
|
|
|
+ $scope.dnghbf_nameList.push(val.year);
|
|
|
+ $scope.dnghbf_dataList.push(val.count);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
- $scope.load_nydt();
|
|
|
+ $scope.load_dnghbf();
|
|
|
|
|
|
- //处置情况
|
|
|
- $scope.czqk_x_dataList = [];
|
|
|
- $scope.czqk_y_dataList = []/*[
|
|
|
- {
|
|
|
- name: '警告',
|
|
|
- type: 'bar',
|
|
|
- data: [],
|
|
|
- color: '#4565f4'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '严重警告',
|
|
|
- type: 'bar',
|
|
|
- data: [],
|
|
|
- color: '#c4cffd'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '撤销党内职务',
|
|
|
- type: 'bar',
|
|
|
- data: [],
|
|
|
- color: '#01588d'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '留党察看',
|
|
|
- type: 'bar',
|
|
|
- data: [],
|
|
|
- color: '#84cac8'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '开除党籍',
|
|
|
- type: 'bar',
|
|
|
- data: [],
|
|
|
- color: '#005983'
|
|
|
- }
|
|
|
- ]*/;
|
|
|
- $scope.czqk_legend = []//['警告', '严重警告', '撤销党内职务', '留党察看','开除党籍'];
|
|
|
- $scope.czqk_barOption = {
|
|
|
+ //主题党日
|
|
|
+ $scope.ztdr_dataList = [];
|
|
|
+ $scope.ztdr_nameList = [];
|
|
|
+ $scope.ztdr_barOption = {
|
|
|
+ color: ['#F8B551'],
|
|
|
tooltip: {
|
|
|
trigger: 'axis',
|
|
|
- axisPointer: {
|
|
|
- type: 'shadow'
|
|
|
- }
|
|
|
- },
|
|
|
- legend: {
|
|
|
- x: 'center',
|
|
|
- y: 'bottom',
|
|
|
- data: $scope.czqk_legend,
|
|
|
- icon: "circle",
|
|
|
- textStyle: {
|
|
|
- color: '#fff'
|
|
|
- }
|
|
|
+ axisPointer: { // 坐标轴指示器,坐标轴触发有效
|
|
|
+ type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
+ },
|
|
|
+ formatter: "{a} <br/>{b} : {c}"
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: "category",
|
|
|
- data: $scope.czqk_x_dataList,
|
|
|
axisLabel: {
|
|
|
color: '#fff'
|
|
|
- }
|
|
|
+ },
|
|
|
+ data: $scope.ztdr_nameList
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "value",
|
|
@@ -411,71 +305,41 @@
|
|
|
},
|
|
|
splitLine: { //网格线
|
|
|
show: false
|
|
|
- }
|
|
|
+ },
|
|
|
+ splitNumber: 1
|
|
|
},
|
|
|
- series: $scope.czqk_y_dataList,
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ name: '主题党日',
|
|
|
+ data: $scope.ztdr_dataList,
|
|
|
+ type: "bar",
|
|
|
+ barWidth: 30
|
|
|
+ }
|
|
|
+ ],
|
|
|
grid: {
|
|
|
top: 20,
|
|
|
- bottom: 20
|
|
|
+ bottom: 0,
|
|
|
+ containLabel: true
|
|
|
}
|
|
|
};
|
|
|
- $scope.load_czqk = function () {
|
|
|
- /*$http
|
|
|
- ({
|
|
|
- method: 'get',
|
|
|
- url: '../../api/bigdata/getDsjCzqkList',
|
|
|
- params: {}
|
|
|
- }).then(function (result) {
|
|
|
- if (result.data != null && result.data.length > 0) {
|
|
|
- angular.forEach(result.data, function (val) {
|
|
|
- $scope.czqk_x_dataList.push(val.nd);
|
|
|
- $scope.czqk_y_dataList[0].data.push(val.cpdy);
|
|
|
- $scope.czqk_y_dataList[1].data.push(val.bhgdy);
|
|
|
- $scope.czqk_y_dataList[2].data.push(val.cldbhgdy);
|
|
|
- $scope.czqk_y_dataList[3].data.push(val.cdzrs);
|
|
|
- });
|
|
|
- }
|
|
|
- });*/
|
|
|
-
|
|
|
+ $scope.load_ztdr = function () {
|
|
|
$http
|
|
|
({
|
|
|
method: 'get',
|
|
|
- url: '../../api/bigdata/getJlcfxxTotalList',
|
|
|
- params: {}
|
|
|
+ url: '../../api/bigdata/getZtdrTotalList',
|
|
|
+ params: {
|
|
|
+ year: new Date().getFullYear()
|
|
|
+ }
|
|
|
}).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.czqk_x_dataList.push(item.YEAR);
|
|
|
- $scope.czqk_y_dataList[0].data.push(item.COUNT1);
|
|
|
- $scope.czqk_y_dataList[1].data.push(item.COUNT2);
|
|
|
- $scope.czqk_y_dataList[2].data.push(item.COUNT3);
|
|
|
- $scope.czqk_y_dataList[3].data.push(item.COUNT4);
|
|
|
- $scope.czqk_y_dataList[4].data.push(item.COUNT5);
|
|
|
-
|
|
|
- });*/
|
|
|
-
|
|
|
- $.unique(result.data.map(it => it.YEAR).sort()).forEach(item => {
|
|
|
- $scope.czqk_x_dataList.push(item)
|
|
|
- });
|
|
|
-
|
|
|
- var types = $.unique(result.data.map(it => it.TYPE).sort());
|
|
|
- types.forEach((type, index) => {
|
|
|
- var name = result.data.filter(it => it.TYPE == type)[0].NAME;
|
|
|
- var data = result.data.filter(it => it.TYPE == type).map(it => it.COUNT);
|
|
|
- //$scope.czqk_legend.push(name);
|
|
|
- $scope.czqk_y_dataList.push({
|
|
|
- name: name,
|
|
|
- type: 'bar',
|
|
|
- data: data,
|
|
|
- color: colorList[index < colorList.length ? index : (colorList.length - 1)]
|
|
|
- })
|
|
|
+ angular.forEach(result.data, function (val) {
|
|
|
+ $scope.ztdr_nameList.push(val.month);
|
|
|
+ $scope.ztdr_dataList.push(val.count);
|
|
|
});
|
|
|
-
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
- $scope.load_czqk();
|
|
|
+ $scope.load_ztdr();
|
|
|
|
|
|
|
|
|
//三会一课
|