(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b82a168"],{"02d1":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"100%",height:"100%","overflow-y":"scroll"}},[a("div",{staticClass:"topSelect"},[a("div",[a("el-radio-group",{staticStyle:{"margin-left":"20px","margin-right":"20px"},attrs:{size:"small"},model:{value:t.radio1,callback:function(e){t.radio1=e},expression:"radio1"}},[a("el-radio-button",{attrs:{label:"昨天"}}),t._v(" "),a("el-radio-button",{attrs:{label:"今天"}}),t._v(" "),a("el-radio-button",{attrs:{label:"明天"}})],1),t._v(" "),a("el-date-picker",{staticStyle:{width:"160px"},attrs:{type:"date",placeholder:"选择日期",size:"small"},model:{value:t.selectData,callback:function(e){t.selectData=e},expression:"selectData"}})],1),t._v(" "),a("div",{staticClass:"cityDiv",staticStyle:{width:"20%","font-size":"15px"}},[a("div",{staticClass:"spanDiv",staticStyle:{"margin-bottom":"4%"}},[a("span",[t._v("热门城市:")]),t._v(" "),a("span",{on:{click:function(e){return t.inputCityChange("昆山")}}},[t._v("昆山市")]),t._v(" "),a("span",{on:{click:function(e){return t.inputCityChange("苏州")}}},[t._v("苏州市")]),t._v(" "),a("span",{on:{click:function(e){return t.inputCityChange("沧州")}}},[t._v("沧州市")]),t._v(" "),a("span",{on:{click:function(e){return t.inputCityChange("任丘")}}},[t._v("任丘市")])]),t._v(" "),a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("div",[t._v("城市:")]),t._v(" "),a("el-input",{staticStyle:{width:"55%","margin-right":"2%"},attrs:{placeholder:"请输入内容",size:"small"},model:{value:t.inputCity,callback:function(e){t.inputCity=e},expression:"inputCity"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.selectDataBtn}},[t._v("查询")])],1)])]),t._v(" "),t.isShow?a("div",{staticStyle:{"text-align":"right",margin:"0px 30px 15px 0px",color:"#666666"}},[a("span",{staticStyle:{"font-weight":"bold"}},[t._v("保良值:")]),t._l(t.goodValue,(function(e,i){return a("span",{key:i},[t._v(" 后"+t._s(i+1)+"小时("),a("span",{staticStyle:{color:"DarkOrange"}},[t._v(t._s(e))]),t._v(") ")])}))],2):t._e(),t._v(" "),a("LineChart",{staticStyle:{margin:"auto","margin-bottom":"5%"},attrs:{"chart-data":t.lineChartData,width:t.echartsWidth,height:t.echartsHeight,interval:t.interval}}),t._v(" "),a("LineChart",{staticStyle:{margin:"auto"},attrs:{"chart-data":t.lineChartData2,width:t.echartsWidth,height:t.echartsHeight,interval:t.interval}})],1)},n=[],o=(a("28a5"),a("4515")),r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"O3Echarts"}})},s=[],c=a("313e"),l={name:"O3Echarts",props:{chartData:{type:Object}},mounted:function(){this.showEcharts()},methods:{showEcharts:function(){var t,e=document.getElementById("O3Echarts"),a=c["init"](e);t={title:{text:this.chartData.text},tooltip:{trigger:"axis"},legend:{data:this.chartData.title},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!1,data:this.chartData.xAxis},yAxis:{type:"value"},series:this.chartData.series},t&&a.setOption(t)}}},h=l,u=a("2877"),d=Object(u["a"])(h,r,s,!1,null,"147d8466",null),p=(d.exports,a("cf16")),g=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)},f=[],D={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(){this.getRegion()},methods:{getRegion:function(){var t=this;this.$request({url:"/organization/getMapPath",method:"get",params:{organizationId:this.$store.state.orgId}}).then((function(e){for(var a=e.data,i=0;i<a.length;i++){t.options.push({value:a[i].provinceCode,label:a[i].provinceName}),t.options[i].children=[];for(var n=0;n<a[i].cities.length;n++){t.options[i].children.push({value:a[i].cities[n].cityCode,label:a[i].cities[n].cityName}),t.options[i].children[n].children=[];for(var o=0;o<a[i].cities[n].areas.length;o++)t.options[i].children[n].children.push({value:a[i].cities[n].areas[o].areaCode,label:a[i].cities[n].areas[o].areaName})}}})).catch((function(t){console.log(t)}))}}},y=D,m=(a("7c8c"),Object(u["a"])(y,g,f,!1,null,"aa35eede",null)),v=m.exports,w=a("bc3a"),C=a.n(w),b={newVisitis:{expectedData:[100,120,161,134,105,160,165],actualData:[120,82,91,154,162,140,145]},messages:{expectedData:[200,192,120,144,160,130,140],actualData:[180,160,151,106,145,150,130]},purchases:{expectedData:[80,100,121,104,105,90,100],actualData:[120,90,100,138,142,130,130]},shoppings:{expectedData:[130,140,141,142,145,150,160],actualData:[120,82,91,154,162,140,130]}},x={newVisitis:{expectedData:[100,120,161,134,105,160,165],actualData:[120,82,91,154,162,140,145]},messages:{expectedData:[200,192,120,144,160,130,140],actualData:[180,160,151,106,145,150,130]},purchases:{expectedData:[80,100,121,104,105,90,100],actualData:[120,90,100,138,142,130,130]},shoppings:{expectedData:[130,140,141,142,145,150,160],actualData:[120,82,91,154,162,140,130]}},S=C.a.create({baseURL:"http://121.43.179.139:8080",timeout:5e3}),_={components:{LineChart:o["a"],Region:v},filters:{sensorFilter:function(t){return t?p[t]:""}},props:{},data:function(){return{interval:0,echartsWidth:"80%",echartsHeight:"400px",HourPicker:"TimePicker",lineChartData:b.purchases,lineChartData2:x.purchases,props:{multiple:!0},options:[],value:"",newMac:"",newMac1:[],newSensor:[],radio1:"今天",unit:"hour",type:"select",newLineChartData:{series:[],xAxis:[],title:[]},newLineChartData2:{series:[],xAxis:[],title:[]},newData:"",defaultData:[],selectData:this.getToday1(),city:"昆山",o31hDataYuce:[],o31hDataShice:[],o38hDataYuce:[],o38hDataShice:[],pickerOptions:{disabledDate:function(t){return t.getTime()>Date.now()}},goodValue:[],value2:this.getToday1(),inputCity:"",isShow:!1,oneHour:"",twoHour:"",threeHour:"",fourHours:"",dataArr:[]}},computed:{},watch:{radio1:function(t,e){"昨天"===t?this.getYesterday():"今天"===t?this.getToday():"明天"===t&&this.getTomorrow()},selectData:function(t,e){var a=this.newTime(t);a===this.getYesterday1()?this.radio1="昨天":a===this.getToday1()?this.radio1="今天":a===this.getTomorrow1()?this.radio1="明天":this.radio1="",this.selectData=a,this.selectDataBtn()}},created:function(){this.selectDataBtn()},methods:{inputCityChange:function(t){this.inputCity=t,this.selectDataBtn()},selectDataBtn:function(){var t=this;this.o31hDataYuce=[],this.o31hDataShice=[],this.o38hDataYuce=[],this.o38hDataShice=[],this.goodValue=[],S({url:"/screen_api_v2/screen/weatherData",method:"get",params:{city:this.inputCity,time:this.selectData}}).then((function(e){0===e.data.data.length?(t.$message("当前没有数据"),t.isShow=!1):t.isShow=!0;var a=e.data.data;t.newLineChartData.series.push({data:[],name:"",type:"line",label:{normal:{show:!0}}}),t.newLineChartData.series.push({data:[],name:"",type:"line",label:{normal:{show:!0}}}),t.newLineChartData2.series.push({data:[],name:"",type:"line",label:{normal:{show:!0}}}),t.newLineChartData2.series.push({data:[],name:"",type:"line",label:{normal:{show:!0}}});var i=[];t.o38hDataShice=[];for(var n=0;n<a.length;n++){if("预测"===a[n].type){t.o31hDataYuce.push(a[n].O3C),t.o38hDataYuce.push(a[n].O3C_8H);var o=a[n].time.split(" ")[1];"00:00"===o&&(o="次日00:00"),i.push(o)}else a[n].O3C?(t.o31hDataShice.push(a[n].O3C),t.dataArr.push(a[n].O3C)):t.dataArr.push(0),a[n].O3C_8H&&t.o38hDataShice.push(a[n].O3C_8H);a[n].goodValue&&t.goodValue.push(a[n].goodValue)}t.newLineChartData.series[0].data=t.o31hDataYuce,t.newLineChartData.series[1].data=t.o31hDataShice,t.newLineChartData.series[0].name="预测",t.newLineChartData.series[1].name="实测",t.newLineChartData.title[0]="预测",t.newLineChartData.title[1]="实测",t.newLineChartData.xAxis=i,t.newLineChartData.text="O3-1H ".concat(t.newTime(t.selectData)),t.lineChartData=t.newLineChartData,t.newLineChartData2.series[0].data=t.o38hDataYuce,t.newLineChartData2.series[1].data=t.o38hDataShice,t.newLineChartData2.series[0].name="预测",t.newLineChartData2.series[1].name="实测",t.newLineChartData2.title[0]="预测",t.newLineChartData2.title[1]="实测",t.newLineChartData2.xAxis=i,t.newLineChartData2.text="O3-8H ".concat(t.newTime(t.selectData)),t.lineChartData2=t.newLineChartData2})).catch((function(t){console.log(t)}))},newTime:function(t){var e=new Date(t),a=e.getFullYear(),i=e.getMonth()+1;i=i<10?"0"+i:i;var n=e.getDate();return n=n<10?"0"+n:n,a+"-"+i+"-"+n},getYesterday:function(){this.selectData=this.getYesterday1()},getYesterday1:function(){var t=new Date;t.setTime(t.getTime()-864e5);var e=t.getMonth()<9?"0"+(t.getMonth()+1):t.getMonth()+1,a=t.getDate()<=9?"0"+t.getDate():t.getDate(),i=t.getFullYear()+"-"+e+"-"+a;return i},getToday:function(){this.selectData=this.getToday1()},getToday1:function(){var t=new Date,e=t.getMonth()<9?"0"+(t.getMonth()+1):t.getMonth()+1,a=t.getDate()<=9?"0"+t.getDate():t.getDate(),i=t.getFullYear()+"-"+e+"-"+a;return i},getTomorrow:function(){this.selectData=this.getTomorrow1()},getTomorrow1:function(){var t=new Date;t.setTime(t.getTime()+864e5);var e=t.getMonth()<9?"0"+(t.getMonth()+1):t.getMonth()+1,a=t.getDate()<=9?"0"+t.getDate():t.getDate(),i=t.getFullYear()+"-"+e+"-"+a;return i},searchDate:function(t){this.city=t},ctfRegion:function(t){this.city=t,this.searchDate(this.city)}}},L=_,T=(a("e276"),Object(u["a"])(L,i,n,!1,null,"613e77dd",null));e["default"]=T.exports},"186e":function(t,e,a){},"3a11":function(t,e,a){},"7c8c":function(t,e,a){"use strict";a("186e")},"817d":function(t,e,a){var i,n,o;(function(r,s){n=[e,a("313e")],i=s,o="function"===typeof i?i.apply(e,n):i,void 0===o||(t.exports=o)})(0,(function(t,e){var a=function(t){"undefined"!==typeof console&&console&&console.error&&console.error(t)};if(e){var i=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],n={color:i,title:{textStyle:{fontWeight:"normal",color:"#008acd"}},visualMap:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{iconStyle:{normal:{borderColor:i[0]}}},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{color:"#008acd",borderColor:"#008acd"},symbol:"emptyCircle",symbolSize:3},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},candlestick:{itemStyle:{color:"#d87a80",color0:"#2ec7c9"},lineStyle:{width:1,color:"#d87a80",color0:"#2ec7c9"},areaStyle:{color:"#2ec7c9",color0:"#b6a2de"}},scatter:{symbol:"circle",symbolSize:4},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"#fe994e"},label:{color:"#d87a80"}},graph:{itemStyle:{color:"#d87a80"},linkStyle:{color:"#2ec7c9"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}}};e.registerTheme("macarons",n)}else a("ECharts is not Loaded")}))},aa77:function(t,e,a){var i=a("5ca1"),n=a("be13"),o=a("79e5"),r=a("fdef"),s="["+r+"]",c="
",l=RegExp("^"+s+s+"*"),h=RegExp(s+s+"*$"),u=function(t,e,a){var n={},s=o((function(){return!!r[t]()||c[t]()!=c})),l=n[t]=s?e(d):r[t];a&&(n[a]=l),i(i.P+i.F*s,"String",n)},d=u.trim=function(t,e){return t=String(n(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(h,"")),t};t.exports=u},c5f6:function(t,e,a){"use strict";var i=a("7726"),n=a("69a8"),o=a("2d95"),r=a("5dbc"),s=a("6a99"),c=a("79e5"),l=a("9093").f,h=a("11e9").f,u=a("86cc").f,d=a("aa77").trim,p="Number",g=i[p],f=g,D=g.prototype,y=o(a("2aeb")(D))==p,m="trim"in String.prototype,v=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():d(e,3);var a,i,n,o=e.charCodeAt(0);if(43===o||45===o){if(a=e.charCodeAt(2),88===a||120===a)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:i=2,n=49;break;case 79:case 111:i=8,n=55;break;default:return+e}for(var r,c=e.slice(2),l=0,h=c.length;l<h;l++)if(r=c.charCodeAt(l),r<48||r>n)return NaN;return parseInt(c,i)}}return+e};if(!g(" 0o1")||!g("0b1")||g("+0x1")){g=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof g&&(y?c((function(){D.valueOf.call(a)})):o(a)!=p)?r(new f(v(e)),a,g):v(e)};for(var w,C=a("9e1e")?l(f):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),b=0;C.length>b;b++)n(f,w=C[b])&&!n(g,w)&&u(g,w,h(f,w));g.prototype=D,D.constructor=g,a("2aba")(i,p,g)}},cf16:function(t){t.exports={flylon:"经度",a00e12:"光照强度",a00e34:"TSP",a00e13:"噪音",a21005:"一氧化碳",a21004:"二氧化氮",a21026:"二氧化硫",a21028:"硫化氢",flyhig:"高度",a21001:"氨气",a40002:"苯乙烯",a21022:"氯气",a00e19:"二氧化碳",a40001:"烟气流量",a01001:"温度",a25005:"二甲苯",a05024:"臭氧",a21024:"氯化氢",a40003:"环氧乙烷",a25003:"甲苯",a01002:"湿度",a25002:"苯",a23001:"酚类",a01007:"风速",a01006:"气压",a01008:"风向",a30001:"甲醇",a19002:"臭气浓度",a19001:"氧气",a34002:"PM10",a34004:"PM2.5",dustld:"尘负荷",PORRST:"开机标识",a00e03:"颗粒物0.3",a00e04:"颗粒物2.5",a06001:"雨量",a99054:"TVOC",a35e21:"核辐射",a01011:"烟气流速",a24088:"非甲烷总烃",flylat:"纬度",a31001:"甲醛"}},e276:function(t,e,a){"use strict";a("3a11")},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}}]);
|