(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0dfea406"],{"2c5a":function(e,t,n){},4515:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],o=n("313e"),s=n.n(o),c=n("ed08"),r={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){var e=this;this.$_resizeHandler=Object(c["debounce"])((function(){e.chart&&e.chart.resize()}),100),this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},beforeDestroy:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},activated:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},deactivated:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},methods:{$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(e){"width"===e.propertyName&&this.$_resizeHandler()},$_initSidebarResizeEvent:function(){this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},$_destroySidebarResizeEvent:function(){this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)}}};n("817d");var l={mixins:[r],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(e){console.log(e),this.setOptions(e),console.log("执行成功")}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=s.a.init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(e){this.chart.setOption({xAxis:{data:e.xAxis,boundaryGap:!1,axisTick:{show:!1}},grid:{left:10,right:10,bottom:20,top:30,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:{axisTick:{show:!1}},legend:{data:[JSON.parse(JSON.stringify(e.title))]},series:[{name:JSON.parse(JSON.stringify(e.title)),itemStyle:{normal:{color:"#7AC5CD",lineStyle:{color:"#7AC5CD",width:2}}},smooth:!0,type:"line",data:e.series,animationDuration:2800,animationEasing:"cubicInOut",areaStyle:{},label:{normal:{show:!0,position:"top"}}}]},!0)}}},u=l,d=n("2877"),h=Object(d["a"])(u,a,i,!1,null,null,null);t["a"]=h.exports},"7f1c":function(e,t,n){"use strict";n("2c5a")},"9f16":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-date-picker",{attrs:{type:"month",placeholder:"选择月","value-format":"yyyy-MM"},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}})},i=[],o={components:{},props:{},data:function(){return{value1:""}},computed:{},watch:{value1:function(e,t){this.sendPicker()}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{sendPicker:function(){this.$emit("sendPickerChild",this.value1)}}},s=o,c=n("2877"),r=Object(c["a"])(s,a,i,!1,null,"8253ce4c",null);t["a"]=r.exports},cf16:function(e){e.exports={e1:"PM 2.5",e2:"PM 10",e3:"颗粒物(0.1升中0.3um量)",e4:"颗粒物(0.1升中2.5um量)",e5:"甲醛",e6:"湿度",e7:"温度",e8:"氧气(O₂)",e9:"氯气(CL₂)",e10:"一氧化碳(CO)",e11:"二氧化硫(SO₂)",e12:"光照",e13:"噪音",e14:"氨气(NH₃)",e15:"臭氧(O₃)",e16:"二氧化氮(NO₂)",e17:"挥发性有机气体(TVOC)",e18:"风速",e19:"二氧化碳(CO₂)",e20:"硫化氢(H₂S)",e21:"苯(C₆H₆)",e22:"ETO",e23:"风向",e24:"系统电压",e25:"甲苯",e26:"二甲苯",e27:"非甲烷总烃",e28:"气压",warn:"设备状态",e29:"甲醇",e30:"酚类",e31:"碳氢化合物",e32:"丙酮",e33:"VOCs混合气体状态值",e34:"ph值",e35:"溶解氧",e36:"电导率",e37:"浊度",e38:"叶绿素",e39:"甲苯、二甲苯合计",e40:"TSP",e41:"氯化氢",e42:"邻二甲苯",e43:"间二甲苯",e44:"丙烯",e45:"环氧乙烷",e46:"三氯乙烯",e47:"正丁醇",e48:"二氯甲烷",e49:"苯乙烯",e50:"丙二烯",e51:"乙苯",e52:"甲硫醚",e53:"乙硫醇",e54:"苯胺",e55:"二甲基二硫醚",e56:"正庚烷",e57:"三乙胺",e58:"甲基叔丁基醚",e59:"乙酸正丁酯",e60:"丁烯",e61:"己烯",e62:"二氯乙烯",e63:"戊烯",e64:"三氯苯",e65:"苯甲酸甲酯",e66:"四氯乙烷",e67:"正辛烷",e68:"四氯乙烯",e69:"氯苯",e70:"甲硫醇",e71:"甲基环己烷",e72:"二溴甲烷",e73:"戊烷",e74:"异戊烷",e75:"壬烷",e76:"经度",e77:"纬度",e78:"高度",e79:"水平速度",e80:"垂直速度",e81:"向下速度",e82:"核辐射",e83:"AL",e84:"油气流速",e85:"油气流量",e86:"加油流量",e87:"加油流速",e88:"油气浓度",e89:"液阻",e90:"油罐压力",e91:"管道/液阻压力",e92:"烟气流速",e93:"烟气温度",e94:"烟气压力",e95:"三氯甲烷",e96:"臭气浓度",e97:"丙烯醛",e98:"丁二烯",e99:"偏二氟乙烯",e100:"氟乙烯",e101:"三氟氯乙烯",e102:"三氟乙醇",e103:"甲烷",e104:"雨量",address:"地址",name:"名称",time:"时间",mac:"mac",ver:"版本"}},e83a: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("el-cascader",{attrs:{options:e.options,clearable:"","change-on-select":"",props:{checkStrictly:!0},placeholder:"选择设备"},model:{value:e.newMac,callback:function(t){e.newMac=t},expression:"newMac"}}),e._v(" "),n("el-select",{attrs:{placeholder:"选择因子"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.newSensor,(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:"年报"}})],1),e._v(" "),n(e.dataType,{tag:"component",staticStyle:{"padding-left":"0","margin-left":"20px"},on:{sendPickerChild:e.showPickerChild}})],1),e._v(" "),n("div",{staticClass:"topTitle"},[n("div",{staticStyle:{position:"absolute"}},[e._v("(单位:ug/m³)")]),e._v(" "),n("div",{staticStyle:{"text-align":"center",width:"100%"}},[e._v(e._s(e.newData)+"·"+e._s(e.newMac?e.newMac[0]:"")+"·"+e._s(e.newMac?e.newMac[e.newMac.length-1][0]:"")+"·"+e._s(e._f("sensorFilter")(e.value))+"·趋势图")])]),e._v(" "),n("LineChart",{attrs:{"chart-data":e.lineChartData}})],1)},i=[],o=(n("c5f6"),n("7f7f"),n("4515")),s=n("9f16"),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-date-picker",{attrs:{type:"year",placeholder:"选择年","value-format":"yyyy"},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}})},r=[],l={components:{},props:{},data:function(){return{value1:""}},computed:{},watch:{value1:function(e,t){this.sendPicker()}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{sendPicker:function(){this.$emit("sendPickerChild",this.value1)}}},u=l,d=n("2877"),h=Object(d["a"])(u,c,r,!1,null,"dcb09a3e",null),f=h.exports,p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-date-picker",{attrs:{type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd"},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}})},v=[],m={components:{},props:{},data:function(){return{value1:""}},computed:{},watch:{value1:function(e,t){this.sendPicker()}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{sendPicker:function(){this.$emit("sendPickerChild",this.value1)}}},b=m,g=Object(d["a"])(b,p,v,!1,null,"8dabdcc4",null),w=g.exports,y=n("5f87"),_=n("cf16"),D={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={components:{LineChart:o["a"],DatePicker:s["a"],MouthPicker:f,TimePicker:w},filters:{sensorFilter:function(e){return e?_[e]:""}},props:{},data:function(){return{dataType:"TimePicker",lineChartData:D.purchases,props:{multiple:!0},options:[],value:"",newMac:"",newMac1:"",newSensor:[],radio1:"日报",unit:"hour",type:"select",newLineChartData:{series:[],xAxis:[],title:""},newData:"",defaultData:[]}},computed:{},watch:{newMac:function(e,t){console.log(e),2===e.length&&this.getSensor()},radio1:function(e,t){console.log(e),"日报"===e?(this.dataType="TimePicker",this.unit="hour"):"月报"===e?(this.dataType="DatePicker",this.unit="day"):(this.dataType="MouthPicker",this.unit="month")}},created:function(){this.getData(),console.log(this.defaultData)},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{getData:function(){var e=this;this.$axios.get("http://47.96.15.25:8080/screen_api_v2/web/monitor-points",{headers:{token:Object(y["a"])()},params:{organizationId:this.organizationId,regionCode:this.$store.state.regionCode}}).then((function(t){console.log("这是index页面左侧设备数据"),console.log(t),e.defaultData=t.data.data,console.log("this.defaultData"),console.log(e.defaultData);for(var n=0;n