(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3a1e216d"],{15:function(e,t){},16:function(e,t){},17:function(e,t){},"21a6":function(e,t,n){(function(n){var a,o,r;(function(n,i){o=[],a=i,r="function"===typeof a?a.apply(t,o):a,void 0===r||(e.exports=r)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function a(e,t,n){var a=new XMLHttpRequest;a.open("GET",e),a.responseType="blob",a.onload=function(){s(a.response,t,n)},a.onerror=function(){console.error("could not download file")},a.send()}function o(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(a){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,l=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!l?function(e,t,n){var l=i.URL||i.webkitURL,s=document.createElement("a");t=t||e.name||"download",s.download=t,s.rel="noopener","string"==typeof e?(s.href=e,s.origin===location.origin?r(s):o(s.href)?a(e,t,n):r(s,s.target="_blank")):(s.href=l.createObjectURL(e),setTimeout((function(){l.revokeObjectURL(s.href)}),4e4),setTimeout((function(){r(s)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,i){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,i),n);else if(o(e))a(e,n,i);else{var l=document.createElement("a");l.href=e,l.target="_blank",setTimeout((function(){r(l)}))}}:function(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return a(e,t,n);var r="application/octet-stream"===e.type,s=/constructor/i.test(i.HTMLElement)||i.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&s||l)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},u.readAsDataURL(e)}else{var d=i.URL||i.webkitURL,f=d.createObjectURL(e);o?o.location=f:location.href=f,o=null,setTimeout((function(){d.revokeObjectURL(f)}),4e4)}});i.saveAs=s.saveAs=s,e.exports=s}))}).call(this,n("c8ba"))},4917:function(e,t,n){"use strict";var a=n("cb7c"),o=n("9def"),r=n("0390"),i=n("5f1b");n("214f")("match",1,(function(e,t,n,l){return[function(n){var a=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,a):new RegExp(n)[t](String(a))},function(e){var t=l(n,e,this);if(t.done)return t.value;var s=a(e),c=String(this);if(!s.global)return i(s,c);var u=s.unicode;s.lastIndex=0;var d,f=[],p=0;while(null!==(d=i(s,c))){var b=String(d[0]);f[p]=b,""===b&&(s.lastIndex=r(c,o(s.lastIndex),u)),p++}return 0===p?null:f}]}))},"4fa6":function(e,t,n){"use strict";n("6ba8")},"6ba8":function(e,t,n){},c83a:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"}},[n("div",{staticClass:"topSelect"},[n("div",[n("el-select",{staticStyle:{width:"300px"},attrs:{placeholder:"选择站点"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),n("el-radio-group",{staticStyle:{"margin-left":"20px"},model:{value:e.radio1,callback:function(t){e.radio1=t},expression:"radio1"}},[n("el-radio-button",{attrs:{label:"时报"}}),e._v(" "),n("el-radio-button",{attrs:{label:"日报"}}),e._v(" "),n("el-radio-button",{attrs:{label:"周报"}}),e._v(" "),n("el-radio-button",{attrs:{label:"月报"}}),e._v(" "),n("el-radio-button",{attrs:{label:"自定义"}})],1),e._v(" "),e.dateDisplay?n("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}}):e._e()],1),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.exportExcel()}}},[e._v("报表导出")])],1),e._v(" "),n("div",{staticClass:"topTitle"},[n("el-table",{staticStyle:{width:"100%"},attrs:{id:"exportTab","default-sort":{prop:"rank",order:"ascending"},data:e.tableData,border:"",stripe:!0},on:{"sort-change":e.changeTableSort}},[n("el-table-column",{attrs:{prop:"rank",label:"排名"}}),e._v(" "),n("el-table-column",{attrs:{prop:"deviceName",label:"设备",width:"180"}}),e._v(" "),n("el-table-column",{attrs:{prop:"responsibleUnit",label:"责任单位",width:"180"}}),e._v(" "),n("el-table-column",{attrs:{prop:"time",label:"时间",width:"180"}}),e._v(" "),n("el-table-column",{attrs:{prop:"aqi",label:"AQI",sortable:""}}),e._v(" "),n("el-table-column",{attrs:{prop:"comIndex",label:"综合指数",width:"130",sortable:""}}),e._v(" "),n("el-table-column",{attrs:{prop:"a34004",label:"PM2.5",sortable:""}}),e._v(" "),n("el-table-column",{attrs:{prop:"a34002",label:"PM10",sortable:""}}),e._v(" "),n("el-table-column",{attrs:{prop:"a21026",label:"SO2",sortable:""}}),e._v(" "),n("el-table-column",{attrs:{prop:"a21004",label:"NO2",sortable:""}}),e._v(" "),n("el-table-column",{attrs:{prop:"a21005",label:"CO",sortable:""}}),e._v(" "),n("el-table-column",{attrs:{prop:"a05024",label:"O3_8H",sortable:""}})],1)],1)])},o=[],r=(n("7f7f"),n("4917"),n("6b54"),n("c5f6"),n("28a5"),n("21a6")),i=n.n(r),l=n("1146"),s=n.n(l),c={components:{},props:{},data:function(){return{options:[],radio1:"",value:"",value1:"",reportType:0,monitorPointId:0,tableData:[],dateDisplay:!1,newKey:0,timearr:null}},computed:{},watch:{value:function(e,t){this.monitorPointId=e},value1:function(e,t){var n=this.getAll(e[0],e[1]);n.length<=7?this.getReportForm(this.newKey):this.$message({message:"日期天数不能大于7天",type:"warning"})},radio1:function(e,t){switch(e){case"时报":this.newKey=0;break;case"日报":this.newKey=1;break;case"周报":this.newKey=2;break;case"月报":this.newKey=3;break;case"自定义":this.newKey=4;break;default:this.newKey=4;break}4===this.newKey?this.dateDisplay=!0:this.dateDisplay=!1,this.getReportForm(this.newKey)}},created:function(){this.getMonitorPointId()},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{changeTableSort:function(){for(var e=this.$refs.mytable.tableData,t=0;t8?s.getMonth()+1:"0"+(s.getMonth()+1),d=s.getDate()>9?s.getDate():"0"+s.getDate(),f=s.getHours()>9?s.getHours():"0"+s.getHours(),p=s.getMinutes()>9?s.getMinutes():"0"+s.getMinutes(),b=s.getSeconds()>9?s.getSeconds():"0"+s.getSeconds(),m="",h="/";return t?(h=t.match(/-/)?"-":"/",m+=t.match(/yy/i)?c:"",m+=t.match(/MM/)?(m.length?h:"")+u:"",m+=t.match(/dd/i)?(m.length?h:"")+d:"",m+=t.match(/hh/i)?(m.length?" ":"")+f:"",m+=t.match(/mm/)?(m.length?":":"")+p:"",m+=t.match(/ss/i)?(m.length?":":"")+b:""):m+=c+h+u+h+d,m=n?n+m:m,l?m:""},getTime:function(){if(this.form.beginTime&&this.form.endTime){var e=this.formatTime(this.form.beginTime,1),t=this.formatTime(this.form.endTime,1),n=new Date(e),a=new Date(t);if(n.getTime()>a.getTime())return this.form.beginTime=null,this.form.endTime=null,void alert("开始时间不能大于结束时间!");this.difference(n,a)}},difference:function(e,t){var n=t.getTime()-e.getTime(),a=Math.ceil(n/864e5);this.form.alltime=a},exportExcel:function(){var e={raw:!0},t=s.a.utils.table_to_book(document.querySelector("#exportTab"),e),n=s.a.write(t,{bookType:"xlsx",bookSST:!0,type:"array"});try{i.a.saveAs(new Blob([n],{type:"application/octet-stream"}),"站点数据表.xlsx")}catch(a){"undefined"!==typeof console&&console.log(a,n)}return n},getMonitorPointId:function(){var e=this;this.$request({url:"/monitorPoint/queryAllMonitorPoints",method:"get",params:{organizationId:this.$store.state.orgId}}).then((function(t){for(var n=0;n