12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68f9fdb2"],{"48f0":function(e,t,a){},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,t,a){var n=a("1d80"),o=a("5899"),r="["+o+"]",c=RegExp("^"+r+r+"*"),i=RegExp(r+r+"*$"),l=function(e){return function(t){var a=String(n(t));return 1&e&&(a=a.replace(c,"")),2&e&&(a=a.replace(i,"")),a}};e.exports={start:l(1),end:l(2),trim:l(3)}},7254:function(e,t,a){"use strict";a("48f0")},"9f23":function(e,t,a){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},a9e3:function(e,t,a){"use strict";var n=a("83ab"),o=a("da84"),r=a("94ca"),c=a("6eeb"),i=a("5135"),l=a("c6b6"),s=a("7156"),u=a("c04e"),d=a("d039"),f=a("7c73"),b=a("241c").f,m=a("06cf").f,p=a("9bf2").f,g=a("58a8").trim,h="Number",v=o[h],y=v.prototype,O=l(f(y))==h,w=function(e){var t,a,n,o,r,c,i,l,s=u(e,!1);if("string"==typeof s&&s.length>2)if(s=g(s),t=s.charCodeAt(0),43===t||45===t){if(a=s.charCodeAt(2),88===a||120===a)return NaN}else if(48===t){switch(s.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(r=s.slice(2),c=r.length,i=0;i<c;i++)if(l=r.charCodeAt(i),l<48||l>o)return NaN;return parseInt(r,n)}return+s};if(r(h,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var C,x=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof x&&(O?d((function(){y.valueOf.call(a)})):l(a)!=h)?s(new v(w(t)),a,x):w(t)},j=n?b(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),E=0;j.length>E;E++)i(v,C=j[E])&&!i(x,C)&&p(x,C,m(v,C));x.prototype=y,y.constructor=x,c(o,h,x)}},cbe3:function(e,t,a){"use strict";a("9f23")},cda6:function(e,t,a){"use strict";a.r(t);a("b0c0");var n=a("7a23"),o=function(e){return Object(n["pushScopeId"])("data-v-aebeaa6e"),e=e(),Object(n["popScopeId"])(),e},r={class:"detail-content"},c=o((function(){return Object(n["createElementVNode"])("div",{class:"title"},"环境参数",-1)})),i={key:0,class:"container-text"},l={class:"chart-box"},s={key:1,class:"no-data",height:"100%",width:"100%"},u=["src"],d=o((function(){return Object(n["createElementVNode"])("span",null,"暂无数据",-1)})),f=["src"],b=o((function(){return Object(n["createElementVNode"])("span",null,"该空间数据未配置",-1)})),m={class:"detail-desc clearfix"},p={class:"detail-text"},g=o((function(){return Object(n["createElementVNode"])("span",{class:"circle"},null,-1)})),h={class:"tem-span"},v={class:"detail-bottom"},y={class:"text-img"},O=["src"];function w(e,t,a,o,w,C){var x=Object(n["resolveComponent"])("com-chart"),j=Object(n["resolveComponent"])("van-tab"),E=Object(n["resolveComponent"])("van-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",r,[c,Object(n["createVNode"])(E,{class:"my-tab",onChange:e.changeTab,active:e.active,"onUpdate:active":t[0]||(t[0]=function(t){return e.active=t})},{default:Object(n["withCtx"])((function(){return[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.titleList,(function(t,a){return Object(n["openBlock"])(),Object(n["createBlock"])(j,{title:t.name,name:t.funcid,key:t.id+""+a},{default:Object(n["withCtx"])((function(){return[t.options?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",i,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])("Tdb,RH"==t.funcid?"温湿度逐时分布":"浓度逐时分布"),1)])):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("div",l,[t.options?(Object(n["openBlock"])(),Object(n["createBlock"])(x,{key:0,options:t.options,id:t.funcid,height:"100%",width:"100%"},null,8,["options","id"])):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",s,[1===t.showNowData?(Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],{key:0},[Object(n["createElementVNode"])("img",{src:e.parseImgUrl("page-officehome","empty.png"),alt:""},null,8,u),d],64)):Object(n["createCommentVNode"])("",!0),2===t.showNowData?(Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],{key:1},[Object(n["createElementVNode"])("img",{src:e.parseImgUrl("page-officehome","empty.png"),alt:""},null,8,f),b],64)):Object(n["createCommentVNode"])("",!0)]))]),Object(n["createElementVNode"])("div",m,[Object(n["createElementVNode"])("div",p,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(t.text,(function(e,t){return Object(n["openBlock"])(),Object(n["createElementBlock"])("p",{key:t},[g,Object(n["createElementVNode"])("span",h,Object(n["toDisplayString"])(e),1)])})),128))])]),Object(n["createElementVNode"])("div",v,[Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(t.level),1),Object(n["createElementVNode"])("div",y,[Object(n["createElementVNode"])("img",{src:t.img,alt:""},null,8,O)])])]})),_:2},1032,["title","name"])})),128))]})),_:1},8,["onChange","active"])])}a("4de4"),a("d81d"),a("fb6a"),a("a9e3"),a("b680"),a("ac1f"),a("1276");var C=a("5530"),x=(a("96cf"),a("1da1")),j=a("3485"),E=a("313e"),I=a("459d"),N=a("d257"),S=a("d399"),k=(a("e7e5"),Object(n["defineComponent"])({props:{query:{type:Object,default:function(){}}},components:{ComChart:j["a"]},setup:function(e){var t=[{id:0,name:"CO₂",funcid:"CO2",text:["CO₂,一种无色无味气体","CO₂的标准为1000ppm","CO₂过高,影响人体呼吸系统","大脑易疲劳,工作效率降低","室内人员增多,新风量不足时","室内CO₂的浓度就会上升","宜开窗通风或增加送风量","来降低CO₂浓度"],level:"不同浓度下的人体感觉",img:Object(N["w"])("page-officehome","CO2.png"),showNowData:0,options:null},{id:1,name:"PM2.5",funcid:"PM2d5",options:null,text:["PM2.5,直径≤2.5微米的颗粒","PM2.5的平均值在0-35μg/m3","PM2.5浓度过高,影响人体","呼吸系统和心血管系统健康","应开启除尘净化设备"],level:"不同PM2.5浓度对应等级",img:Object(N["w"])("page-officehome","pm25.png"),showNowData:0},{id:2,name:"甲醛",options:null,funcid:"HCHO",text:["甲醛(HCHO)是无色有刺激性有机气体。甲醛的主要危害表现为对皮肤和黏膜的刺激作用,室内甲醛浓度长期偏高会引发呼吸系统,消化系统或免疫系统疾病。","甲醛多来自于室内装饰材料,如家具,墙纸,油漆以及胶水、芳香剂等物质。","由于家具,胶水中的甲醛挥发是一个长期缓慢的过程,因此甲醛超标常表现为室内甲醛浓度长期处于较高的数值。","最为有效避免甲醛超标的方法是持续高效的通风,通过引入室外新鲜空气将室内甲醛浓度长期控制在低于有害标准的范围内。","由于甲醛传感器为电化学传感器,存在交叉干扰的特性,当室内出现无害的挥发性气体时也会导致测得的甲醛浓度短暂升高,如吸烟,使用香水,空气清新剂,喷洒酒精,甚至剥橘子皮溅出的汁液均可能在短时间内影响甲醛传感器的读数,在去除干扰源后,此种影响会在短时间内消除,可不必因此产生担忧。"],level:"不同阈值浓度对应标准",img:Object(N["w"])("page-officehome","methanal.png"),showNowData:0},{id:3,name:"温湿度",funcid:"Tdb,RH",options:null,text:["温度表示空气的冷热程度","夏季高温高湿会使人烦躁、疲倦","冬季湿度过高时,人体感觉越冷","冬季湿度低易引起呼吸道不适","室外温度较高时,宜遮阳关窗"],level:"",img:"",showNowData:0}],a={funcid:"",spaceId:""},o=[],r=Object(n["reactive"])({active:"",activeItem:o,titleList:t,query:a,parseImgUrl:N["w"],loadingStart:function(){S["a"].loading({duration:0,forbidClick:!0,message:"加载中..."})},loadinngEnd:function(){S["a"].clear()},setActiveItem:function(){for(var e=0;e<r.titleList.length;e++)if(r.titleList[e].funcid==r.query.funcid){r.active=r.titleList[e].funcid,r.activeItem=r.titleList[e];break}},changeTab:function(){r.query.spaceId&&(r.query.funcid=r.active,r.setActiveItem(),r.queryAllData())},queryAllData:function(){if(r.activeItem.funcid){var e=r.activeItem.funcid;r.loadingStart(),"Tdb,RH"===e?r.formatTowOptions(e):r.formatOptios(e)}},getData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={spaceId:r.query.spaceId,funcid:e},a=Object(N["z"])(t);return Object(I["e"])(a).then((function(t){var a=t,n=a.propertyData,o=a.dayTarget,c=r.formatChartData(n,o,e),i=r.setMax(e,o);return"Tdb"===e||"RH"===e?c:{chartData:c,chartMax:i}})).catch((function(e){r.loadinngEnd()}))},formatChartData:function(e,t,a){if(!Array.isArray(e)||!Array.isArray(t))return[];var n=e&&e.slice(1)||[],o=[],r=function(e){return Number(e)},c={PM2d5:r,CO2:r,HCHO:function(e){return Number(Number(e).toFixed(2))},RH:r,Tdb:r};if(n&&n.length>0)for(var i=0;i<n.length;i++){var l=n[i];l[1]="-9999"==l[1]?null:c[a](l[1])}if(n.length&&t.length&&n.length===t.length)for(var s=0;s<t.length;s++){var u=t[s],d="";u.time&&(d=u.time.slice(0,2)+":"+u.time.slice(2,4));var f={time:d,sales:n[s][1]};o.push(f)}return o},checkIsData:function(e){var t=e.filter((function(e){return null===e}));return e.length!==t.length},formatOptios:function(e){return Object(x["a"])(regeneratorRuntime.mark((function t(){var a,n,o,c,i,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r.activeItem.options=null,t.next=3,r.getData(e);case 3:a=t.sent,n=a.chartData,o=a.chartMax,r.loadinngEnd(),c=n.map((function(e){return e.sales})),i=n.map((function(e){return e.time})),i&&i.length?r.checkIsData(c)?(l={tooltip:{trigger:"axis"},grid:{top:20,left:5,right:20,bottom:20,containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,axisLine:{lineStyle:{color:"#ECEFF4"}},axisLabel:{fontSize:12,interval:8,showMaxLabel:!0,color:"#C4C4C4"},data:i}],yAxis:[{type:"value",max:o,axisTick:{show:!1},axisLine:{lineStyle:{color:"#ECEFF4"}},axisLabel:{fontSize:12,color:"#C4C4C4"},splitLine:{lineStyle:{type:"dashed",color:"#ECEFF4"}}}],series:[{markLine:{symbol:"none",data:[{name:"均线",type:"max",yAxis:o,lineStyle:{normal:{color:"red",width:2,type:"solid"}}}],label:{normal:{show:!0,position:"middle",textStyle:{fontSize:12,fontWeight:600}}}},name:"CO₂",type:"line",smooth:!0,symbol:"circle",symbolSize:5,showSymbol:!1,lineStyle:{width:2,color:new E["a"].LinearGradient(1,0,0,0,[{offset:0,color:"rgba(229, 87, 79, 1)"},{offset:.5,color:"rgba(229, 87, 79, 1)"},{offset:.6,color:"rgba(79, 128, 255, 1)"},{offset:1,color:"rgba(79, 128, 255, 1)"}],!1)},areaStyle:{color:new E["a"].LinearGradient(0,0,1,0,[{offset:0,color:"rgba(79, 128, 255, 0.1)"},{offset:.5,color:"rgba(79, 128, 255, 0.3)"},{offset:.6,color:"rgba(229, 87, 79, 0.1)"},{offset:1,color:"rgba(229, 87, 79, 0.3)"}],!1),shadowColor:"rgba(79, 128, 255, 0.1)",shadowBlur:10},itemStyle:{color:"rgba(79, 128, 255, 1)",borderColor:"rgba(79, 128, 255, 1)",borderWidth:12},data:c}]},r.activeItem.options=l,r.activeItem.showNowData=0):(r.activeItem.options=null,r.activeItem.showNowData=1):(r.activeItem.options=null,r.activeItem.showNowData=2);case 10:case"end":return t.stop()}}),t)})))()},formatTowOptions:function(e){return Object(x["a"])(regeneratorRuntime.mark((function t(){var a,n,o,c,i,l,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r.activeItem.options=null,a=e.split(","),t.next=4,r.getData(a[0]);case 4:return n=t.sent,t.next=7,r.getData(a[1]);case 7:o=t.sent,r.loadinngEnd(),c=n.map((function(e){return e.time})),i=n.map((function(e){return e.sales})),l=o.map((function(e){return e.sales})),s={tooltip:{trigger:"axis"},legend:{icon:"circle",itemWidth:14,itemHeight:5,itemGap:20,data:["温度","湿度"],textStyle:{fontSize:12,color:"#C4C4C4"}},grid:{top:30,left:5,right:15,bottom:20,containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,axisLine:{lineStyle:{color:"#ECEFF4"}},axisLabel:{fontSize:12,interval:8,showMaxLabel:!0,color:"#C4C4C4"},data:c}],yAxis:[{name:"",type:"value",axisTick:{show:!1},axisLine:{lineStyle:{color:"#ECEFF4"}},axisLabel:{fontSize:12,color:"#C4C4C4"},splitLine:{lineStyle:{type:"dashed",color:"#ECEFF4"}}},{name:"",type:"value",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#ECEFF4"}},axisLabel:{fontSize:12,color:"#C4C4C4"},splitLine:{show:!1}}],series:[{name:"温度",type:"line",smooth:!0,symbol:"circle",symbolSize:5,yAxisIndex:0,showSymbol:!1,lineStyle:{width:1},areaStyle:{color:new E["a"].LinearGradient(0,0,0,1,[{offset:0,color:"rgba(79, 128, 255, 0.165)"},{offset:.8,color:"rgba(79, 128, 255, 0)"}],!1),shadowColor:"rgba(79, 128, 255,0.1)",shadowBlur:10},itemStyle:{color:"rgba(79, 128, 255, 1)",borderColor:"rgba(79, 128, 255, 1)",borderWidth:12},data:i},{name:"湿度",type:"line",smooth:!0,symbol:"circle",symbolSize:5,showSymbol:!1,yAxisIndex:1,lineStyle:{width:1},areaStyle:{color:new E["a"].LinearGradient(0,0,0,1,[{offset:0,color:"rgba(137,189,27, 0.3)"},{offset:.8,color:"rgba(137,189,27, 0.165)"}],!1),shadowColor:"rgba(79, 128, 255,0.1)",shadowBlur:10},itemStyle:{color:"rgb(137,189,27)",borderColor:"rgba(137,189,2,1)",borderWidth:12},data:l}]},c&&c.length?r.checkIsData(i)||r.checkIsData(l)?(r.activeItem.options=s,r.activeItem.showNowData=0):(r.activeItem.options=null,r.activeItem.showNowData=1):(r.activeItem.options=null,r.activeItem.showNowData=2);case 14:case"end":return t.stop()}}),t)})))()},setMax:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,a=0;switch(e){case"CO2":a=t&&t[0]&&t[0].co2Max;break;case"PM2d5":a=t&&t[0]&&t[0].pm25Max;break;case"HCHO":a=t&&t[0]&&t[0].hchoMax;break;case"RH":a=0;break;case"Tdb":a=0;break;default:break}return a}});return Object(n["watch"])(e,(function(e){r.query=JSON.parse(JSON.stringify(e.query))}),{deep:!0,immediate:!0}),Object(n["onMounted"])((function(){})),Object(C["a"])({},Object(n["toRefs"])(r))}})),L=(a("7254"),a("cbe3"),a("6b0d")),A=a.n(L);const D=A()(k,[["render",w],["__scopeId","data-v-aebeaa6e"]]);t["default"]=D},fb6a:function(e,t,a){"use strict";var n=a("23e7"),o=a("861d"),r=a("e8b5"),c=a("23cb"),i=a("50c4"),l=a("fc6a"),s=a("8418"),u=a("b622"),d=a("1dde"),f=a("ae40"),b=d("slice"),m=f("slice",{ACCESSORS:!0,0:0,1:2}),p=u("species"),g=[].slice,h=Math.max;n({target:"Array",proto:!0,forced:!b||!m},{slice:function(e,t){var a,n,u,d=l(this),f=i(d.length),b=c(e,f),m=c(void 0===t?f:t,f);if(r(d)&&(a=d.constructor,"function"!=typeof a||a!==Array&&!r(a.prototype)?o(a)&&(a=a[p],null===a&&(a=void 0)):a=void 0,a===Array||void 0===a))return g.call(d,b,m);for(n=new(void 0===a?Array:a)(h(m-b,0)),u=0;b<m;b++,u++)b in d&&s(n,u,d[b]);return n.length=u,n}})}}]);
|