(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15843232","chunk-4d722c66"],{15:function(e,t){},16:function(e,t){},17:function(e,t){},"2f21":function(e,t,a){"use strict";var r=a("79e5");e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"34c1":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"}},[a("div",{staticClass:"topSelect"},[a("div",[a("el-radio-group",{staticStyle:{"margin-left":"20px"},model:{value:e.dateRadio,callback:function(t){e.dateRadio=t},expression:"dateRadio"}},[a("el-radio-button",{attrs:{label:"月报"}}),e._v(" "),a("el-radio-button",{attrs:{label:"年报"}}),e._v(" "),a("el-radio-button",{attrs:{label:"自定义"}})],1),e._v(" "),a(e.dataType,{tag:"component",class:{w160:e.w160,w400:e.w400},staticStyle:{"padding-left":"0","margin-left":"10px"},attrs:{value1:e.currentDate},on:{sendPickerChild:e.showPickerChild}}),e._v(" "),a("el-radio-group",{staticStyle:{"margin-left":"20px"},model:{value:e.cityRadio,callback:function(t){e.cityRadio=t},expression:"cityRadio"}},[a("el-radio-button",{attrs:{label:"省内城市"}}),e._v(" "),a("el-radio-button",{attrs:{label:"市区范围"}}),e._v(" "),a("el-radio-button",{attrs:{label:"2+26城市"}})],1),e._v(" "),a("el-radio-group",{staticStyle:{"margin-left":"20px"},model:{value:e.compareRadio,callback:function(t){e.compareRadio=t},expression:"compareRadio"}},[a("el-radio-button",{attrs:{label:"同比"}}),e._v(" "),a("el-radio-button",{attrs:{label:"环比"}})],1)],1),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.getData()}}},[e._v("查询")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.setExport2Excel()}}},[e._v("报表导出")])],1)]),e._v(" "),a("div",{staticClass:"topTitle"},[a("el-table",{ref:"mytable1",staticStyle:{width:"100%"},attrs:{id:"mytable1",height:"720",data:e.tableData,border:"","default-sort":{prop:"rank",order:"ascending"},"cell-class-name":e.tableCellClassName,"cell-style":e.cellStyle},on:{"sort-change":e.changeTableSort}},[a("el-table-column",{attrs:{prop:"rank",label:"排名",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"cityName",label:"城市",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"综合指数",align:"center"}},[a("el-table-column",{attrs:{prop:"compositeIndex.percent",label:e.compareLabel,align:"center",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"compositeIndex.concentration",label:"指数",align:"center",sortable:""}})],1),e._v(" "),a("el-table-column",{attrs:{label:"PM10",align:"center"}},[a("el-table-column",{attrs:{prop:"PM10.percent",label:e.compareLabel,align:"center",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"PM10.concentration",label:"浓度",align:"center",sortable:""}})],1),e._v(" "),a("el-table-column",{attrs:{label:"PM2.5",align:"center"}},[a("el-table-column",{attrs:{prop:"PM2_5.percent",label:e.compareLabel,align:"center",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"PM2_5.concentration",label:"浓度",align:"center",sortable:""}})],1),e._v(" "),a("el-table-column",{attrs:{label:"SO2",align:"center"}},[a("el-table-column",{attrs:{prop:"SO2.percent",label:e.compareLabel,align:"center",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"SO2.concentration",label:"浓度",align:"center",sortable:""}})],1),e._v(" "),a("el-table-column",{attrs:{label:"NO2",align:"center"}},[a("el-table-column",{attrs:{prop:"NO2.percent",label:e.compareLabel,align:"center",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"NO2.concentration",label:"浓度",align:"center",sortable:""}})],1),e._v(" "),a("el-table-column",{attrs:{label:"CO",align:"center"}},[a("el-table-column",{attrs:{prop:"CO.percent",label:e.compareLabel,align:"center",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"CO.concentration",label:"浓度",align:"center",sortable:""}})],1),e._v(" "),a("el-table-column",{attrs:{label:"O3_8H",align:"center"}},[a("el-table-column",{attrs:{prop:"O3_8H.percent",label:e.compareLabel,align:"center",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"O3_8H.concentration",label:"浓度",align:"center",sortable:""}})],1),e._v(" "),a("el-table-column",{attrs:{label:"优良天数",align:"center"}},[a("el-table-column",{attrs:{prop:"fineDays.percent",label:e.compareLabel,align:"center",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"fineDays.concentration",label:"天数",align:"center",sortable:""}})],1),e._v(" "),a("el-table-column",{attrs:{label:"重污染天数",align:"center"}},[a("el-table-column",{attrs:{prop:"serverDays.percent",label:e.compareLabel,align:"center",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"serverDays.concentration",label:"天数",align:"center",sortable:""}})],1)],1)],1)])},n=[],l=(a("6b54"),a("53ca")),o=(a("34ef"),a("c5f6"),a("55dd"),a("28a5"),a("7f7f"),a("ac6a"),a("a481"),a("1146")),i=a.n(o),c=a("1088"),s=a.n(c),u=a("e012"),h=a("3dd4"),d=a("0c01"),p={components:{DatePicker1:u["a"],MouthPicker1:h["a"],CustomPicker1:d["a"]},data:function(){return{dataType:"DatePicker1",tableData:[],govMt:[],value:[],dateValue:"",pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},options:[],sensorArr:[{code:"综合指数",name:"综合指数"},{code:"PM2_5",name:"PM2.5"},{code:"PM10",name:"PM10"},{code:"SO2",name:"SO2"},{code:"NO2",name:"NO2"},{code:"CO",name:"CO"},{code:"O3",name:"O3"},{code:"O3_8H",name:"O3_8H"},{code:"AQI",name:"AQI"}],aqi:{code:"aqi",name:"AQI"},levelSensor:{compositeIndex:[35,75,115,150,250],PM2_5:[35,75,115,150,250],PM10:[50,150,250,350,420],SO2:[150,500,650,800,1600],NO2:[100,200,700,1200,2340],CO:[5,10,35,60,90],O3:[160,200,300,400,800],O3_8H:[100,160,215,265,800],AQI:[50,100,150,200,300],all:[-50,-40,-30,-20,-10,0,10,20,30,40,50,60]},compareLevel:[10,20,30,40,50],title:"",dateRadio:"月报",cityRadio:"省内城市",unit:"month",currentCityType:"province",currentDate:"",w160:!0,w400:!1,compareRadio:"同比",currentCompare:"yoy",compareLabel:"同比",excelTime:"",excelCity:"省内城市",excelCompare:"同比"}},computed:{currentTimes:function(){var e=new Date,t=e.getMonth()<9?"0"+(e.getMonth()+1):e.getMonth()+1,a=e.getDate()<=9?"0"+e.getDate():e.getDate(),r=e.toLocaleTimeString().replace(/^\D*/,""),n=r.indexOf(":"),l=e.getFullYear()+"-"+t+"-"+a+" "+r.substring(0,n)+":00";return l},govMtC:function(){var e="c",t=[];return this.govMt.forEach((function(a){var r=!1;e!==a.name&&(r=!0);var n={};n={id:a.id,name:a.name,showData:r},t.push(n),e=a.name})),t}},watch:{dateRadio:function(e,t){this.w160=!0,this.w400=!1,"月报"===e?(this.dataType="DatePicker1",this.unit="month",this.currentMonth()):"年报"===e?(this.dataType="MouthPicker1",this.unit="year",this.currentYear()):(this.dataType="CustomPicker1",this.unit="custom",this.currentTime(),this.w160=!this.w160,this.w400=!this.w400)},cityRadio:function(e,t){"2+26城市"===e?this.currentCityType="28":"省内城市"===e?this.currentCityType="province":"市区范围"===e&&(this.currentCityType="city")},compareRadio:function(e,t){this.currentCompare="同比"===e?"yoy":"mom"}},created:function(){this.currentMonth()},methods:{changeTableSort:function(e){for(var t=this.$refs.mytable1.tableData,a=0;a0)return"background-image: url("+a("9ac5")+");background-repeat: no-repeat;background-position: right;";if(n<0)return"background-image: url("+a("a4fb")+");background-repeat: no-repeat;background-position: right;"}},showPickerChild:function(e){this.currentDate=e},getData:function(){var e=this;this.tableData=[],"DatePicker1"===this.dataType||this.currentDate?this.$request({url:"/aqi/queryAirQualityComparison",method:"get",params:{regionCode:this.$store.state.regionCode,dateType:this.unit,comparisonType:this.currentCompare,time:this.currentDate&&"string"===typeof this.currentDate?this.currentDate:null,regionType:this.currentCityType,startDate:"string"===typeof this.currentDate?null:this.currentDate[0],endDate:"string"===typeof this.currentDate?null:this.currentDate[1]}}).then((function(t){"同比"===e.compareRadio?e.compareLabel="同比":e.compareLabel="环比";var a=t.data;if(0!==a.length){for(var r=0;r=-50?"negativeLevel5":n<-30&&n>=-40?"negativeLevel4":n<-20&&n>=-30?"negativeLevel3":n<-10&&n>=-20?"negativeLevel2":n<0&&n>=-10?"negativeLevel1":n>=0&&n<10?"positiveLevel1":n>=10&&n<20?"positiveLevel2":n>=20&&n<30?"positiveLevel3":n>=30&&n<40?"positiveLevel4":n>=40&&n<50?"positiveLevel5":n>=50&&n<60?"positiveLevel6":"positiveLevel7"}return""},setExport2Excel:function(){for(var e=i.a.utils.table_to_sheet(document.querySelector("#mytable1")),t=1+7*this.govMt.length+2,a=0;aDate.now()}},options:[],sensorArr:[{code:"PM2_5",name:"PM2.5"},{code:"PM10",name:"PM10"},{code:"SO2",name:"SO2"},{code:"NO2",name:"NO2"},{code:"CO",name:"CO"},{code:"O3",name:"O3"},{code:"O3_8H",name:"O3_8H"},{code:"AQI",name:"AQI"}],aqi:{code:"aqi",name:"AQI"},levelSensor:{PM2_5:[35,75,115,150,250],PM10:[50,150,250,350,420],SO2:[150,500,650,800,1600],NO2:[100,200,700,1200,2340],CO:[5,10,35,60,90],O3:[160,200,300,400,800],O3_8H:[100,160,215,265,800],AQI:[50,100,150,200,300]},title:"",dateRadio:"今日累计",cityRadio:"省内城市",unit:"today",currentCityType:"province",currentDate:"",w160:!0,w400:!1,isAqi:!1,isMonthContrast:!1,isYearContrast:!1,activeName:"first",excelTime:"",excelCity:"省内城市"}},computed:{currentTimes:function(){var e=new Date,t=e.getMonth()<9?"0"+(e.getMonth()+1):e.getMonth()+1,a=e.getDate()<=9?"0"+e.getDate():e.getDate(),r=e.toLocaleTimeString().replace(/^\D*/,""),n=r.indexOf(":"),l=e.getFullYear()+"-"+t+"-"+a+" "+r.substring(0,n)+":00";return l},govMtC:function(){var e="c",t=[];return this.govMt.forEach((function(a){var r=!1;e!==a.name&&(r=!0);var n={};n={id:a.id,name:a.name,showData:r},t.push(n),e=a.name})),t}},watch:{dateRadio:function(e,t){this.w160=!0,this.w400=!1,"今日累计"===e?(this.dataType="today",this.unit="today"):"小时"===e?(this.dataType="TimePicker1",this.unit="hour",this.currentHour()):"日报"===e?(this.dataType="HourPicker1",this.unit="day",this.currentDay()):"月报"===e?(this.dataType="DatePicker1",this.unit="month",this.currentMonth()):"年报"===e?(this.dataType="MouthPicker1",this.unit="year",this.currentYear()):(this.dataType="CustomPicker1",this.unit="custom",this.currentTime(),this.w160=!this.w160,this.w400=!this.w400)},cityRadio:function(e,t){"2+26城市"===e?this.currentCityType="28":"省内城市"===e?this.currentCityType="province":"市区范围"===e&&(this.currentCityType="city")}},created:function(){this.getData()},methods:{changeTableSort:function(){for(var e=this.$refs.mytable.tableData,t=0;t