(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d8936f2c"],{"06a9":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{name:"first"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"el-icon-pie-chart"}),a("b",[t._v(" 城市优良天统计")])]),t._v(" "),a("div",{staticClass:"topSelect"},[a("div",{staticStyle:{display:"flex"}},[a("el-radio-group",{staticStyle:{"margin-left":"20px"},model:{value:t.dateRadio,callback:function(e){t.dateRadio=e},expression:"dateRadio"}},[a("el-radio-button",{attrs:{label:"年报"}}),t._v(" "),a("el-radio-button",{attrs:{label:"自定义"}})],1),t._v(" "),"MouthPicker1"===t.dataType?a("MouthPicker1",{staticStyle:{"padding-left":"0","margin-left":"10px",width:"160px"},attrs:{value1:t.currentYearD},on:{sendPickerChild:t.showPickerChild}}):a("CustomPicker1",{staticStyle:{"padding-left":"0","margin-left":"10px",width:"400px"},attrs:{value1:t.currentTimeD},on:{sendPickerChild:t.showPickerChild}}),t._v(" "),a("RegionCity",{staticStyle:{"margin-left":"10px"},on:{regionCode:t.regionData}})],1),t._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:t.getAllData}},[t._v("查询")])],1)]),t._v(" "),a("div",{staticStyle:{"max-height":"800px","overflow-y":"auto"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{xs:12,sm:12,md:12,lg:12,xl:12}},[a("div",{staticClass:"grid-content bg-purple-light"}),t._v(" "),a("PieChartNew",{attrs:{datas:t.pieData,height:"500px"}})],1),t._v(" "),a("el-col",{attrs:{xs:12,sm:12,md:12,lg:12,xl:12}},[a("div",{staticClass:"grid-content bg-purple"}),t._v(" "),a("BarChart",{attrs:{datas:t.barData.data,datas1:t.barData.time,height:"500px"}})],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px","border-top":"1px solid #ccc"},attrs:{gutter:10}},[a("el-col",{attrs:{xs:12,sm:12,md:12,lg:12,xl:12}},[a("div",{staticClass:"grid-content bg-purple-light"}),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pieTableData,border:""}},[a("el-table-column",{attrs:{prop:"time",label:"时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"excellent",label:"优",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"good",label:"良",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mild",label:"轻度污染",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"middle",label:"中度污染",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"serious",label:"重度污染",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"server",label:"严重污染",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total",label:"合计",align:"center"}})],1)],1),t._v(" "),a("el-col",{staticStyle:{"padding-bottom":"50px"},attrs:{xs:12,sm:12,md:12,lg:12,xl:12}},[a("div",{staticClass:"grid-content bg-purple"}),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.barTableData,border:""}},[a("el-table-column",{attrs:{prop:"time",label:"时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"excellent",label:"优",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"good",label:"良",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mild",label:"轻度污染",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"middle",label:"中度污染",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"serious",label:"重度污染",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"server",label:"严重污染",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total",label:"合计",align:"center"}})],1)],1)],1)],1)]),t._v(" "),a("el-tab-pane",{attrs:{name:"second"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"el-icon-tickets"}),a("b",[t._v(" 城市优良天数对比")])]),t._v(" "),a("ContrastCity",{ref:"contrastCity"})],1),t._v(" "),a("el-tab-pane",{attrs:{name:"third"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"el-icon-crop"}),t._v(" "),a("b",[t._v("优良天变化率分析")])]),t._v(" "),a("ChangeAnalysis",{ref:"changeAnalysis"})],1),t._v(" "),a("el-tab-pane",{attrs:{name:"fourth"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"el-icon-news"}),a("b",[t._v(" 达标天数统计分析")])]),t._v(" "),a("QualifiedDaysAnalysis",{ref:"qualifiedDaysAnalysis"})],1)],1)],1)},n=[],i=(a("6b54"),a("ac6a"),a("d6c1")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width},attrs:{id:"myBarChart"}})},l=[],s=(a("28a5"),a("7f7f"),a("313e")),c=a.n(s),u={props:{datas:{type:Array,default:function(){return[]}},datas1:{type:Array,default:function(){return[]}},className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},watch:{datas:function(t){this.initChart()},datas1:function(t){this.initChart()}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){var t=document.getElementById("myBarChart"),e=c.a.init(t);this.chart=e,this.chart.setOption({title:{text:"城市优良天统计饼图",show:!1},tooltip:{trigger:"item",backgroundColor:"rgba(255,255,255,.8)",color:"gray",borderWidth:"1",borderColor:"#d9d9d9",formatter:function(t){var e=t.name;return e+"
"+t.seriesName+": "+t.value+"天
占比:"+t.data.data0},textStyle:{color:"#808080"}},legend:{x:"center",y:"bottom",padding:[10,0,0,0],formatter:function(t){return t.split(":")[0]}},toolbox:{feature:{saveAsImage:{}}},color:["#00e400","#ffff00","#ff7e00","#ff0000","#99004c","#7e0023"],grid:{top:10,left:"2%",right:"2%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.datas1,axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value",axisTick:{show:!1}}],series:this.datas},!0)}}},d=u,h=a("2877"),p=Object(h["a"])(d,o,l,!1,null,null,null),g=p.exports,f=a("3dd4"),b=a("0c01"),m=a("33f4"),y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ccc"},[a("div",{staticClass:"topContrast"},[a("div",{staticStyle:{display:"flex",height:"60px",padding:"20px 15px 0px 15px"}},[a("el-radio-group",{staticStyle:{"margin-left":"20px"},model:{value:t.contrastDateRadio,callback:function(e){t.contrastDateRadio=e},expression:"contrastDateRadio"}},[a("el-radio-button",{attrs:{label:"月"}}),t._v(" "),a("el-radio-button",{attrs:{label:"年"}})],1),t._v(" "),a(t.dataType,{tag:"component",staticStyle:{"padding-left":"0","margin-left":"10px",width:"180px","margin-right":"10px",height:"0px"},attrs:{value1:t.currentDate},on:{sendPickerChild:t.showPickerChild}}),t._v(" "),a("el-radio-group",{model:{value:t.contrastCityRadio,callback:function(e){t.contrastCityRadio=e},expression:"contrastCityRadio"}},[a("el-radio-button",{attrs:{label:"省内城市"}}),t._v(" "),a("el-radio-button",{attrs:{label:"市区城市"}}),t._v(" "),a("el-radio-button",{attrs:{label:"2+26城市"}})],1),t._v(" "),"city"===t.contrastCurrentCity?a("RegionCity",{staticStyle:{"margin-left":"10px"},on:{regionCode:t.regionDataCity}}):"province"===t.contrastCurrentCity?a("RegionProvince",{staticStyle:{"margin-left":"10px"},on:{regionCode:t.regionDataProvince}}):t._e(),t._v(" "),a("el-button",{staticStyle:{"margin-left":"200px"},attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")])],1)]),t._v(" "),a("div",[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{xs:8,sm:6,md:4,lg:2,xl:1}},[a("div",{staticClass:"grid-content bg-purple",staticStyle:{"margin-top":"30px"}})]),t._v(" "),a("el-col",{attrs:{xs:5,sm:4,md:4,lg:8,xl:8}},[a("div",{staticClass:"leftChart",style:{height:"400px"},attrs:{id:"leftChart"}})]),t._v(" "),a("el-col",{attrs:{xs:3,sm:6,md:10,lg:12,xl:13}},[a("div",{staticClass:"rightChart",attrs:{id:"rightChart"}})]),t._v(" "),a("el-col",{attrs:{xs:8,sm:6,md:4,lg:2,xl:2}},[a("div",{staticClass:"grid-content bg-purple-light"})])],1)],1)])},v=[],D=(a("55dd"),a("e012")),C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-cascader",{staticStyle:{flex:"1"},attrs:{placeholder:"选择省",options:t.options,clearable:""},model:{value:t.newRegion,callback:function(e){t.newRegion=e},expression:"newRegion"}})],1)},x=[],w=(a("c5f6"),{data:function(){return{form:{name:"",region:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:""},options:[],newRegion:""}},watch:{newRegion:function(t,e){this.$emit("regionCode",t[this.newRegion.length-1])}},created:function(){var t=this,e=new Promise((function(e,a){t.$request({url:"/organization/getMapPath",method:"get",params:{organizationId:t.$store.state.orgId}}).then((function(a){for(var r=a.data,n=0;n=1040?(o=650,l=this.contrastData.length>20?13:this.contrastData.length>10?20:30):(o=470,l=this.contrastData.length>20?8:this.contrastData.length>10?12:20),y.resize({height:o});var v={color:["#649AD6"],title:{text:t,x:"center",padding:[30,0,0,0]},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{x:"center",y:"bottom",padding:[20,0,0,0]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",splitLine:{show:!1}},yAxis:{splitLine:{show:!1},type:"category",data:c},series:[{name:"优良",type:"bar",label:{show:!0},barWidth:l,barCategoryGap:"2",data:u}]};y.setOption(v);var D=document.getElementById("rightChart"),C=s["init"](D),x={color:["#65dd77","#fcdf56","#fd7c43","#fc5656","#fc5689","#cd3a3a"],title:{text:r,x:"center",padding:[30,0,0,0]},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{x:"center",y:"bottom",padding:[20,0,0,0]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",splitLine:{show:!1}},yAxis:{type:"category",data:c},series:[{name:"优",type:"bar",stack:"total",barWidth:l,barCategoryGap:"2",label:{show:!0},data:d},{name:"良",type:"bar",stack:"total",barWidth:l,barCategoryGap:"2",label:{show:!0},emphasis:{focus:"series"},data:h},{name:"轻度污染",type:"bar",stack:"total",barWidth:l,barCategoryGap:"2",label:{show:!0},emphasis:{focus:"series"},data:p},{name:"中度污染",type:"bar",stack:"total",barWidth:l,barCategoryGap:"2",label:{show:!0},emphasis:{focus:"series"},data:g},{name:"严重污染",type:"bar",stack:"total",barWidth:l,barCategoryGap:"2",label:{show:!0},emphasis:{focus:"series"},data:f},{name:"重度污染",type:"bar",barWidth:"8",barCategoryGap:"2",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:b}]};C.resize({height:o}),C.setOption(x)},regionDataCity:function(t){t&&(this.regionDefaultCity=t)},regionDataProvince:function(t){t&&(this.regionDefaultProvince=t)}}},T=S,A=(a("63e1"),Object(h["a"])(T,y,v,!1,null,null,null)),R=A.exports,q=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"topChangeAnalysis"},[a("div",{staticStyle:{display:"flex",height:"60px",padding:"20px 15px 0px 15px"}},[a("MouthPicker",{staticStyle:{"padding-left":"0","margin-left":"10px",width:"160px"},attrs:{value1:t.currentDate},on:{sendPickerChild:t.showPickerChild}}),t._v(" "),a("RegionCityCX",{staticStyle:{"margin-left":"10px"},on:{regionCode:t.regionData}}),t._v(" "),a("el-button",{staticStyle:{"margin-left":"200px"},attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),t._v(" "),a("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:t.exportData}},[t._v("导出")])],1),t._v(" "),a("div",{staticClass:"content",staticStyle:{margin:"30px 15px 20px 20px"}},[a("el-table",{attrs:{id:"mytable",data:t.tableData,border:"","cell-style":t.columnStyle,"header-cell-style":t.headerColumnStyle}},t._l(t.tableColumnHeader,(function(t,e){return a("el-table-column",{key:e,attrs:{label:t.headerColumn,prop:t.title}})})),1)],1)])},M=[],O=(a("34ef"),a("a481"),a("456d"),a("53ca")),N=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-cascader",{ref:"getCityName",staticStyle:{flex:"1"},attrs:{placeholder:"选择省/市",options:t.options,clearable:""},on:{change:t.getName},model:{value:t.newRegion,callback:function(e){t.newRegion=e},expression:"newRegion"}})],1)},$=[],E={data:function(){return{form:{name:"",region:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:""},options:[],newRegion:[],cityName:""}},watch:{newRegion:function(t,e){this.$emit("regionCode",[t[this.newRegion.length-1],this.cityName])}},created:function(){var t=this,e=new Promise((function(e,a){t.$request({url:"/organization/getMapPath",method:"get",params:{organizationId:t.$store.state.orgId}}).then((function(a){for(var r=a.data,n=0;n=0&&s<=4?i="background:#65dd77;color:#007400":s>4&&s<10?i="background:#fcdf56;color:#868600":s>=10&&s<=14?i="background:#fd7c43;color:#844100":s>15&&s<=19?i="background:#fc5656;color:#790000":s>19&&s<=24?i="background:#fc5689;color:#14000a":s>24&&s<=31&&(i="background:#cd3a3a;"))}}return 1===r&&null!==e.aqiComplianceDays&&(n=e.aqiComplianceDays.replace("天",""),i=this.getAqiDaysBackground(n)),2===r&&null!==e.comAqiComplianceDays&&(n=e.comAqiComplianceDays.replace("天",""),i=this.getAqiDaysBackground(n)),3===r&&null!==e.aqiCompliancePer&&(n=e.aqiCompliancePer.replace("%",""),i=this.getAqiRateBackground(n)),4===r&&null!==e.comAqiCompliancePer&&(n=e.comAqiCompliancePer.replace("%",""),i=this.getAqiRateBackground(n)),i+"font-family:微软雅黑;text-align:center;"},getAqiDaysBackground:function(t){var e="";return t>=0&&t<=4?e="background:#cd3a3a;":t>=5&&t<=9?e="background:#fc5689;color:#14000a":t>=10&&t<=14?e="background:#fc5656;color:#790000":t>=15&&t<=19?e="background:#fd7c43;color:#844100":t>=20&&t<=24?e="background:#fcdf56;color:#868600":t>=25&&t<=31&&(e="background:#65dd77;color:#007400"),e+"font-weight:bold;"},getAqiRateBackground:function(t){var e="";return t>=80&&t<=100?e="background:#65dd77;color:#007400":t>=60&&t<80?e="background:#fcdf56;color:#868600":t>=50&&t<60?e="background:#fd7c43;color:#844100":t>=20&&t<50?e="background:#fc5656;color:#790000":t>=10&&t<20?e="background:#fc5689;color:#14000a":t>=0&&t<10&&(e="background:#cd3a3a;"),e+"font-weight:bold;"},showPickerChild:function(t){Object(O["a"])(t)===Array?this.currentTimeD=t:this.currentYearD=t,this.currentDate=t},getData:function(){var t=this;this.$request({url:"aqi/queryComplianceDaysAnalysis",methods:"get",params:{year:this.currentDate,cityCode:this.regionDefault}}).then((function(e){t.tableData=[],t.tableData=e.data}))},regionData:function(t){this.regionDefault=t[0]},currentYear:function(){var t=new Date,e=t.getFullYear();this.currentDate=e.toString()}}},K=J,V=Object(h["a"])(K,Q,U,!1,null,null,null),Z=V.exports,tt={components:{PieChartNew:i["a"],BarChart:g,MouthPicker1:f["a"],CustomPicker1:b["a"],RegionCity:m["a"],ContrastCity:R,ChangeAnalysis:X,QualifiedDaysAnalysis:Z},props:{},data:function(){return{activeName:"first",dateRadio:"年报",dataType:"MouthPicker1",currentTimeD:[],currentYearD:"",pieData:[],barData:{data:[],time:[]},pieTableData:[],barTableData:[],regionDefault:this.$store.state.regionCode,currentDate:"",w160:!0,w400:!1}},computed:{},watch:{dateRadio:function(t,e){"年报"===t?(this.dataType="MouthPicker1",this.currentYear(),this.w160=!0,this.w400=!1):(this.dataType="CustomPicker1",this.currentTime(),this.w160=!this.w160,this.w400=!this.w400)}},created:function(){this.currentYear(),this.currentTime(),this.getAllData()},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{getAllData:function(){this.getPieData(),this.getBarData(),this.getBarTableData()},getPieData:function(){var t=this;this.pieData=[],this.pieTableData=[],this.$request({url:"/aqi/queryPieChartOfPollutionLevel",method:"get",params:{regionCode:this.regionDefault,startDate:"MouthPicker1"===this.dataType?null:this.currentTimeD[0],endDate:"MouthPicker1"===this.dataType?null:this.currentTimeD[1],year:"MouthPicker1"===this.dataType?this.currentYearD:""}}).then((function(e){var a=e.data.values;if(a){for(var r=0;r天数: "+t.value+"天
占比:"+a},textStyle:{color:"#808080"}},toolbox:{feature:{saveAsImage:{show:this.save}}},color:["#00e400","#ffff00","#ff7e00","#ff0000","#99004c","#7e0023"],series:[{name:"",type:"pie",radius:"70%",center:["55%","50%"],data:this.datas,label:{normal:{show:!0,textStyle:{fontSize:12,color:"#808080"}},emphasis:{show:!0}},labelLine:{normal:{smooth:.2,length:9,length2:18}},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},!0)}}},s=l,c=a("2877"),u=Object(c["a"])(s,r,n,!1,null,null,null);e["a"]=u.exports},dd66:function(t,e,a){"use strict";a("6597")},ed94:function(t,e,a){},fb63:function(t,e,a){"use strict";a("3edc")}}]);