12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229 |
- <!DOCTYPE html>
- <html lang="zh" xmlns:th="http://www.thymeleaf.org">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>统计</title>
- <!--<link rel="shortcut icon" href="sooka.ico">-->
- <link rel="shortcut icon" href="../static/sooka.ico" th:href="@{/sooka.ico}"/>
- <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
- <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
- <link href="../static/css/main/animate.min.css" th:href="@{/css/main/animate.min.css}" rel="stylesheet"/>
- <link href="../static/css/main/style.min862f.css" th:href="@{/css/main/style.min862f.css}" rel="stylesheet"/>
- <style type="text/css">
- ul li {
- list-style: none
- }
- * {
- padding: 0;
- margin: 0;
- }
- .title-logo {
- font-size: 24px;
- color: #fff;
- float: left;
- line-height: 50px;
- font-weight: bolder;
- }
- .text-bold {
- font-weight: bolder
- }
- .border-none {
- border: none !important;
- }
- .left-bar-sj {
- padding: 10px 25px;
- text-align: center;
- }
- .sj_1 {
- height: 150px;
- }
- .sj_1 li {
- height: 150px;
- display: flex;
- width: 32%;
- float: left;
- border-radius: 5px;
- }
- .sj_1_li_b1 {
- background-image: linear-gradient(#ec4800, #ff9018);
- margin-right: 2%;
- }
- .sj_1_li_b2 {
- background-image: linear-gradient(#035efc, #1cbde4);
- margin-right: 2%;
- }
- .sj_1_li_b3 {
- background-image: linear-gradient(#369e19, #3deb30);
- }
- .img-con {
- width: 45%;
- margin: 5%;
- padding: 0 8% 0 5%;
- text-align: center;
- border-right: 1px solid #fff;
- }
- .num-con {
- display: flex;
- flex-direction: column;
- padding: 5% 0 0 6%;
- text-align: left;
- }
- .num-con span {
- color: #fff;
- line-height: 48px;
- }
- .num-con .number {
- font-size: 48px;
- font-weight: bolder;
- }
- .num-con .name {
- font-size: 30px;
- }
- .sj-fl {
- height: 150px;
- background: #fff;
- border-radius: 3px;
- display: flex;
- margin-top: 30px;
- }
- .sj-row {
- width: 25%;
- height: 70%;
- border-right: 1px solid #ccc;
- display: flex;
- margin-top: 1.5%;
- }
- .fl-img-con {
- /*width: 45%;*/
- margin: 0 0 0 10%;
- padding: 4% 0% 0 12%;
- text-align: center;
- }
- .fl-num-con {
- display: flex;
- flex-direction: column;
- padding: 5% 0 0 5%;
- text-align: left;
- }
- .fl-num-con span {
- color: #666;
- line-height: 36px;
- }
- .fl-num-con .fl-number {
- font-size: 36px;
- font-weight: bolder;
- }
- .fl-num-con .fl-name {
- font-size: 24px;
- }
- .sj-data {
- height: auto;
- background: #fff;
- border-radius: 3px;
- display: flex;
- flex-direction: row;
- }
- .data-tit {
- font-size: 24px;
- color: #333;
- text-align: left;
- line-height: 24px;
- padding: 20px 0;
- border-bottom: 1px solid #ccc;
- }
- .sj-fl-data {
- height: auto;
- background: #fff;
- border-radius: 3px;
- display: flex;
- flex-direction: column;
- margin-top: 30px;
- }
- .data-fl-row {
- display: flex;
- flex-direction: column;
- border: 1px solid #eeeeee;
- width: 32%;
- padding: 20px;
- }
- .data-image {
- width: 500px;
- height: 320px;
- margin-top: 40px
- }
- .m-r-2 {
- margin-right: 2%;
- }
- .data-fl-row span {
- text-align: left;
- font-size: 24px;
- color: #333;
- }
- .data-fl-row_span {
- text-align: left;
- font-size: 24px;
- color: #333;
- }
- .data-fl-row-lis {
- display: flex;
- width: 165px;
- }
- .data-fl-row-lis img {
- width: 50px;
- height: 50px;
- }
- .data-fl-list-rig {
- display: flex;
- flex-direction: column;
- margin-left: 7px;
- }
- .data-fl-list-rig span {
- color: #fff;
- }
- .data-fl-list-rig .number {
- font-size: 20px;
- }
- .data-fl-list-rig .name {
- font-size: 14px
- }
- .data-fl-list-rig .number2 {
- font-size: 20px;
- color: #666;
- }
- .data-fl-list-rig .name2 {
- font-size: 14px;
- color: #666;
- }
- .data-fl-all {
- padding: 30px 10px 30px 30px;
- background: #5470c6;
- display: flex;
- }
- .right-fast-menu {
- margin-top: 20px;
- height: auto;
- display: flex;
- flex-direction: column;
- position: fixed;
- right: 0;
- }
- .fast-rig-clo {
- padding-top: 10px;
- width: 105px;
- height: 105px;
- display: flex;
- flex-direction: column;
- margin-bottom: 5px;
- background: #fff;
- text-align: center;
- }
- .fast-rig-clo span {
- color: #666;
- font-size: 16px;
- margin-top: 10px;
- }
- .fast-rig-clo img {
- width: 50px;
- height: 50px;
- margin: 0 auto;
- }
- .fast-rig-clo a {
- display: block;
- width: 105px;
- height: 105px;
- position: absolute;
- z-index: 1000;
- }
- .m-l-30 {
- margin-left: 30px;
- }
- .m-t-30 {
- margin-top: 30px;
- }
- </style>
- </head>
- <body class="gray-bg" style="background:#fff">
- <!--欢迎图片-->
- <!--<div style="width: 100%; height: auto; max-width: 550px; margin:0 auto; padding-top: 30px">-->
- <!-- <img th:src="@{/img/wjxthyy.png}" style="width: 100%;" />-->
- <!--</div>-->
- <!--欢迎主页面-->
- <div class="col-lg-12 left-bar-sj">
- <!--事件开始-->
- <div class="sj_1" id="f1">
- <ul>
- <li class="sj_1_li_b1">
- <div class="col-lg-4 img-con"><img th:src="@{/img/xc-ld-sjzs.png}"></div>
- <div class="col-lg-8 num-con">
- <span id="sjzs" class="number text-bold">0</span>
- <span class="name">事件总数</span>
- </div>
- </li>
- <li class="sj_1_li_b2">
- <div class="col-lg-4 img-con"><img th:src="@{/img/xc-ld-clz.png}"></div>
- <div class="col-lg-8 num-con">
- <span id="dbrw" class="number text-bold">0</span>
- <span class="name">待办事件</span>
- </div>
- </li>
- <li class="sj_1_li_b3">
- <div class="col-lg-4 img-con"><img th:src="@{/img/xc-ld-wcl.png}"></div>
- <div class="col-lg-8 num-con">
- <span id="ybrw" class="number text-bold">0</span>
- <span class="name">已办事件</span>
- </div>
- </li>
- </ul>
- </div>
- <!--事件结束-->
- <div class="data-tit text-bold m-t-30">人口信息统计</div>
- <!--sj-data容器一行只能显示三个图表,如果超过三个要以sj-data容器重新开头-->
- <div class="sj-data">
- <div id="div_kg" class="data-fl-row m-t-30 m-r-2">
- <span>空挂人口统计</span>
- <div id="data_kg" class="data-image" ></div>
- </div>
- <div id="div_db" class="data-fl-row m-t-30 m-r-2">
- <span>低保人口统计</span>
- <div id="data_db" class="data-image" ></div>
- </div>
- <div id="div_yqtx" class="data-fl-row m-t-30">
- <span>一汽退休老干部统计</span>
- <div id="data_yqtx" class="data-image" ></div>
- </div>
- </div>
- <div class="sj-data">
- <div id="div_age" class="data-fl-row m-t-30 m-r-2">
- <span>年龄构成统计</span>
- <div id="data_age" class="data-image"></div>
- </div>
- <div id="div_js" class="data-fl-row m-t-30 m-r-2">
- <span>计生信息统计</span>
- <div id="data_js" class="data-image" ></div>
- </div>
- <div id="div_lr" class="data-fl-row m-t-30">
- <span>老年人口统计</span>
- <div id="data_lr" class="data-image" ></div>
- </div>
- </div>
- <div class="sj-data">
- <div id="div_canJi" class="data-fl-row m-t-30 m-r-2">
- <span>残联信息统计</span>
- <div id="data_canJi" class="data-image" ></div>
- </div>
- <div id="div_tsrq" class="data-fl-row m-t-30 m-r-2">
- <span>特殊人群信息统计</span>
- <div id="data_tsrq" class="data-image" ></div>
- </div>
- <div id="div_ym" class="data-fl-row m-t-30">
- <span>疫苗接种情况统计</span>
- <div id="data_ym" class="data-image" ></div>
- </div>
- </div>
- <div class="sj-data">
- <div id="div_bx" class="data-fl-row m-t-30 m-r-2">
- <span>保险信息</span>
- <div id="data_bx" class="data-image" ></div>
- </div>
- <div id="div-sj11" class="data-fl-row m-t-30 m-r-2">
- <span>事件诉求统计</span>
- <div id="data-sj11" class="data-image" ></div>
- </div>
- </div>
- </div>
- <script th:src="@{/js/echarts/echarts.js}"></script>
- <!--大图表1-->
- </body>
- </html>
- <script th:src="@{/js/jquery.min.js}"></script>
- <script th:src="@{/js/bootstrap.min.js}"></script>
- <script th:src="@{/js/plugins/metisMenu/jquery.metisMenu.js}"></script>
- <script th:src="@{/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>
- <script th:src="@{/js/jquery.contextMenu.min.js}"></script>
- <script th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
- <script th:src="@{/ajax/libs/layer/layer.min.js}"></script>
- <script th:src="@{/ruoyi/js/ry-ui.js}"></script>
- <script th:src="@{/ruoyi/js/common.js}"></script>
- <script th:src="@{/ruoyi/index.js}"></script>
- <script th:src="@{/ajax/libs/fullscreen/jquery.fullscreen.js}"></script>
- <script th:inline="javascript"> var ctx = [[@{/}]]; </script>
- <script>
- var prefix_per = "zhsq_qk/person/person";
- $(function () {
- initHeaderNum();//初始化事件总数、待办任务、已办任务
- kg();//空挂人口数
- age();//年龄构成数
- tx();//退休老干部数
- db();//低保人口数
- js();//计生信息
- lr();//老龄人口数
- ym();//疫苗接种情况
- canJi();//残联信息
- tsrq();//特殊人群信息
- bx();//保险信息
- wgsjtj();//网格事件统计
- });
- function initHeaderNum() {
- //初始化事件总数、待办任务、已办任务
- let url = ctx+"/eventRank/eventRank/rankForNum";
- $.ajax({
- url : url,
- type: "post",
- success : function (res) {
- $("#sjzs").text(res.sjzs);
- $("#dbrw").text(res.dbrw);
- $("#ybrw").text(res.ybrw);
- }
- });
- }
- //查询空挂人口数
- function kg(){
- $.ajax({
- url : ctx+"/person/person/queryPerByEchartsForIndex",
- type: "post",
- success : function (restdata) {
- var colors0 = ['#FF0000', '#009100', '#AE00AE', '#3414d9', '#ffcc00', '#00ffcc', '#00fff0', '#5519ff'];
- var colors1 = ['#5519ff', '#ffcc00', '#00ffcc', '#8CEA00', '#cc9933', '#00cc99', '#3043f2', '#3414d9'];
- var pertype = restdata.perType;
- if(pertype){
- var nameList =[];
- var dataList=[];
- for(var i=0;i<restdata.data.length;i++){
- nameList.push(restdata.data[i].dataName);
- dataList.push(restdata.data[i].perCou);
- }
- var myChart = echarts.init(document.getElementById('data_kg'));
- option = {
- xAxis: {
- type: 'category',
- axisLabel: {
- interval: 0,
- rotate: 30
- },
- data: nameList
- },
- yAxis: {
- type: 'value'
- },
- tooltip: {
- trigger: 'axis',
- formatter: "{b}空挂人口数 : {c}人",
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- series: [
- {
- data: dataList,
- type: 'bar',
- showBackground: true,
- backgroundStyle: {
- color: 'rgba(180, 180, 180, 0.2)'
- },
- itemStyle: {
- normal: {
- color: function(params) {
- //设置柱状图的显示颜色
- return new echarts.graphic.LinearGradient(1, 1, 0, 0, [{
- offset: 0,
- color: colors0[params.dataIndex]
- }, {
- offset: 1,
- color: colors1[params.dataIndex]
- }])
- }
- }
- }
- }
- ]
- };
- myChart.setOption(option);
- }else {
- $("#div_kg").hide();
- }
- }
- });
- }
- //查询年龄构成人口数
- function age(){
- $.ajax({
- url : ctx+"/person/person/queryPerAgeByEchartsForIndex",
- type: "post",
- success : function (restdata) {
- var colors0 = ['#804040', '#F9F900', '#A5A552', '#00cc99', '#7E3D76', '#3414d9', '#7E3D76', '#5519ff'];
- var colors1 = ['#00ffcc', '#FF5809', '#ADADAD', '#9F4D95', '#3414d9', '#cc9933', '#ffcc00', '#00fff0'];
- var pertype = restdata.perType;
- if(pertype){
- var nameList =['18周岁及以下','19-35周岁','36-55周岁','56-70周岁','70周岁以上'];
- var dataList=[];
- if (restdata.data!=null&&restdata.data.length==1){
- dataList.push(restdata.data[0].perCouEighteen);
- dataList.push(restdata.data[0].perCouNineteenThirtyFive);
- dataList.push(restdata.data[0].perCouThirtySixFiftyFive);
- dataList.push(restdata.data[0].perCouFiftySixSeventy);
- dataList.push(restdata.data[0].perCouSeventy);
- }
- var myChart = echarts.init(document.getElementById('data_age'));
- option = {
- xAxis: {
- type: 'category',
- axisLabel: {
- interval: 0,
- rotate: 30
- },
- data: nameList
- },
- yAxis: {
- type: 'value'
- },
- tooltip: {
- trigger: 'axis',
- formatter: "{b}人数 : {c}人",
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- series: [
- {
- data: dataList,
- type: 'bar',
- showBackground: true,
- backgroundStyle: {
- color: 'rgba(180, 180, 180, 0.2)'
- },
- itemStyle: {
- normal: {
- color: function(params) {
- //设置柱状图的显示颜色
- return new echarts.graphic.LinearGradient(1, 1, 0, 0, [{
- offset: 0,
- color: colors0[params.dataIndex]
- }, {
- offset: 1,
- color: colors1[params.dataIndex]
- }])
- }
- }
- }
- }
- ]
- };
- myChart.setOption(option);
- }else {
- $("#div_age").hide();
- }
- }
- });
- }
- //退休老干部数
- function tx() {
- $.ajax({
- url: ctx+"/person/person/queryPerYqtxByEchartsForIndex",
- type: "post",
- success: function (restdata) {
- var pertype = restdata.perType;
- if (pertype) {
- var nameList = [];
- var dataList = [];
- for (var i = 0; i < restdata.data.length; i++) {
- nameList.push(restdata.data[i].perYqtx);
- dataList.push(restdata.data[i].perCou);
- }
- var myChart = echarts.init(document.getElementById('data_yqtx'));
- option = {
- tooltip: {
- trigger: 'item'
- },
- series: [
- {
- name:'退休老干部人数',
- type: 'pie',
- radius: ['30%', '50%'],
- data: [
- { value: dataList[0], name: nameList[0]+'一汽退休老干部人数', itemStyle: {
- color: new echarts.graphic.LinearGradient(1, 1, 0, 0, [{
- offset: 0,
- color: '#006000'
- }, {
- offset: 1,
- color: '#AAAAFF'
- }]),
- } },
- { value: dataList[1], name: nameList[1]+'一汽退休老干部人数', itemStyle: {
- color: new echarts.graphic.LinearGradient(1, 1, 0, 0, [{
- offset: 0,
- color: '#A5A552'
- }, {
- offset: 1,
- color: '#28FF28'
- }]),
- } }
- ],
- emphasis: {
- itemStyle: {
- shadowBlur: 10,
- shadowOffsetX:5,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- }
- }
- }
- ]
- };
- myChart.setOption(option);
- } else {
- $("#div_yqtx").hide();
- }
- }
- });
- }
- //低保人口数
- function db() {
- $.ajax({
- url: ctx+"/person/person/queryPerDbByEchartsForIndex",
- type: "post",
- success: function (restdata) {
- var pertype = restdata.perType;
- if (pertype) {
- var nameList = [];
- var dataList = [];
- for (var i = 0; i < restdata.data.length; i++) {
- nameList.push(restdata.data[i].dataName);
- dataList.push(restdata.data[i].perCou);
- }
- var myChart = echarts.init(document.getElementById('data_db'));
- option = {
- xAxis: {
- type: 'category',
- axisLabel: {
- interval: 0,
- rotate: 30
- },
- data: nameList
- },
- yAxis: {
- type: 'value'
- },
- tooltip: {
- trigger: 'axis',
- formatter: "{b}低保人口数 : {c}人",
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- series: [
- {
- data: dataList,
- type: 'line',
- areaStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- { offset: 0, color: "#F75000" },
- { offset: 0.5, color: "#FF8000" },
- { offset: 1, color: "#EAC100" }
- ])
- }
- }
- }
- ]
- };
- myChart.setOption(option);
- } else {
- $("#div_db").hide();
- }
- }
- });
- }
- //计生信息数
- function js() {
- $.ajax({
- url: ctx+"/person/person/queryPerJsByEchartsForIndex",
- type: "post",
- success: function (restdata) {
- var pertype = restdata.perType;
- if (pertype) {
- var nameList = ['是','否'];
- var dataList = [];
- if (restdata.data!=null&&restdata.data.length==1){
- dataList.push(restdata.data[0].perCouSfknYse);
- dataList.push(restdata.data[0].perCouSfknNo);
- }
- var myChart = echarts.init(document.getElementById('data_js'));
- option = {
- tooltip: {
- trigger: 'item'
- },
- series: [
- {
- name:'计生信息统计',
- type: 'pie',
- radius: '50%',
- data: [
- { value: dataList[0], name: nameList[0]+'困难家庭人数',itemStyle: {
- color: new echarts.graphic.LinearGradient(1, 1, 0, 0, [{
- offset: 0,
- color: '#00FFFF'
- }, {
- offset: 1,
- color: '#EAC100'
- }]),
- } },
- { value: dataList[1], name: nameList[1]+'困难家庭人数' ,itemStyle: {
- color: new echarts.graphic.LinearGradient(1, 1, 0, 0, [{
- offset: 0,
- color: '#E800E8'
- }, {
- offset: 1,
- color: '#00ffeb'
- }]),
- }}
- ],
- emphasis: {
- itemStyle: {
- shadowBlur: 10,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- }
- }
- }
- ]
- };
- myChart.setOption(option);
- } else {
- $("#div_js").hide();
- }
- }
- });
- }
- //老龄人口数
- function lr() {
- $.ajax({
- url: ctx+"/person/person/queryPerLrEchartsForIndex",
- type: "post",
- success: function (restdata) {
- var pertype = restdata.perType;
- if (pertype) {
- var nameList = [];
- var dataList = [];
- for (var i = 0; i < restdata.data.length; i++) {
- nameList.push(restdata.data[i].dataName);
- dataList.push(restdata.data[i].perCou);
- }
- var myChart = echarts.init(document.getElementById('data_lr'));
- option = {
- xAxis: {
- type: 'category',
- data: nameList
- },
- yAxis: {
- type: 'value'
- },
- tooltip: {
- trigger: 'axis',
- formatter: "{b}老年人口数 : {c}人",
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- series: [
- {
- data: dataList,
- type: 'line',
- areaStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- { offset: 0, color: "#FF0080" },
- { offset: 0.5, color: "#FF60AF" },
- { offset: 1, color: "#FFC1E0" }
- ])
- }
- }
- }
- ]
- };
- myChart.setOption(option);
- } else {
- $("#div_lr").hide();
- }
- }
- });
- }
- //疫苗接种情况
- function ym() {
- $.ajax({
- url: ctx+"/person/person/queryPerYmEchartsForIndex",
- type: "post",
- success: function (restdata) {
- var pertype = restdata.perType;
- if (pertype) {
- var list1 = [];
- var list2 = [];
- if (restdata.data!=null&&restdata.data.length==1){
- list1.push(restdata.data[0].perCouNo1Yes);
- list1.push(restdata.data[0].perCouNo2Yes);
- list1.push(restdata.data[0].perCouNo3Yes);
- list2.push(restdata.data[0].perCouNo1No);
- list2.push(restdata.data[0].perCouNo1No);
- list2.push(restdata.data[0].perCouNo1No);
- }
- var myChart = echarts.init(document.getElementById('data_ym'));
- option = {
- title: {
- text: '疫苗接种情况'
- },
- tooltip: {
- trigger: 'axis'
- },
- legend: {
- data: ['已接种', '未接种']
- },
- grid: {
- left: '3%',
- right: '14%',
- bottom: '0%',
- containLabel: true
- },
- toolbox: {
- feature: {
- saveAsImage: {}
- }
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: ['第一针', '第二针', '第三针']
- },
- yAxis: {
- type: 'value'
- },
- series: [
- {
- name: '已接种',
- type: 'line',
- stack: 'Total',
- data: list1
- },
- {
- name: '未接种',
- type: 'line',
- stack: 'Total',
- data: list2
- }
- ]
- };
- myChart.setOption(option);
- } else {
- $("#div_ym").hide();
- }
- }
- });
- }
- //残联信息数
- //https://echarts.apache.org/examples/zh/editor.html?c=pie-simple
- function canJi() {
- $.ajax({
- url: ctx+"/person/person/queryPerCanJiByEchartsForIndex",
- type: "post",
- success: function (restdata) {
- var pertype = restdata.perType;
- if (pertype) {
- var canJi = restdata.data[0];
- var myChart = echarts.init(document.getElementById('data_canJi'));
- option = {
- title: {
- text: '残联信息',
- //subtext: 'Fake Data',
- left: 'center'
- },
- tooltip: {
- trigger: 'item'
- },
- legend: {
- orient: 'vertical',
- left: 'left',
- show: false
- },
- series: [
- {
- name: '残联信息',
- type: 'pie',
- radius: '50%',
- itemStyle: {
- borderRadius: 0,
- borderColor: '#fff',
- borderWidth: 2
- },
- data: [
- { value: canJi.cjNumber, name: '残疾人数',itemStyle: {
- color: new echarts.graphic.LinearGradient(1, 1, 0, 0, [{
- offset: 0,
- color: '#8E8E8E'
- }, {
- offset: 1,
- color: '#AE0000'
- }]),
- } },
- { value: canJi.btNumber, name: '享受重残补贴人数',itemStyle: {
- color: new echarts.graphic.LinearGradient(1, 1, 0, 0, [{
- offset: 0,
- color: '#D9006C'
- }, {
- offset: 1,
- color: '#AE00AE'
- }]),
- } },
- { value: canJi.xfNumber, name: '巡防对象人数',itemStyle: {
- color: new echarts.graphic.LinearGradient(1, 1, 0, 0, [{
- offset: 0,
- color: '#28FF28'
- }, {
- offset: 1,
- color: '#CF9E9E'
- }]),
- } },
- { value: canJi.zhouNumber, name: '巡防频次(周)',itemStyle: {
- color: new echarts.graphic.LinearGradient(1, 1, 0, 0, [{
- offset: 0,
- color: '#C7C7E2'
- }, {
- offset: 1,
- color: '#4A4AFF'
- }]),
- } },
- { value: canJi.yueNumber, name: '巡防频次(月)',itemStyle: {
- color: new echarts.graphic.LinearGradient(1, 1, 0, 0, [{
- offset: 0,
- color: '#d0d0d0'
- }, {
- offset: 1,
- color: '#F75000'
- }]),
- } },
- { value: canJi.jiNumber, name: '巡防频次(季)',itemStyle: {
- color: new echarts.graphic.LinearGradient(1, 1, 0, 0, [{
- offset: 0,
- color: '#E1E100'
- }, {
- offset: 1,
- color: '#FF5809'
- }]),
- } }
- ],
- emphasis: {
- itemStyle: {
- shadowBlur: 10,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- }
- }
- }
- ]
- };
- myChart.setOption(option);
- } else {
- $("#div_js").hide();
- }
- }
- });
- }
- //特殊人群信息数
- //https://echarts.apache.org/examples/zh/editor.html?c=pie-simple
- function tsrq() {
- $.ajax({
- url: ctx+"/person/person/queryPerTsrqByEchartsForIndex",
- type: "post",
- success: function (restdata) {
- var pertype = restdata.perType;
- if (pertype) {
- var tsrq = restdata.data[0];
- var myChart = echarts.init(document.getElementById('data_tsrq'));
- option = {
- title: {
- text: '特殊人群信息',
- //subtext: 'Fake Data',
- left: 'center'
- },
- tooltip: {
- trigger: 'item'
- },
- legend: {
- orient: 'vertical',
- left: 'left',
- show: false
- },
- series: [
- {
- name: '特殊人群信息',
- type: 'pie',
- radius: ['30%', '50%'],
- itemStyle: {
- borderRadius: 0,
- borderColor: '#fff',
- borderWidth: 2
- },
- data: [
- { value: tsrq.tsrqNumber1, name: '无' },
- { value: tsrq.tsrqNumber2, name: '社区矫正人员' },
- { value: tsrq.tsrqNumber3, name: '劳模' },
- { value: tsrq.tsrqNumber4, name: '志愿者' },
- { value: tsrq.tsrqNumber5, name: '失业人员' },
- { value: tsrq.tsrqNumber6, name: '信访人员' },
- { value: tsrq.tsrqNumber7, name: '残疾人' },
- { value: tsrq.tsrqNumber8, name: '低保人员' },
- { value: tsrq.tsrqNumber9, name: '精神病人' },
- { value: tsrq.tsrqNumber10, name: '释解安置人员' },
- { value: tsrq.tsrqNumber11, name: '吸毒人员' },
- { value: tsrq.tsrqNumber12, name: '重点稳控人员' },
- { value: tsrq.tsrqNumber13, name: '活跃分子' },
- { value: tsrq.tsrqNumber14, name: '闹访骨干' },
- { value: tsrq.tsrqNumber15, name: '吸毒人员未成年子女' },
- { value: tsrq.tsrqNumber16, name: '服刑人员未成年子女' },
- { value: tsrq.tsrqNumber17, name: '留守人员' },
- { value: tsrq.tsrqNumber18, name: '军烈属' },
- { value: tsrq.tsrqNumber19, name: '台胞侨胞' },
- { value: tsrq.tsrqNumber20, name: '老龄人' },
- { value: tsrq.tsrqNumber21, name: '失信被执行人' },
- { value: tsrq.tsrqNumber22, name: '社保人员' },
- { value: tsrq.tsrqNumber23, name: '医保人员' }
- ],
- emphasis: {
- itemStyle: {
- shadowBlur: 10,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- }
- }
- }
- ]
- };
- myChart.setOption(option);
- } else {
- $("#div_tsrq").hide();
- }
- }
- });
- }
- //保险信息数
- function bx() {
- $.ajax({
- url: ctx+"/person/person/queryPerInsuranceByEchartsForIndex",
- type: "post",
- success: function (restdata) {
- var pertype = restdata.perType;
- if (pertype) {
- var data = [];
- if (restdata.data!=null&&restdata.data.length==1){
- data.push({ value: restdata.data[0].perCouCzbYanglao, name: '城职保是否参保' });
- data.push({ value: restdata.data[0].perCouCjbYanglao, name: '城居保是否参保' });
- data.push({ value: restdata.data[0].perCouCzbYiliao, name: '城镇职工医疗保险是否参保' });
- data.push({ value: restdata.data[0].perCouCjbYiliao, name: '城镇居民医疗保险是否参保' });
- }
- var myChart = echarts.init(document.getElementById('data_bx'));
- option = {
- title: {
- text: '保险信息',
- //subtext: 'Fake Data',
- left: 'center'
- },
- tooltip: {
- trigger: 'item'
- },
- legend: {
- orient: 'vertical',
- left: 'left',
- show: false
- },
- series: [
- {
- name: '保险信息',
- type: 'pie',
- radius: ['30%', '50%'],
- itemStyle: {
- borderRadius: 0,
- borderColor: '#fff',
- borderWidth: 2,
- normal: {
- color: function (params) {
- var colorList = [
- {
- c1: "#FA7096",
- c2: "#FE8C69",
- },
- {
- c1: "#3E6FF3",
- c2: "#45B1F6",
- },
- {
- c1: "#B15BFF",
- c2: "#921AFF"
- },
- {
- c1: "#C4C400",
- c2: "#FFFF37"
- },
- ];
- return new echarts.graphic.LinearGradient(1, 0, 0, 0, [
- {
- //颜色渐变函数 前四个参数分别表示四个位置依次为左、下、右、上
- offset: 0,
- color: colorList[params.dataIndex].c1,
- },
- {
- offset: 1,
- color: colorList[params.dataIndex].c2,
- },
- ]);
- }
- }
- },
- data: data,
- emphasis: {
- itemStyle: {
- shadowBlur: 10,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- }
- }
- }
- ]
- };
- myChart.setOption(option);
- } else {
- $("#div_bx").hide();
- }
- }
- });
- }
- function wgsjtj() {
- let url = ctx+"/eventRank/eventRank/rankBarChart";
- $.ajax({
- url : url,
- type: "post",
- success : function (res) {
- var colors0 = ['#804040', '#F9F900', '#A5A552', '#00cc99', '#7E3D76', '#3414d9', '#7E3D76', '#5519ff'];
- var colors1 = ['#00ffcc', '#FF5809', '#ADADAD', '#9F4D95', '#3414d9', '#cc9933', '#ffcc00', '#00fff0'];
- var myChart = echarts.init(document.getElementById('data-sj11'));
- option = {
- xAxis: {
- type: 'category',
- axisLabel: {
- interval: 0,
- rotate: 30
- },
- data: res.names
- },
- yAxis: {
- type: 'value'
- },
- tooltip: {
- trigger: 'axis',
- formatter: "{b}事件数量 : {c}件"
- },
- series: [
- {
- data: res.datas,
- type: 'bar',
- showBackground: true,
- backgroundStyle: {
- color: 'rgba(180, 180, 180, 0.2)'
- },
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(1, 1, 0, 0,
- [
- {offset: 0, color: '#FF0000'}, //柱图渐变色
- {offset: 0.5, color: '#FF359A'}, //柱图渐变色
- {offset: 1, color: '#53FF53'}, //柱图渐变色
- ]
- )
- }
- }
- }
- ]
- };
- myChart.setOption(option);
- }
- });
- }
- </script>
|