1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e2beccce"],{"283c":function(e,t,n){},"2de2":function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return a}));var c="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",r="/duoduo-service/duoduoenv-service/",u="/duoduo-service/",a="/duoduo-service/custom-service/"},"459d":function(e,t,n){"use strict";n.d(t,"i",(function(){return u})),n.d(t,"E",(function(){return a})),n.d(t,"y",(function(){return i})),n.d(t,"p",(function(){return s})),n.d(t,"k",(function(){return d})),n.d(t,"l",(function(){return b})),n.d(t,"b",(function(){return f})),n.d(t,"n",(function(){return l})),n.d(t,"U",(function(){return m})),n.d(t,"C",(function(){return p})),n.d(t,"q",(function(){return v})),n.d(t,"V",(function(){return j})),n.d(t,"a",(function(){return O})),n.d(t,"h",(function(){return g})),n.d(t,"g",(function(){return h})),n.d(t,"m",(function(){return S})),n.d(t,"o",(function(){return T})),n.d(t,"x",(function(){return y})),n.d(t,"z",(function(){return q})),n.d(t,"I",(function(){return I})),n.d(t,"v",(function(){return E})),n.d(t,"d",(function(){return P})),n.d(t,"D",(function(){return x})),n.d(t,"A",(function(){return k})),n.d(t,"B",(function(){return w})),n.d(t,"O",(function(){return W})),n.d(t,"J",(function(){return N})),n.d(t,"Q",(function(){return V})),n.d(t,"j",(function(){return G})),n.d(t,"u",(function(){return C})),n.d(t,"S",(function(){return B})),n.d(t,"G",(function(){return M})),n.d(t,"e",(function(){return _})),n.d(t,"P",(function(){return D})),n.d(t,"c",(function(){return F})),n.d(t,"K",(function(){return L})),n.d(t,"t",(function(){return H})),n.d(t,"s",(function(){return R})),n.d(t,"N",(function(){return A})),n.d(t,"T",(function(){return U})),n.d(t,"R",(function(){return J})),n.d(t,"w",(function(){return Q})),n.d(t,"M",(function(){return $})),n.d(t,"H",(function(){return z})),n.d(t,"f",(function(){return K})),n.d(t,"L",(function(){return Z})),n.d(t,"F",(function(){return X})),n.d(t,"r",(function(){return Y})),n("99af");var c=n("59b9"),o=n("ba72"),r=n("2de2"),u=function(e){return Object(c.b)().request("/api/company/config/".concat(e.companyId),o.b.GET,void 0,o.a.json)},a=function(e){return Object(c.b)().request("".concat(r.c,"weather/getCurrentWeather?").concat(e),o.b.GET,void 0,o.a.json)},i=function(e){return Object(c.b)().request("".concat(r.b,"space/property"),o.b.POST,e,o.a.json)},s=function(e){return Object(c.b)().request("".concat(r.b,"meeting/room/scene/getMeetingScene/V2?spaceId=").concat(e.spaceId),o.b.GET,void 0,o.a.json)},d=function(e){return Object(c.b)().request("".concat(r.b,"object/equipment/findForServe?spaceId=").concat(e.spaceId),o.b.POST,void 0,o.a.json)},b=function(e){return Object(c.b)().request("".concat(r.b,"custom/feedback/documents"),o.b.POST,e,o.a.json)},f=function(e){return Object(c.b)().request("".concat(r.b,"custom/feedbackCreate/v2"),o.b.POST,e,o.a.json)},l=function(e){return Object(c.b)({timeout:15e4}).request("".concat(r.b,"light/status/query?spaceId=").concat(e.spaceId),o.b.GET,void 0,o.a.json)},m=function(e){return Object(c.c)("".concat(r.b,"light/onoff/set"),e)},p=function(e){return Object(c.c)("".concat(r.b,"light/onoff/setSatus"),e)},v=function(e){return Object(c.b)().request("".concat(r.b,"object/objectDataEqpGroup/query"),o.b.POST,e,o.a.json)},j=function(e){return Object(c.b)().request("".concat(r.b,"meeting/room/scene/switchover"),o.b.POST,e,o.a.json)},O=function(e){return Object(c.b)().request("".concat(r.b,"customScene/create"),o.b.POST,e,o.a.json)},g=function(e){return Object(c.b)().request("".concat(r.b,"/spaceAdjust/queryPropertyData?").concat(e),o.b.GET,void 0,o.a.json)},h=function(e){return Object(c.b)().request("".concat(r.c,"object/building/query"),o.b.POST,e,o.a.json)},S=function(e){return Object(c.b)().request("".concat(r.c,"object/floor/query"),o.b.POST,e,o.a.json)},T=function(e){return Object(c.b)().request("".concat(r.d,"map/queryMapInfo"),o.b.POST,e,o.a.json)},y=function(e){return Object(c.b)().request("".concat(r.c,"object/equipment/querySpaceEquipType?").concat(e),o.b.GET,void 0,o.a.json)},q=function(e){return Object(c.b)().request("".concat(r.c,"object/space/query"),o.b.POST,e,o.a.json)},I=function(e){return Object(c.b)().request("".concat(r.d,"permanentSpace/save"),o.b.POST,e,o.a.json)},E=function(){return Object(c.b)().request("".concat(r.d,"permanentSpace/query"),o.b.GET,void 0,o.a.json)},P=function(e){return Object(c.b)().request("".concat(r.d,"permanentSpace/delete?").concat(e))},x=function(){return Object(c.b)().request("".concat(r.d,"permanentSpace/queryZJ"),o.b.GET,void 0,o.a.json)},k=function(){return Object(c.b)().request("".concat(r.c,"object/equipment/querySpaceModeSet"),o.b.GET,void 0,o.a.json)},w=function(){return Object(c.b)().request("".concat(r.c,"object/equipment/querySpaceTempSet"),o.b.GET,void 0,o.a.json)},W=function(e){return Object(c.b)().request("".concat(r.d,"scene/querySpaceSceneConfig?").concat(e),o.b.GET,void 0,o.a.json)},N=function(e){return Object(c.b)().request("".concat(r.b,"customScene/queryCustomAndScence?").concat(e),o.b.GET,void 0,o.a.json)},V=function(e){return Object(c.c)("".concat(r.b,"customScene/saveBatchCustomScene"),e)},G=function(e){return Object(c.b)().request("".concat(r.d,"padSpace/getDefaultLocation?").concat(e),o.b.GET,void 0,o.a.json)},C=function(e){return Object(c.b)().request("".concat(r.d,"padSpace/getPadSpaceList?").concat(e),o.b.GET,void 0,o.a.json)},B=function(e){return Object(c.b)().request("".concat(r.d,"padSpace/saveWorkSpace"),o.b.POST,e,o.a.json)},M=function(e){return Object(c.b)().request("".concat(r.d,"padSpace/insertWorkSpace"),o.b.POST,e,o.a.json)},_=function(e){return Object(c.b)().request("".concat(r.d,"padSpace/deleteWorkSpace"),o.b.POST,e,o.a.json)},D=function(e){return Object(c.b)().request("".concat(r.d,"padSpace/queryWorkSpace"),o.b.POST,e,o.a.json)},F=function(e){return Object(c.b)().request("".concat(r.d,"padSpace/queryWorkSpace"),o.b.POST,e,o.a.json)},L=function(e){return Object(c.b)().request("".concat(r.e,"wechat-service-duoduoenv/duoduoenv/customerservice/query"),o.b.POST,e,o.a.json)},H=function(e){return Object(c.b)().request("".concat(r.d,"padLogin/getPadQrCodeStatus?").concat(e),o.b.GET,void 0,o.a.json)},R=function(e){return Object(c.b)().request("".concat(r.d,"padImage/queryImageByFuncType?").concat(e),o.b.GET,void 0,o.a.json)},A=function(e){return Object(c.b)().request("".concat(r.b,"ctrl/querySpaceConditioners?").concat(e),o.b.GET,void 0,o.a.json)},U=function(e){return Object(c.c)("".concat(r.b,"ctrl/set"),e)},J=function(e){return Object(c.b)().request("".concat(r.d,"/map/saveMapPointInfo"),o.b.POST,e,o.a.json)},Q=function(e){return Object(c.b)().request("".concat(r.a,"equipmentRun/queryEquipmentRunConfig?").concat(e),o.b.GET,void 0,o.a.json)},$=function(e){return Object(c.b)().request("".concat(r.b,"ctrl/querySapceFloorHeating?").concat(e),o.b.GET,void 0,o.a.json)},z=function(e){return Object(c.c)("".concat(r.d,"padSpace/insertWorkSpaceBatch"),e)},K=function(e){return Object(c.c)("".concat(r.d,"padSpace/deleteWorkSpaceBatch"),e)},Z=function(e){return Object(c.b)().request("".concat(r.b,"ctrl/queryEquipmentStatusInfo?").concat(e),o.b.GET,void 0,o.a.json)},X=function(e){return Object(c.b)({isComParams:!1}).request("".concat(r.c,"weather/getCurrentWeather?").concat(e),o.b.GET,void 0,o.a.json)},Y=function(e){return Object(c.b)({isComParams:!1}).request("".concat(r.b,"space/property"),o.b.POST,e,o.a.json)}},"4c3e":function(e,t,n){"use strict";n("283c")},5118:function(e,t,n){(function(e){var c=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function r(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new r(o.call(setTimeout,c,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,c,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(c,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("6017"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("c8ba"))},6017:function(e,t,n){(function(e,t){!function(e,n){"use strict";var c,o,r,u,a,i,s,d;function b(e){delete o[e]}function f(e){if(r)setTimeout(f,0,e);else{var t=o[e];if(t){r=!0;try{var c=t,u=c.callback,a=c.args;switch(a.length){case 0:u();break;case 1:u(a[0]);break;case 2:u(a[0],a[1]);break;case 3:u(a[0],a[1],a[2]);break;default:u.apply(n,a)}}finally{b(e),r=!1}}}}function l(){function t(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(n)&&f(+t.data.slice(n.length))}var n="setImmediate$"+Math.random()+"$";e.addEventListener?e.addEventListener("message",t,!1):e.attachEvent("onmessage",t),a=function(t){e.postMessage(n+t,"*")}}e.setImmediate||(c=1,r=!(o={}),u=e.document,d=(d=Object.getPrototypeOf&&Object.getPrototypeOf(e))&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?a=function(e){t.nextTick((function(){f(e)}))}:function(){var t,n;if(e.postMessage&&!e.importScripts)return t=!0,n=e.onmessage,e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}()?l():a=e.MessageChannel?((s=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){s.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(i=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(f,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];return o[c]={callback:e,args:t},a(c),c++},d.clearImmediate=b)}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n("c8ba"),n("4362"))},a3cd:function(e,t,n){"use strict";function c(e){return Object(o.pushScopeId)("data-v-09eca89d"),e=e(),Object(o.popScopeId)(),e}n.r(t),n("b0c0");var o=n("7a23"),r={class:"enter-main"},u={class:"top-box"},a={class:"left"},i=["src"],s=["src"],d={class:"wether-info"},b={class:"temp"},f={class:"text"},l=c((function(){return Object(o.createElementVNode)("div",{class:"line"},null,-1)})),m={class:"wether-pm"},p={class:"value-box"},v=c((function(){return Object(o.createElementVNode)("span",null,"PM 2.5",-1)})),j={class:"value-des"},O=c((function(){return Object(o.createElementVNode)("span",null,"室外空气质量",-1)})),g={class:"right"},h={class:"env-box"},S={class:"title-box"},T=["src"],y={class:"title"},q={class:"index-box"},I={class:"num"},E={class:"text"};n("c975");var P=n("5530"),x=n("d257"),k=n("459d"),w=n("5118"),W=Object(o.defineComponent)({components:{},setup:function(e){var t=this,n=[{id:1,name:"PM 2.5",unit:"ug/m³",funcid:"PM2d5",levelTxt:"",value:10,img:Object(x.y)("pac","pm2.5.svg"),showNowData:0},{id:2,value:10,name:"甲醛",unit:"mg/㎡",levelTxt:"",img:Object(x.y)("pac","HCHO.svg")},{id:3,value:10,name:"温度",unit:"%",levelTxt:"",funcid:"Tdb,RH",img:Object(x.y)("pac","Tdb.svg")},{id:3,value:10,name:"湿度",levelTxt:"",unit:"%",funcid:"Tdb,RH",img:Object(x.y)("pac","RH.svg")}],c=Object(o.reactive)({envlist:n,parseImgUrl:x.y,time1:"",time2:"",params:{spaceId:"Sp31010600032517f22f3d6a4c71b18cab24c444d362",pubname:"sagacarepad",projectId:"Pj3101060003"},outWeather:{},getWeatherIconByText:function(e){var t="晴.svg";return-1<e.indexOf("晴")?t="晴.svg":-1<e.indexOf("雨")?t="大雨.svg":-1<e.indexOf("阴")||-1<e.indexOf("云")?t="阴.svg":-1<e.indexOf("霾")||-1<e.indexOf("雾")?t="雾.svg":-1<e.indexOf("风")?t="风.svg":-1<e.indexOf("雷")&&(t="雷阵雨.svg"),t},getWeatherIconByCode:function(e){var t="";return e<=3?t="晴.svg":e<=8?t="多云.svg":e<=9?t="阴.svg":e<=10?t="阵雨.svg":e<=12?t="雷阵雨.svg":e<=13?t="小雨.svg":e<=15?t="大雨.svg":e<=18?t="暴雨.svg":e<=19?t="小雨.svg":e<=20?t="雨夹雪.svg":e<=23?t="小雪.svg":e<=25?t="大雪.svg":e<=29?t="阴.svg":e<=31?t="雾.svg":e<=35?t="风.svg":e<=36?t="龙卷风.svg":e<=37?t="阴.svg":e<=38&&(t="晴.svg"),t},getWeatherInfo:function(){var e=Object(x.B)(c.params);Object(k.F)(e).then((function(e){c.outWeather=e.content||{};e=c.outWeather.text||"";var t=c.outWeather.code;t=(t=c.getWeatherIconByCode(t))||c.getWeatherIconByText(e);c.outWeather.imgname=t}))},getSpaceInfo:function(){Object(x.B)(c.params),Object(k.r)({criteria:c.params}).then((function(e){e=e&&e.content||[],e&&e.length&&c.formatSpaceInfo(e)}))},formatSpaceInfo:function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=0;t<e.length;t++){var n,o=e[t];o.pm25||0===o.pm25?(n=c.checkLevel(o.pm25,"pm25"),c.envlist[0].levelTxt=n?n.levelTxt:"--",c.envlist[0].num=o.pm25):(c.envlist[0].levelTxt="",c.envlist[0].num="--"),o.hcho||0==o.hcho?(c.checkLevel(o.hcho,"hcho"),c.envlist[1].num=o.hcho):c.envlist[1].num="--",!o.temperature&&0!=o.temperature||(c.envlist[2].num=o.temperature),o.humidity||0==o.humidity?(c.checkLevel(o.humidity,"humidity"),c.envlist[3].num=o.humidity):c.envlist[3].num="--"}},checkLevel:function(e,t){var n="";e=parseFloat(e);return"humidity"==t?n=e<30?"干燥":70<e?"潮湿":"健康":"pm25"==t?0<=e&&e<35?n="健康":35<=e&&e<=75?n="良":75<e&&e<=115?n="轻度污染":115<e&&e<=150?n="中度污染":150<e&&e<=250?n="重度污染":250<e&&(n="严重污染"):"hcho"==t&&(n=e<=.1?"健康":"超标"),{levelTxt:n}},timeInit:function(){var e=this;this.time1=Object(w.setInterval)((function(){e.getWeatherInfo()}),3e5),this.time12=Object(w.setInterval)((function(){e.getSpaceInfo()}),3e5)}});return Object(o.onBeforeUnmount)((function(){Object(w.clearInterval)(t.time1),Object(w.clearInterval)(t.time1)})),Object(o.onMounted)((function(){c.getWeatherInfo(),c.getSpaceInfo(),c.timeInit()})),Object(P.a)({},Object(o.toRefs)(c))}}),N=(n("4c3e"),n("6b0d"));n=n.n(N);t.default=n()(W,[["render",function(e,t,n,c,P,x){return Object(o.openBlock)(),Object(o.createElementBlock)("div",r,[Object(o.createElementVNode)("div",u,[Object(o.createElementVNode)("div",a,[Object(o.createElementVNode)("img",{class:"logo",src:e.parseImgUrl("pac","logo.svg")},null,8,i),Object(o.withDirectives)(Object(o.createElementVNode)("img",{class:"weather-icon",src:e.parseImgUrl("pac","weather/"+e.outWeather.imgname)},null,8,s),[[o.vShow,e.outWeather.imgname]]),Object(o.createElementVNode)("div",d,[Object(o.createElementVNode)("div",b,Object(o.toDisplayString)(e.outWeather.temperature)+" ℃",1),Object(o.createElementVNode)("div",f,Object(o.toDisplayString)(e.outWeather.text),1)]),l,Object(o.createElementVNode)("div",m,[Object(o.createElementVNode)("div",p,[v,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.outWeather.pm25||"--"),1)]),Object(o.createElementVNode)("div",j,[O,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.outWeather.quality||"--"),1)])])]),Object(o.createElementVNode)("div",g,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e.envlist,(function(e){return Object(o.openBlock)(),Object(o.createElementBlock)("div",h,[Object(o.createElementVNode)("div",S,[Object(o.createElementVNode)("img",{class:"icon",src:e.img},null,8,T),Object(o.createElementVNode)("div",y,Object(o.toDisplayString)(e.name),1)]),Object(o.createElementVNode)("div",q,[Object(o.createElementVNode)("div",I,Object(o.toDisplayString)(e.num),1),Object(o.createElementVNode)("div",E,Object(o.toDisplayString)(e.levelTxt),1)])])})),256))])])])}],["__scopeId","data-v-09eca89d"]])},b0c0:function(e,t,n){var c=n("83ab"),o=(n=n("9bf2").f,Function.prototype),r=o.toString,u=/^\s*function ([^ (]*)/;!c||"name"in o||n(o,"name",{configurable:!0,get:function(){try{return r.call(this).match(u)[1]}catch(e){return""}}})}}]);
|