(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-72383b2a","chunk-2d0c1282"],{"12fd":function(e,t,n){"use strict";n("b2a1")},"162a":function(e,t,n){e.exports=n.p+"static/img/deviceroom.01480d11.svg"},"1d69":function(e,t,n){"use strict";n.r(t);var c=n("7a23"),o={class:"com-upload",style:{position:"relative"}},r={id:"myCanvas",class:"canvasDom"},u=["src"];function a(e,t,n,a,i,s){return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",o,[Object(c["createElementVNode"])("canvas",r,[(Object(c["openBlock"])(!0),Object(c["createElementBlock"])(c["Fragment"],null,Object(c["renderList"])(e.spaceList,(function(t,n){return Object(c["openBlock"])(),Object(c["createElementBlock"])("img",{style:Object(c["normalizeStyle"])([{left:t.deviceArr[0].left,top:t.deviceArr[0].top},{position:"absolute",width:"20px",height:"20px","z-index":"999",left:"20px",top:"20px"}]),src:e.parseImgUrl("map-icon","device.svg"),alt:"",key:n},null,12,u)})),128))])])}n("cb29"),n("d81d");var i=n("5530"),s=n("459d"),d=n("d257"),f=Object(c["defineComponent"])({components:{},setup:function(){var e=[],t=Object(c["reactive"])({spaceList:e,parseImgUrl:d["x"],width:100,height:200,initCanvas:function(){var e=document.querySelector("#myCanvas");e.width=t.width,e.height=t.height;var c=e.getContext("2d");c.clearRect(0,0,t.width,t.height),t.spaceList.map((function(e){var t=parseInt(e.left),o=parseInt(e.top),r=[{left:t,top:o},{left:t+e.width,top:o},{left:t+e.width,top:o+e.height},{left:t,top:o+e.height}],u=[{left:t,top:o+5},{left:t+15,top:o+5},{left:t+25,top:o+5}],a=[{left:t+e.width/2,top:o+e.top/2},{left:t+e.width/2+30,top:o+e.top/2+30}];if(e.pointArr=r,e.deviceArr=u,e.logoArr=a,e.canClick)c.lineWidth=1,c.beginPath(),r.map((function(e,t){c.lineTo(e.left,e.top)})),c.fillStyle="#cfefef",c.fill();else{var i=new Image;i.src=n("2b48"),i.onload=function(){c.beginPath(),r.map((function(e,t){0===t?c.moveTo(e.left,e.top):c.lineTo(e.left,e.top)}));var e=c.createPattern(i,"repeat");c.fillStyle=e,c.fill(),c.closePath(),c.strokeStyle="rgba(15, 206, 233, 1)",c.stroke()}}}))},bindEvent:function(){var e=document.querySelector("#myCanvas");function n(n){n.clientX,e.getBoundingClientRect().left,n.clientY,e.getBoundingClientRect().top;t.initCanvas(),alert("点击了!")}e.addEventListener("click",n)},drawIcon:function(e,t,c){var o=new Image;o.src=n("46f5")("./".concat(t)),o.onload=function(){e.drawImage(o,c.left,c.top,20,10)}},getMapInfo:function(){var e={projectId:"Pj1101080259",floorId:"Fl11010802593241ec348ecb4148806b9034c8957454"};Object(s["n"])(e).then((function(e){var n,c=e,o=null!==(n=null===c||void 0===c?void 0:c.data)&&void 0!==n?n:null;t.width=o.width,t.height=o.height,t.spaceList=o.spaceList,t.initCanvas()})).catch((function(){}))}});return Object(c["nextTick"])((function(){t.bindEvent()})),Object(c["onMounted"])((function(){t.getMapInfo()})),Object(i["a"])({},Object(c["toRefs"])(t))}}),b=(n("12fd"),n("6b0d")),p=n.n(b);const j=p()(f,[["render",a],["__scopeId","data-v-3549e434"]]);t["default"]=j},"2b48":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAA3SURBVHgBzcmxDQAgCAVRPxO5ipM6ko0xxkYnQKUHaq654iEZ9bUzMSo8ZLpFxTFPk4dAycXfA1ISQWorFT5NAAAAAElFTkSuQmCC"},"2de2":function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return u}));var c="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",r="/duoduo-service/duoduoenv-service/",u="/duoduo-service/"},"459d":function(e,t,n){"use strict";n.d(t,"h",(function(){return u})),n.d(t,"C",(function(){return a})),n.d(t,"w",(function(){return i})),n.d(t,"o",(function(){return s})),n.d(t,"j",(function(){return d})),n.d(t,"u",(function(){return f})),n.d(t,"k",(function(){return b})),n.d(t,"b",(function(){return p})),n.d(t,"m",(function(){return j})),n.d(t,"O",(function(){return l})),n.d(t,"M",(function(){return v})),n.d(t,"A",(function(){return O})),n.d(t,"p",(function(){return g})),n.d(t,"P",(function(){return m})),n.d(t,"a",(function(){return q})),n.d(t,"g",(function(){return S})),n.d(t,"f",(function(){return A})),n.d(t,"l",(function(){return h})),n.d(t,"n",(function(){return T})),n.d(t,"v",(function(){return y})),n.d(t,"x",(function(){return E})),n.d(t,"E",(function(){return w})),n.d(t,"t",(function(){return k})),n.d(t,"d",(function(){return I})),n.d(t,"B",(function(){return P})),n.d(t,"y",(function(){return C})),n.d(t,"z",(function(){return x})),n.d(t,"I",(function(){return G})),n.d(t,"F",(function(){return B})),n.d(t,"K",(function(){return L})),n.d(t,"i",(function(){return M})),n.d(t,"s",(function(){return U})),n.d(t,"L",(function(){return D})),n.d(t,"D",(function(){return F})),n.d(t,"e",(function(){return R})),n.d(t,"J",(function(){return Q})),n.d(t,"c",(function(){return W})),n.d(t,"G",(function(){return N})),n.d(t,"r",(function(){return z})),n.d(t,"q",(function(){return V})),n.d(t,"H",(function(){return X})),n.d(t,"N",(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["b"],"weather/getCurrent?").concat(e),o["b"].GET,void 0,o["a"].json)},i=function(e){return Object(c["b"])().request("".concat(r["a"],"space/property"),o["b"].POST,e,o["a"].json)},s=function(e){return Object(c["b"])().request("".concat(r["a"],"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["a"],"object/equipment/findForServe?spaceId=").concat(e.spaceId),o["b"].POST,void 0,o["a"].json)},f=function(e){return Object(c["b"])().request("".concat(r["a"],"customScene/queryCustom?spaceId=").concat(e.spaceId),o["b"].GET,void 0,o["a"].json)},b=function(e){return Object(c["b"])().request("".concat(r["a"],"custom/feedback/documents"),o["b"].POST,e,o["a"].json)},p=function(e){return Object(c["b"])().request("".concat(r["a"],"custom/feedbackCreate/v2"),o["b"].POST,e,o["a"].json)},j=function(e){return Object(c["b"])({timeout:1e3}).request("".concat(r["a"],"light/status/query?spaceId=").concat(e.spaceId),o["b"].GET,void 0,o["a"].json)},l=function(e){return Object(c["c"])("".concat(r["a"],"light/onoff/set"),e)},v=function(e){return Object(c["c"])("".concat(r["a"],"object/eqp/infocode/set"),e)},O=function(e){return Object(c["c"])("".concat(r["a"],"light/onoff/setSatus"),e)},g=function(e){return Object(c["b"])().request("".concat(r["a"],"object/objectDataEqpGroup/query"),o["b"].POST,e,o["a"].json)},m=function(e){return Object(c["b"])().request("".concat(r["a"],"meeting/room/scene/switchover"),o["b"].POST,e,o["a"].json)},q=function(e){return Object(c["b"])().request("".concat(r["a"],"customScene/create"),o["b"].POST,e,o["a"].json)},S=function(e){return Object(c["b"])().request("".concat(r["a"],"/spaceAdjust/queryPropertyData?").concat(e),o["b"].GET,void 0,o["a"].json)},A=function(e){return Object(c["b"])().request("".concat(r["b"],"object/building/query"),o["b"].POST,e,o["a"].json)},h=function(e){return Object(c["b"])().request("".concat(r["b"],"object/floor/query"),o["b"].POST,e,o["a"].json)},T=function(e){return Object(c["b"])().request("".concat(r["c"],"map/queryMapInfo"),o["b"].POST,e,o["a"].json)},y=function(e){return Object(c["b"])().request("".concat(r["b"],"object/equipment/querySpaceEquipType?").concat(e),o["b"].GET,void 0,o["a"].json)},E=function(e){return Object(c["b"])().request("".concat(r["b"],"object/space/query"),o["b"].POST,e,o["a"].json)},w=function(e){return Object(c["b"])().request("".concat(r["c"],"permanentSpace/save"),o["b"].POST,e,o["a"].json)},k=function(){return Object(c["b"])().request("".concat(r["c"],"permanentSpace/query"),o["b"].GET,void 0,o["a"].json)},I=function(e){return Object(c["b"])().request("".concat(r["c"],"permanentSpace/delete?").concat(e))},P=function(){return Object(c["b"])().request("".concat(r["c"],"permanentSpace/queryZJ"),o["b"].GET,void 0,o["a"].json)},C=function(){return Object(c["b"])().request("".concat(r["b"],"object/equipment/querySpaceModeSet"),o["b"].GET,void 0,o["a"].json)},x=function(){return Object(c["b"])().request("".concat(r["b"],"object/equipment/querySpaceTempSet"),o["b"].GET,void 0,o["a"].json)},G=function(e){return Object(c["b"])().request("".concat(r["c"],"scene/querySpaceSceneConfig?").concat(e),o["b"].GET,void 0,o["a"].json)},B=function(e){return Object(c["b"])().request("".concat(r["a"],"customScene/queryCustomAndScence?").concat(e),o["b"].GET,void 0,o["a"].json)},L=function(e){return Object(c["c"])("".concat(r["a"],"customScene/saveBatchCustomScene"),e)},M=function(e){return Object(c["b"])().request("".concat(r["c"],"padSpace/getDefaultLocation?").concat(e),o["b"].GET,void 0,o["a"].json)},U=function(e){return Object(c["b"])().request("".concat(r["c"],"padSpace/getPadSpaceList?").concat(e),o["b"].GET,void 0,o["a"].json)},D=function(e){return Object(c["b"])().request("".concat(r["c"],"padSpace/saveWorkSpace"),o["b"].POST,e,o["a"].json)},F=function(e){return Object(c["b"])().request("".concat(r["c"],"padSpace/insertWorkSpace"),o["b"].POST,e,o["a"].json)},R=function(e){return Object(c["b"])().request("".concat(r["c"],"padSpace/deleteWorkSpace"),o["b"].POST,e,o["a"].json)},Q=function(e){return Object(c["b"])().request("".concat(r["c"],"padSpace/queryWorkSpace"),o["b"].POST,e,o["a"].json)},W=function(e){return Object(c["b"])().request("".concat(r["c"],"padSpace/queryWorkSpace"),o["b"].POST,e,o["a"].json)},N=function(e){return Object(c["b"])().request("".concat(r["d"],"wechat-service-duoduoenv/duoduoenv/customerservice/query"),o["b"].POST,e,o["a"].json)},z=function(e){return Object(c["b"])().request("".concat(r["c"],"padLogin/getPadQrCodeStatus?").concat(e),o["b"].GET,void 0,o["a"].json)},V=function(e){return Object(c["b"])().request("".concat(r["c"],"padImage/queryImageByFuncType?").concat(e),o["b"].GET,void 0,o["a"].json)},X=function(e){return Object(c["b"])().request("".concat(r["a"],"ctrl/querySpaceConditioners?").concat(e),o["b"].GET,void 0,o["a"].json)},Y=function(e){return Object(c["c"])("".concat(r["a"],"ctrl/set"),e)}},"46f5":function(e,t,n){var c={"./babyselected.svg":"98fb","./bg_disable.png":"2b48","./coffee.svg":"5ff7","./coffeeselected.svg":"472f","./dev.svg":"56d9","./device.svg":"920e","./deviceroom.svg":"162a","./weather.svg":"8c6e"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(c,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return c[e]}o.keys=function(){return Object.keys(c)},o.resolve=r,e.exports=o,o.id="46f5"},"472f":function(e,t,n){e.exports=n.p+"static/img/coffeeselected.1e7d4057.svg"},"56d9":function(e,t,n){e.exports=n.p+"static/img/dev.941b2e3a.svg"},"5ff7":function(e,t,n){e.exports=n.p+"static/img/coffee.fc03c8ec.svg"},"81d5":function(e,t,n){"use strict";var c=n("7b0b"),o=n("23cb"),r=n("50c4");e.exports=function(e){var t=c(this),n=r(t.length),u=arguments.length,a=o(u>1?arguments[1]:void 0,n),i=u>2?arguments[2]:void 0,s=void 0===i?n:o(i,n);while(s>a)t[a++]=e;return t}},"8c6e":function(e,t,n){e.exports=n.p+"static/img/weather.742cc8c0.svg"},"920e":function(e,t,n){e.exports=n.p+"static/img/device.01480d11.svg"},"98fb":function(e,t,n){e.exports=n.p+"static/img/babyselected.422eb07d.svg"},b2a1:function(e,t,n){},cb29:function(e,t,n){var c=n("23e7"),o=n("81d5"),r=n("44d2");c({target:"Array",proto:!0},{fill:o}),r("fill")}}]); //# sourceMappingURL=chunk-72383b2a.b8887fce.js.map