1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-967b3748"],{"0500":function(e,t,a){var c=a("7a23");let o={id:"map",style:{width:"100%",height:"100%"}},l={class:"space-main",id:"spaceMain"},n=["id","onClick"],i=["src"],r=["src"],s={key:0,style:{"font-size":"12px"}},d={class:"map-toolbar"},p=["src"],m={class:"text-hidden"},u={class:"text-hidden"},g=["onClick"],b=["onClick"],f={style:{width:"100%",height:"100%"}};a("a573");var h=a("d257"),v=a("6c43"),O=a("2849"),j=a("459d");let S={class:"ignore_com-top"},I={class:"page-search content-box ptheader"},y={action:"/"},k={class:"search-box"},C={class:"top"},w=["onClick"],B=["src"],D=["onClick"],x=["src"],N={style:{width:"100%",height:"100%"}};var A=a("341e"),E=a("6c02"),M=a("0613");let V={class:"ignore_com-top"},P={class:"page-search content-box ptheader"},F={class:"search-box"},T=["onClick"],L=["src"];var X=Object(c.defineComponent)({emits:["closeMetting"],props:{projectId:{type:String,default:()=>""}},components:{VanSearch:A.a},setup(e,t){let a=M.a.state.user,o=Object(c.reactive)({parseImgUrl:h.z,spaceName:"",userInfo:a,searchData:[],goBack(){t.emit("closeMetting",null)},triggerSearchSpace(e){t.emit("closeMetting",e)},getSpaceLike(){var e={criteria:{projectId:a.projectId,localName:{$like:`%${o.spaceName}%`}}};Object(j.u)(e).then(e=>{"success"===e.result?o.searchData=null!=(e=null==e?void 0:e.content)?e:[]:o.searchData=[]})}});return Object(c.onBeforeMount)(()=>{o.getSpaceLike()}),{...Object(c.toRefs)(o)}}}),H=(a("b3aa"),a("e4cb"),a("6b0d"));H=a.n(H),X=H()(X,[["render",function(e,t,a,o,l,n){var i=Object(c.resolveComponent)("VanIcon");return Object(c.openBlock)(),Object(c.createElementBlock)(c.Fragment,null,[Object(c.createElementVNode)("div",V,[Object(c.createElementVNode)("div",{class:"header-return",onClick:t[0]||(t[0]=(...t)=>e.goBack&&e.goBack(...t))},[Object(c.createVNode)(i,{name:"arrow-left"})])]),Object(c.createElementVNode)("div",P,[Object(c.createElementVNode)("div",F,[Object(c.createElementVNode)("div",null,[e.searchData&&e.searchData.length?(Object(c.openBlock)(!0),Object(c.createElementBlock)(c.Fragment,{key:0},Object(c.renderList)(e.searchData,t=>(Object(c.openBlock)(),Object(c.createElementBlock)("div",{class:"space-item",onClick:a=>e.triggerSearchSpace(t)},[Object(c.createElementVNode)("img",{src:e.parseImgUrl("search-icon","icon_meetingroom.svg"),alt:""},null,8,L),Object(c.createElementVNode)("p",null,Object(c.toDisplayString)(t.localName),1)],8,T))),256)):Object(c.createCommentVNode)("",!0)])])])],64)}],["__scopeId","data-v-1406cd06"]]),X=Object(c.defineComponent)({emits:["closeSearch"],props:{projectId:{type:String,default:()=>""}},components:{VanSearch:A.a,SpaceMetting:X},setup(e,t){Object(E.d)();let a=M.a.state.user,o=Object(c.reactive)({parseImgUrl:h.z,showMetting:!1,spaceName:"",userInfo:a,searchData:[],historySearchData:[],goBack(){t.emit("closeSearch",null)},closeMetting(e){o.showMetting=!1,t.emit("closeSearch",e)},onSearch(){o.spaceName&&o.getSpaceLike()},onCancel(){o.searchData=[],o.getHistorySearch()},clearHistorySearch(){o.historySearchData=[]},getHistorySearch(){o.historySearchData=Object(h.k)()},triggerSearchSpace(e){Object(h.B)(e),t.emit("closeSearch",e)},getSpaceLike(){var e={criteria:{projectId:a.projectId,localName:{$like:`%${o.spaceName}%`}}};Object(j.u)(e).then(e=>{"success"===e.result?o.searchData=null!=(e=null==e?void 0:e.content)?e:[]:o.searchData=[]})},goMetting(){o.showMetting=!0}});return Object(c.onMounted)(()=>{o.historySearchData=Object(h.k)()}),{...Object(c.toRefs)(o)}}}),a("3dfb"),a("fcad"),X=H()(X,[["render",function(e,t,a,o,l,n){var i=Object(c.resolveComponent)("VanIcon"),r=Object(c.resolveComponent)("van-search");let s=Object(c.resolveComponent)("space-metting");var d=Object(c.resolveComponent)("van-popup");return Object(c.openBlock)(),Object(c.createElementBlock)(c.Fragment,null,[Object(c.createElementVNode)("div",S,[Object(c.createElementVNode)("div",{class:"header-return",onClick:t[0]||(t[0]=(...t)=>e.goBack&&e.goBack(...t))},[Object(c.createVNode)(i,{name:"arrow-left"})])]),Object(c.createElementVNode)("div",I,[Object(c.createElementVNode)("form",y,[Object(c.createVNode)(r,{modelValue:e.spaceName,"onUpdate:modelValue":[t[1]||(t[1]=t=>e.spaceName=t),e.onSearch],onFocus:e.clearHistorySearch,onBlur:e.getHistorySearch,onClear:e.onCancel,placeholder:"输入地点"},null,8,["modelValue","onUpdate:modelValue","onFocus","onBlur","onClear"])]),Object(c.createElementVNode)("div",k,[Object(c.createElementVNode)("div",C,[t[4]||(t[4]=Object(c.createElementVNode)("div",null,"最近查找",-1)),Object(c.createElementVNode)("div",null,[Object(c.createElementVNode)("span",{onClick:t[2]||(t[2]=(...t)=>e.goMetting&&e.goMetting(...t))},"查看所有会议室")])]),e.searchData&&e.searchData.length?(Object(c.openBlock)(!0),Object(c.createElementBlock)(c.Fragment,{key:0},Object(c.renderList)(e.searchData,t=>(Object(c.openBlock)(),Object(c.createElementBlock)("div",{class:"space-item",onClick:a=>e.triggerSearchSpace(t)},[Object(c.createElementVNode)("img",{src:e.parseImgUrl("search-icon","icon_location.svg"),alt:""},null,8,B),Object(c.createElementVNode)("p",null,Object(c.toDisplayString)(t.localName),1)],8,w))),256)):(Object(c.openBlock)(!0),Object(c.createElementBlock)(c.Fragment,{key:1},Object(c.renderList)(e.historySearchData,t=>(Object(c.openBlock)(),Object(c.createElementBlock)("div",{class:"space-item",onClick:a=>e.triggerSearchSpace(t)},[Object(c.createElementVNode)("img",{src:e.parseImgUrl("search-icon","icon_location.svg"),alt:""},null,8,x),Object(c.createElementVNode)("p",null,Object(c.toDisplayString)(t.localName),1)],8,D))),256))])]),Object(c.createVNode)(d,{show:e.showMetting,"onUpdate:show":t[3]||(t[3]=t=>e.showMetting=t),teleport:"body",class:"buiding-box",style:{width:"100%",height:"100%"},position:"right"},{default:Object(c.withCtx)(()=>[Object(c.createElementVNode)("div",N,[Object(c.createVNode)(s,{onCloseMetting:e.closeMetting},null,8,["onCloseMetting"])])]),_:1},8,["show"])],64)}],["__scopeId","data-v-44b481c8"]]);let Y={id:"myCanvas",class:"canvas-dom"};a("14d9");var R=a("6a79");A=Object(c.defineComponent)({props:{mapData:{type:Object,default:()=>{}}},components:{VanSearch:A.a},setup(e,t){let o=Object(c.reactive)({mapData:e.mapData,iconData:[],parseImgUrl:h.z,canvasImageArr:{},ctx:{},setSpaceIcon(e){var t;e.canClick?(t=Object(R.a)(e.roomFuncType),e.icon=R.c[t].icon,e.selectIcon=R.c[t].selectIcon,e.backgroundColor=R.c[t].backgroundColor,e.bg=R.c[t].bg,e.icon=Object(h.z)("map-new-icon",e.icon),e.selectIcon=Object(h.z)("map-new-icon",e.selectIcon)):e.icon=""},scaleCanvas(e){o.mapData=e,document.querySelectorAll(".load-icon"),o.canvasImageArr={},o.initCanvas(1)},initCanvas(e=0){var t=document.querySelector("#myCanvas");let c=t.getContext("2d");o.ctx=c,o.drawDpiBegin(t,c,o.mapData.width,o.mapData.height,e),(o.mapData&&o.mapData.spaceList||[]).map(t=>{if(t.canClick){var l=t.circlePointArr;c.beginPath(),c.fillStyle=t.fillColor;let e=[],a=[];t.pointArr.map((t,o)=>{t.left=t.left,t.top=t.top,0==o?c.moveTo(t.left,t.top):c.lineTo(t.left,t.top),e.push(t.left),a.push(t.top)}),c.fill(),c.closePath(),c.beginPath(),l&&l.length&&(c.fillStyle=t.fillColor,c.lineTo(l[3].left,l[3].top),c.bezierCurveTo(l[2].left,l[2].top,l[1].left,l[1].top,l[0].left,l[0].top)),c.fill(),c.closePath(),o.MaxAndMin(e)[1],o.MaxAndMin(e)[0],o.MaxAndMin(a)[1],o.MaxAndMin(a)[0],c.beginPath(),c.font="12px serif",c.textAlign="center",c.fillStyle="#fff"===t.fillColor?"#000":"#8995BA",l=t.localName,l&&t.localName.length,c.fillText(t.localName,t.logoPointArr[0].left,t.logoPointArr[0].top,50),t.icon&&o.addIcon(t,1,{left:t.logoPointArr[0].left-25+15,top:+t.logoPointArr[0].top+5}),c.closePath()}else{c.beginPath();let o=new Image;o.src=a("2b48"),0==e?o.onload=function(){t.pointArr.map((e,t)=>{0===t?c.moveTo(e.left,e.top):c.lineTo(e.left,e.top)});var e=c.createPattern(o,"repeat");c.fillStyle=e,c.fill(),c.closePath(),c.lineWidth=2,c.strokeStyle="#DFE3ED",c.stroke()}:(t.pointArr.map((e,t)=>{0===t?c.moveTo(e.left,e.top):c.lineTo(e.left,e.top)}),l=c.createPattern(o,"repeat"),c.fillStyle=l,c.fill(),c.closePath(),c.lineWidth=2,c.strokeStyle="#DFE3ED",c.stroke())}}),o.drawIcon(c,e),o.drawDpiEnd(t,c)},MaxAndMin(e){return[Math.min.apply(null,e),Math.max.apply(null,e)]},bindEvent(){document.querySelector("#myCanvas").addEventListener("click",o.detect)},drawDpiBegin(e,t,a,c,o=0){t.save(),t.clearRect(0,0,a,c);var l=window.devicePixelRatio;e.setAttribute("width",a*l),e.setAttribute("height",c*l),e.style.width=a+"px",e.style.height=c+"px",t.scale(l,l)},drawDpiEnd(e,t){t.restore()},detect(e){var a=document.querySelector("#myCanvas");let c=e.clientX-a.getBoundingClientRect().left,l=e.clientY-a.getBoundingClientRect().top;var n=o.mapData&&o.mapData.spaceList||[];for(let d=0;d<n.length;d++){var i=n[d],r=i.devicePointArr,s=i.pointArr;let e=!1;if(r.map((t,a)=>{c>=t.left&&c<=t.left+20&&l>=t.top&&l<t.top+20&&(e=!0)}),e)break;if(r={x:c,y:l},s.map(e=>{e.x=e.left,e.y=e.top}),r=o.queryPtInPolygon(r,s),r){t.emit("checkSpace",i);break}}},queryPtInPolygon(e,t){var a,c;let o="",l="",n=(c={x:1e12,y:(a=e).y},0);for(let s=0;s<t.length-1;s++)o=t[s],l=t[s+1],1==i(a,c,o,l)&&n++;return o=t[t.length-1],l=t[0],1==i(a,c,o,l)&&n++,n%2!=0;function i(e,t,a,c){var o={x:e.x-a.x,y:e.y-a.y},l={x:t.x-a.x,y:t.y-a.y},n=r(o,i={x:c.x-a.x,y:c.y-a.y})*r(l,i),i=(o={x:a.x-e.x,y:a.y-e.y},l={x:c.x-e.x,y:c.y-e.y},{x:t.x-e.x,y:t.y-e.y});return n<=0&&r(o,i)*r(l,i)<=0}function r(e,t){return e.x*t.y-e.y*t.x}},loadAllImages(e){return Promise.all((e=>{var t=[];for(let a=0,c=e.length;a<c;a++)t.push((e=>{let t=new Image;return t.src=e,t.setAttribute("crossOrigin","Anonymous"),new Promise((e,a)=>{t.onload=function(){e(t)}})})(e[a]));return t})(e))},addIcon(e,t,a){t=e.spaceId+""+t,o.canvasImageArr[t]?o.canvasImageArr[t].iconPerstion=a:(e={url:e.icon,iconPerstion:a},o.canvasImageArr[t]=e)},drawIcon(e,t=0){var a,c=o.canvasImageArr,l=[];let n=[];for(a in c){var i=c[a];l.push(i.url),n.push(i.iconPerstion)}0==t?o.loadAllImages(l).then(t=>{(o.iconData=t).map((t,a)=>{a=n[a],a.width=25,a.height=15,e.drawImage(t,a.left,a.top,a.width,a.height)})}):o.iconData.map((t,a)=>{a=n[a],a.width=25,a.height=15,e.drawImage(t,a.left,a.top,a.width,a.height)})},init(e){o.mapData=e,o.initCanvas(),o.bindEvent()}});return Object(c.onMounted)(()=>{}),{...Object(c.toRefs)(o)}}}),a("8c22"),A=H()(A,[["render",function(e,t,a,o,l,n){return Object(c.openBlock)(),Object(c.createElementBlock)("canvas",Y)}],["__scopeId","data-v-74cb39ba"]]),X=Object(c.defineComponent)({props:{projectId:{type:String,default:()=>""},spaceData:{type:Array,default:()=>[]},spaceInfo:{type:Object,default:()=>{}},isSetSpace:{type:Boolean,default:()=>!1},floorId:{type:String,default:()=>""},buildingId:{type:String,default:()=>""},mapType:{type:Number,default:()=>1}},components:{SpaceSearch:X,CanvasBox:A},setup(e,t){Object(E.d)();var a={};let o=window.document;var l={screenWidth:o.body.clientWidth,screenHeight:o.body.clientHeight};let n=Object(c.ref)(null),i=Object(c.reactive)({parseImgUrl:h.z,mapType:e.mapType,spaceInfo:null,isSetSpace:e.isSetSpace,widthMapScale:1,tempScale:.8,comMapScale:.8,heightScale:1,showSearch:!1,isSetSearchSpace:!1,showBuilding:!1,showFloor:!1,buildingItem:{buildingId:"",localName:""},floorData:[],floorItem:{},buildingData:[],mapData:a,copyMapDaata:a,selectArea:{},displacement:{scale:1,pageX:0,pageX2:0,originScale:0,moveable:!1},screenInfo:l,transformData:{},clearPreStyle(){var e=o.querySelector("#map");e.scrollLeft=0,e.scrollTop=0,e=o.querySelector("#spaceMain");i.displacement.scale=1,e&&(e.style.left="0px",e.style.top="0px")},swipe(e,t){let a,c,o=!1,l=0,n=0,r=0,s=0;function d(){}let p={swipeLeft:d,swipeRight:d,swipeDown:d,swipeUp:d,drag:d};Object.assign(p,t),e.addEventListener("touchstart",(function(t){l=t.touches[0].pageX,n=t.touches[0].pageY,r=l-e.offsetLeft,s=n-e.offsetTop}),{passive:!0}),e.addEventListener("touchmove",(function(t){var d;i.displacement.moveable||(o=!0,a=t.touches[0].pageX,c=t.touches[0].pageY,t.mation={startX:l,startY:n,moveX:a,moveY:c,disX:r,disY:s},p.drag.call(e,t),o&&(d=Math.abs(a-l),(Math.abs(c-n)<d?0<a-l?p.swipeRight:p.swipeLeft:0<c-l?p.swipeDown:p.swipeUp).call(e,t)))}),{passive:!0}),e.addEventListener("touchend",(function(e){o=!1}))},mapScroll(){let e=o.querySelector("#spaceMain");var t=o.querySelector("#houseDes");let a=t?t.offsetHeight:0;i.swipe(e,{swipeLeft:function(t){i.displacement.moveable||e.offsetWidth<i.screenInfo.screenWidth||(e.offsetWidth-Math.abs(t.touches[0].pageX-t.mation.disX)<i.screenInfo.screenWidth?e.style.left=-(e.offsetWidth-i.screenInfo.screenWidth)+"px":e.style.left=t.touches[0].pageX-t.mation.disX+"px")},swipeRight:function(t){i.displacement.moveable||e.offsetWidth<i.screenInfo.screenWidth||(0<t.touches[0].pageX-t.mation.disX?e.style.left="0px":e.style.left=t.touches[0].pageX-t.mation.disX+"px")},swipeDown:function(t){var c;i.displacement.moveable||(c=i.screenInfo.screenHeight-a-20,e.offsetHeight<c||0<t.touches[0].pageY-t.mation.disY?e.style.top="0px":e.style.top=t.touches[0].pageY-t.mation.disY+"px")},swipeUp:function(t){var a,c,l;i.displacement.moveable||(a=(a=o.querySelector("#houseDes"))?a.offsetHeight:0,a=i.screenInfo.screenHeight-a-20,c=e.offsetHeight,l=t.touches[0].pageY-t.mation.disY,c<a?e.style.top="0px":c-Math.abs(l)<a/2?e.style.top=-(c-a/2)+"px":e.style.top=t.touches[0].pageY-t.mation.disY+"px")},drag:function(e){}})},closeSearch(e){i.showSearch=!1,e?(i.isSetSearchSpace=!0,i.loadingStart(),e={buildingId:e.buildingId,buildingName:"",floorId:e.floorId,floorName:"",spaceId:e.id},i.init(e)):i.isSetSearchSpace=!1},goSearch(){i.showSearch=!0},setSelectSpacePosition(e){setTimeout(()=>{i.setScrollLeft(e),i.scrollTop(e)})},setScrollLeft(e){var t=o.querySelector("#spaceMain");let a=0;0<(a=e.left+e.width>=i.screenInfo.screenWidth/2?~(a=e.left-i.screenInfo.screenWidth/2+e.width/2):0)&&(a=0),Math.abs(a)>t.offsetWidth-i.screenInfo.screenWidth&&(a=-(t.offsetWidth-i.screenInfo.screenWidth)),t.style.left=a+"px"},scrollTop(e){o.querySelector("#map");var t=o.querySelector("#spaceMain"),a=o.querySelector("#houseDes");a=a?a.offsetHeight:0;let c=0;0<(c=~(c=e.top+e.width>(i.screenInfo.screenHeight-a-20)/2?e.top-(i.screenInfo.screenHeight-a)/2+e.height/2:0))&&(c=0),t.style.top=c+"px"},checkSpace(e){e.disabled?Object(v.a)("该空间和平板没绑定,暂不支持查看"):(i.isSetSearchSpace=!1,e&&e.canClick?(1==i.mapType&&i.setSelectSpacePosition(e),i.selectArea=e,i.selectArea.buildingId=i.buildingItem.buildingId,i.setLocalSpaceInfo(),t.emit("changeSpace",i.selectArea)):Object(v.a)("不可选区域"))},comfirSetSpace(a){(a.spaceId===e.spaceInfo.spaceId?O.a.confirm({title:"取消常驻空间",confirmButtonColor:"#000000",cancelButtonColor:"#4D5262",message:"\n 是否取消常驻空间设置 ? "}).then(()=>{t.emit("delPermanentSpace")}):O.a.confirm({title:"设置常驻空间",confirmButtonColor:"#000000",cancelButtonColor:"#4D5262",message:`是否将常驻空间设置为${a.localName}?`}).then(()=>{i.selectArea=a,t.emit("changeSpaceId",i.selectArea.spaceId)})).catch(()=>{})},setLocalSpaceInfo(){Object(h.x)(i.buildingItem.buildingId,i.floorItem.id,i.selectArea.spaceId);var e={buildingId:i.buildingItem.buildingId,buildingName:i.buildingItem.localName,floorId:i.floorItem.id,floorName:i.floorItem.localName,spaceId:i.selectArea.spaceId};Object(h.A)(e)},getDistance(e,t){return Math.hypot(t.x-e.x,t.y-e.y)},formateMapData(){var t=e.spaceData,a=i.mapData;if(a){i.setSpaceScale(),i.setTempScale(),a.width<3e3&&(i.comMapScale=.8),"Pj1101020007"==e.projectId&&(i.comMapScale=1.5),a.width=a.width*i.comMapScale,a.height=a.height*i.comMapScale;var c,o=null!=(c=null==a?void 0:a.spaceList)?c:[];for(let a=0;a<o.length;a++){var l=o[a];l.width=l.width*i.comMapScale,l.height=l.height*i.comMapScale,l.top=l.top*i.comMapScale,l.rotate=+l.rotate+"deg","Pj1101020007"==e.projectId?l.left=(l.left-120)*i.comMapScale:l.left=l.left*i.comMapScale,l.borderRadius=l.borderRadius?JSON.parse(l.borderRadius):"";let c=!0;for(let e=0;e<t.length;e++)if(l.spaceId===t[e].spaceId){c=!1;break}c&&(l.disabled=!0),i.setSpaceIcon(l)}i.copyMapDaata=JSON.parse(JSON.stringify(a))}},formateSpecialMapData(){var e=i.mapData;e&&(e.width=e.width*i.comMapScale,e.height=e.height*i.comMapScale,(e.spaceList||[]).map(e=>{var t=e.remark;t&&(t=JSON.parse(t),e.roomFuncType="300",e.fillColor="#fff",e.canClick=t.canClick,e.localName=t.localName,e.pointArr=t.pointArr,e.logoPointArr=t.logoPointArr,e.circlePointArr=t.circlePointArr,e.detailPointArr=t.detailPointArr,e.devicePointArr=t.devicePointArr,i.setSpaceIcon(e),e.pointArr.map(e=>{e.left=e.left*i.comMapScale,e.top=e.top*i.comMapScale}),e.logoPointArr.map(e=>{e.left=e.left*i.comMapScale,e.top=(+e.top-15)*i.comMapScale}),e.circlePointArr.map(e=>{e.left=e.left*i.comMapScale,e.top=e.top*i.comMapScale}))}),i.copyMapDaata=JSON.parse(JSON.stringify(e)))},formateSpecialMapScale(e){var t=JSON.parse(JSON.stringify(i.copyMapDaata));t&&(t.width=t.width*e,t.height=t.height*e,(t.spaceList||[]).map(t=>{t.pointArr.map(t=>{t.left=t.left*e,t.top=t.top*e}),t.logoPointArr.map(t=>{t.left=t.left*e,t.top=t.top*e}),t.circlePointArr.map(t=>{t.left=t.left*e,t.top=t.top*e})}),i.mapData=t)},setSpaceScale(){var e,t=i.mapData;t&&(t=null!=(t=null==t?void 0:t.spaceList)?t:[],e=(e=(e=Math.min.apply(null,t.map(e=>e.height)))<(t=Math.min.apply(null,t.map(e=>e.width)))?e:t)||30,i.comMapScale=30/e)},setTempScale(){var e,t;i.tempScale=.4,i.mapData&&(t=i.mapData.width,(e=i.mapData.height)<t?(t=Math.ceil(t/i.screenInfo.screenWidth),i.tempScale=t<10?.4:t<20?.3:.25):(t=Math.ceil(e/i.screenInfo.screenHeight),i.tempScale=t<10?.4:t<20?.3:.25))},setMapBoxStyle(e=0){var t=o.querySelector("#spaceMain");i.mapData&&i.mapData.width&&(t.style.width=i.mapData.width+"px",t.style.height=i.mapData.height+"px"),2==i.mapType&&(0==e?n.value.init(i.mapData):n.value.scaleCanvas(i.mapData))},setSpaceIcon(e){var t;e.canClick?(t=Object(R.a)(e.roomFuncType),e.icon=R.c[t].icon,e.selectIcon=R.c[t].selectIcon,e.backgroundColor=R.c[t].backgroundColor,e.bg=R.c[t].bg,e.icon=Object(h.z)("map-new-icon",e.icon),e.selectIcon=Object(h.z)("map-new-icon",e.selectIcon)):e.icon=""},midpoint(e,t,a,c){return[e+(a-e)/2,t+(c-t)/2]},updateMapStyle(){if(1==i.mapType){var e=JSON.parse(JSON.stringify(i.copyMapDaata));if(e){var t,a=null!=(t=null==e?void 0:e.spaceList)?t:[];e.width=e.width*i.displacement.scale,e.height=e.height*i.displacement.scale;for(let e=0;e<a.length;e++){var c=a[e];c.width=c.width*i.displacement.scale,c.height=c.height*i.displacement.scale,c.top=c.top*i.displacement.scale,c.left=c.left*i.displacement.scale}i.mapData=e}}else i.formateSpecialMapScale(i.displacement.scale);i.setMapBoxStyle(1)},updateMapPositon(e,t){let a=i.displacement.scaleCenter[0]-i.displacement.scaleCenter[0]*i.displacement.scale,c=i.displacement.scaleCenter[1]-i.displacement.scaleCenter[1]*i.displacement.scale;0<e&&i.displacement.scale<1&&(0<a&&(a=~a),0<c)&&(c=~c),e=i.displacement.top*i.displacement.scale+c;let o=i.displacement.left*i.displacement.scale+a;0<(o=t.offsetWidth<i.screenInfo.screenWidth?0:o)?t.style.left="0px":t.style.left=o+"px",t.offsetHeight<i.screenInfo.screenHeight?t.style.top=0:t.style.top=0<e?0:e+"px"},mapScale(){let e=o.querySelector("#spaceMain");e.addEventListener("touchstart",(function(t){t=t.touches;var a,c,o=t[0];t=t[1];i.displacement.pageX=o.pageX,i.displacement.pageY=o.pageY,i.displacement.moveable=!0,i.displacement.originScale=i.displacement.scale||1,t?(i.displacement.pageX2=t.pageX,i.displacement.pageY2=t.pageY,a=isNaN(parseInt(e.style.left))?0:parseInt(e.style.left),c=isNaN(parseInt(e.style.top))?0:parseInt(e.style.top),i.displacement.center=i.midpoint(o.pageX,o.pageY,t.pageX,t.pageY),i.displacement.left=a/i.displacement.scale,i.displacement.top=c/i.displacement.scale,i.displacement.scaleCenter=[i.displacement.center[0]/i.displacement.scale,i.displacement.center[1]/i.displacement.scale],i.displacement.scaleTranslateProportion=[i.displacement.scaleCenter[0]/(e.offsetWidth/i.displacement.scale),i.displacement.scaleCenter[1]/(e.offsetHeight/i.displacement.scale)],i.displacement.oldSize=[e.offsetWidth/i.displacement.scale,e.offsetHeight/i.displacement.scale]):i.displacement.moveable=!1}),{passive:!0}),e.addEventListener("touchmove",(function(t){if(i.displacement.moveable){t=t.touches;var a=t[0];t=t[1];if(t){i.displacement.pageX2||(i.displacement.pageX2=t.pageX),i.displacement.pageY2||(i.displacement.pageY2=t.pageY),a=i.getDistance({x:a.pageX,y:a.pageY},{x:t.pageX,y:t.pageY})/i.getDistance({x:i.displacement.pageX,y:i.displacement.pageY},{x:i.displacement.pageX2,y:i.displacement.pageY2});let c=i.displacement.originScale*a;t=(c=1.5<(c=c<i.tempScale?i.tempScale:c)?1.5:c)-i.displacement.scale,i.displacement.scale=c,0!=t&&(i.updateMapPositon(t,e),i.updateMapStyle())}}}),{passive:!0}),e.addEventListener("touchend",(function(){i.displacement.moveable=!0}))},getBuildingList(){var t={criteria:{projectId:e.projectId},orders:[{asc:!0,column:"localId"}]};Object(j.e)(t).then(e=>{"success"===e.result&&(e=null!=(e=null==e?void 0:e.content)?e:[],i.buildingData=e,i.setBuildingName())})},checkBuilding(){i.showBuilding=!0},checkFloor(){i.showFloor=!0},comfirmFloor(e,t=!0){"4555556"==e?(i.floorItem={id:"4555556"},i.mapType=2):(i.floorItem=e,i.mapType=1),i.showFloor=!1,i.loadingStart(),i.getMapInfo(t),Object(h.w)(i.buildingItem.buildingId,i.floorItem.id)},comfirmBuilding(e){i.showBuilding=!1,i.buildingItem.buildingId=e.id,i.buildingItem.localName=e.localName,i.loadingStart(),i.getFloorList()},loadingStart(){v.a.loading({duration:0,forbidClick:!0,message:"加载中..."})},loadinngEnd(){v.a.clear()},getFloorList(t=!0){var a;i.buildingItem.buildingId&&(a={criteria:{projectId:e.projectId,buildingId:i.buildingItem.buildingId},orders:[{asc:!0,column:"localId"}]},Object(j.j)(a).then(e=>{var a=e;"success"===e.result?(i.floorData=null!=(e=null==a?void 0:a.content)?e:[],i.setFloorName()):i.floorData=[],t&&i.floorData.length&&(i.getHistorySelectFloor(),i.getMapInfo()),i.loadinngEnd()}).catch(()=>{i.loadinngEnd()}))},getMapInfo(t=0,a=null){var o={projectId:e.projectId,floorId:i.floorItem.id};Object(j.l)(o).then(e=>{"success"===e.result&&(i.mapData=null!=(e=null==e?void 0:e.data)?e:null,i.clearPreStyle(),2===i.mapType?i.formateSpecialMapData():i.formateMapData(),a&&(e=i.getFirstSelectSpace(a))&&(i.selectArea=e),i.setSelectSpacePosition(i.selectArea),Object(c.nextTick)(()=>{i.setMapBoxStyle(),i.mapScale(),i.mapScroll()}))}).catch(()=>{i.loadinngEnd()})},getHistorySelectFloor(){var e=Object(h.l)();let t=!1,a=e[i.buildingItem.buildingId];i.floorData.map(e=>{e.id===a&&(t=!0,i.floorItem=e)}),t||(i.floorItem=i.floorData[0])},getHistorySpace(){var e=i.mapData,t=Object(h.r)();if(e){let c,o=!1;var a=null!=(c=null==e?void 0:e.spaceList)?c:[];let l=t[i.buildingItem.buildingId+","+i.floorItem.id];if(l&&a.map(e=>{l===e.spaceId&&(i.selectArea=e,o=!0)}),!o)for(let e=0;e<a.length;e++)if(a[e].canClick){i.selectArea=a[e];break}}},getFirstSelectSpace(e){let t=null;var a=i.mapData;if(a&&e){var c=null!=(a=null==a?void 0:a.spaceList)?a:[];for(let a=0;a<c.length;a++)if(c[a].spaceId===e.spaceId){t=c[a];break}}return t},setDefaultSpace(e){e&&(i.buildingItem.buildingId=e.buildingId,i.buildingItem.localName=e.buildingName||"",i.floorItem={id:e.floorId,localName:e.floorName||""})},init(e){e&&i.setDefaultSpace(e),i.getBuildingList(),i.getFloorList(!1),i.getMapInfo(!1,e)},setBuildingName(){i.buildingItem.buildingId?i.buildingData.map(e=>{e.id===i.buildingItem.buildingId&&(i.buildingItem.localName=e.localName)}):i.buildingItem={buildingId:i.buildingData[0].id,localName:i.buildingData[0].localName}},setFloorName(){i.floorItem.id?i.floorData.map(e=>{e.id===i.floorItem.id&&(i.floorItem.localName=e.localName)}):i.floorItem=i.floorData[0]}});return Object(c.watch)(e,e=>{},{deep:!1,immediate:!0}),Object(c.onMounted)(()=>{i.spaceInfo=e.spaceInfo,i.buildingItem.buildingId=e.buildingId,i.floorItem.id=e.floorId,i.spaceInfo.buildingId=e.buildingId,i.spaceInfo.floorId=e.floorId,i.selectArea.spaceId=e.spaceInfo.spaceId,i.init(i.spaceInfo)}),{canvasRef:n,...Object(c.toRefs)(i)}}});a("e108"),t.a=H()(X,[["render",function(e,t,a,h,v,O){var j=Object(c.resolveComponent)("canvas-box"),S=Object(c.resolveComponent)("van-popup");let I=Object(c.resolveComponent)("space-search");return Object(c.openBlock)(),Object(c.createElementBlock)("div",o,[Object(c.createElementVNode)("div",l,[1==e.mapType?(Object(c.openBlock)(!0),Object(c.createElementBlock)(c.Fragment,{key:0},Object(c.renderList)(e.mapData.spaceList,(t,a)=>(Object(c.openBlock)(),Object(c.createElementBlock)("div",{class:"space-box",style:Object(c.normalizeStyle)({width:t.width+"px",height:t.height+"px",top:t.top+"px",left:t.left+"px",transform:"rotate("+t.rotate+")",borderRadius:t.borderRadius[0]+"px "+t.borderRadius[1]+"px "+t.borderRadius[2]+"px "+t.borderRadius[3]+"px"}),key:"map"+a},[Object(c.createElementVNode)("div",{class:Object(c.normalizeClass)(["space",[t.canClick?"":"click-disable",e.selectArea.spaceId===t.spaceId?t.disabled?"select-disable":"select":"",e.isSetSpace?"use-select":"",t.disabled?"space-disable-box":"space-box-bg"]]),id:"space"+t.id,onClick:Object(c.withModifiers)(a=>e.checkSpace(t),["stop"]),style:Object(c.normalizeStyle)({backgroundColor:t.backgroundColor||""})},[Object(c.withDirectives)(Object(c.createElementVNode)("div",{class:Object(c.normalizeClass)(["device",e.selectArea.spaceId===t.spaceId?"select-device":""])},[e.selectArea.spaceId!==t.spaceId&&t.icon?(Object(c.openBlock)(),Object(c.createElementBlock)("img",{key:0,src:t.icon},null,8,i)):(Object(c.openBlock)(),Object(c.createElementBlock)("img",{key:1,src:t.selectIcon,class:"select-icon",alt:""},null,8,r)),t.localName?(Object(c.openBlock)(),Object(c.createElementBlock)(c.Fragment,{key:2},[80<t.height&&12*t.localName.length<t.width||e.selectArea.spaceId===t.spaceId?(Object(c.openBlock)(),Object(c.createElementBlock)("span",s,Object(c.toDisplayString)(t.localName),1)):Object(c.createCommentVNode)("",!0)],64)):Object(c.createCommentVNode)("",!0)],2),[[c.vShow,24<t.width*e.displacement.scale&&24<t.height*e.displacement.scale]])],14,n)],4))),128)):(Object(c.openBlock)(),Object(c.createBlock)(j,{key:1,class:"canvasBox",ref:"canvasRef",mapData:e.mapData,onCheckSpace:e.checkSpace},null,8,["mapData","onCheckSpace"]))]),Object(c.createElementVNode)("div",d,[Object(c.createElementVNode)("img",{src:e.parseImgUrl("map-icon","icon-search-big.svg"),onClick:t[0]||(t[0]=Object(c.withModifiers)((...t)=>e.goSearch&&e.goSearch(...t),["stop"])),class:"icon-search",alt:""},null,8,p),Object(c.createElementVNode)("div",{class:"toolbar-item",onClick:t[1]||(t[1]=Object(c.withModifiers)((...t)=>e.checkFloor&&e.checkFloor(...t),["stop"]))},[Object(c.createElementVNode)("span",m,Object(c.toDisplayString)(e.floorItem.localName),1)]),Object(c.createElementVNode)("div",{class:"toolbar-item",onClick:t[2]||(t[2]=Object(c.withModifiers)((...t)=>e.checkBuilding&&e.checkBuilding(...t),["stop"]))},[Object(c.createElementVNode)("span",u,Object(c.toDisplayString)(e.buildingItem.localName),1)])]),Object(c.createVNode)(S,{show:e.showBuilding,"onUpdate:show":t[3]||(t[3]=t=>e.showBuilding=t),teleport:"body",class:"buiding-box",style:{width:"40%",height:"100%",padding:"20px"},position:"right"},{default:Object(c.withCtx)(()=>[(Object(c.openBlock)(!0),Object(c.createElementBlock)(c.Fragment,null,Object(c.renderList)(e.buildingData,t=>(Object(c.openBlock)(),Object(c.createElementBlock)("div",{class:Object(c.normalizeClass)(["buiding-item",e.buildingItem.buildingId===t.id?"active":""]),key:t.id+"X",onClick:Object(c.withModifiers)(a=>e.comfirmBuilding(t),["stop"])},Object(c.toDisplayString)(t.localName),11,g))),128))]),_:1},8,["show"]),Object(c.createVNode)(S,{show:e.showFloor,"onUpdate:show":t[4]||(t[4]=t=>e.showFloor=t),teleport:"body",class:"buiding-box",style:{width:"40%",height:"100%",padding:"20px"},position:"right"},{default:Object(c.withCtx)(()=>[(Object(c.openBlock)(!0),Object(c.createElementBlock)(c.Fragment,null,Object(c.renderList)(e.floorData,t=>(Object(c.openBlock)(),Object(c.createElementBlock)("div",{class:Object(c.normalizeClass)(["buiding-item",e.floorItem.id===t.id?"active":""]),key:t.id,onClick:Object(c.withModifiers)(a=>e.comfirmFloor(t),["stop"])},Object(c.toDisplayString)(t.localName),11,b))),128))]),_:1},8,["show"]),Object(c.createVNode)(S,{show:e.showSearch,"onUpdate:show":t[5]||(t[5]=t=>e.showSearch=t),teleport:"body",class:"buiding-box",style:{width:"100%",height:"100%"},position:"right"},{default:Object(c.withCtx)(()=>[Object(c.createElementVNode)("div",f,[Object(c.createVNode)(I,{onCloseSearch:e.closeSearch},null,8,["onCloseSearch"])])]),_:1},8,["show"])])}],["__scopeId","data-v-4cb6d436"]])},2849:function(e,t,a){a.d(t,"a",(function(){return V}));var c=a("7a23"),o=a("fa7c"),l=(t=a("23f9"),a("6872")),n=a("1fba"),i=a("e5f6"),r=a("9b55"),s=a("b75f"),d=a("d243"),p=a("5aa0"),m=a("eec6"),u=a("5f24"),g=a("2e1b"),b=a("450f"),f=a("ee0b");function h(e,t){let a=((e,t)=>{let a=Object(c.ref)(),o=()=>{a.value=Object(b.useRect)(e).height};return Object(c.onMounted)(()=>{if(Object(c.nextTick)(o),t)for(let e=1;e<=3;e++)setTimeout(o,100*e)}),Object(f.b)(()=>Object(c.nextTick)(o)),a})(e,!0);return e=>Object(c.createVNode)("div",{class:t("placeholder"),style:{height:a.value?a.value+"px":void 0}},[e()])}let[v,O]=Object(n.a)("action-bar"),j=Symbol(v);var S={placeholder:Boolean,safeAreaInsetBottom:i.g};S=Object(c.defineComponent)({name:v,props:S,setup(e,{slots:t}){let a=Object(c.ref)(),o=h(a,O);var l=Object(b.useChildren)(j).linkChildren;l();let n=()=>{var o;return Object(c.createVNode)("div",{ref:a,class:[O(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==(o=t.default)?void 0:o.call(t)])};return()=>e.placeholder?o(n):n()}});let I=Object(t.a)(S);var y=a("efd9"),k=a("4e5e");let[C,w]=Object(n.a)("action-bar-button");S=Object(o.a)({},k.b,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),a=Object(c.defineComponent)({name:C,props:S,setup(e,{slots:t}){let a=Object(k.c)(),{parent:o,index:l}=Object(b.useParent)(j),n=Object(c.computed)(()=>{var e;if(o)return!((e=o.children[l.value-1])&&"isButton"in e)}),i=Object(c.computed)(()=>{var e;if(o)return!((e=o.children[l.value+1])&&"isButton"in e)});return Object(y.a)({isButton:!0}),()=>{let{type:o,icon:l,text:r,color:s,loading:d,disabled:p}=e;return Object(c.createVNode)(g.a,{class:w([o,{last:i.value,first:n.value}]),size:"large",type:o,icon:l,color:s,loading:d,disabled:p,onClick:a},{default:()=>[t.default?t.default():r]})}}});let B=Object(t.a)(a),[D,x,N]=Object(n.a)("dialog");S=Object(o.a)({},m.b,{title:String,theme:String,width:i.f,message:[String,Function],callback:Function,allowHtml:Boolean,className:i.h,transition:Object(i.e)("van-dialog-bounce"),messageAlign:String,closeOnPopstate:i.g,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:i.g,closeOnClickOverlay:Boolean});let A=[...m.a,"transition","closeOnPopstate"];var E=Object(c.defineComponent)({name:D,props:S,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:a}){let l=Object(c.ref)(),n=Object(c.reactive)({confirm:!1,cancel:!1}),i=e=>t("update:show",e),m=t=>{var a;i(!1),null!=(a=e.callback)&&a.call(e,t)};var b=a=>()=>{e.show&&(t(a),e.beforeClose?(n[a]=!0,Object(r.a)(e.beforeClose,{args:[a],done(){m(a),n[a]=!1},canceled(){n[a]=!1}})):m(a))};let f=b("cancel"),h=b("confirm"),v=Object(c.withKeys)(a=>{var c;a.target===(null==(c=null==(c=l.value)?void 0:c.popupRef)?void 0:c.value)&&({Enter:e.showConfirmButton?h:o.d,Escape:e.showCancelButton?f:o.d}[a.key](),t("keydown",a))},["enter","esc"]),O=()=>{var t,o,l;return a.default?Object(c.createVNode)("div",{class:x("content")},[a.default()]):(({title:t,message:l,allowHtml:o}=e),l?(l=!(!t&&!a.title),Object(c.createVNode)("div",{key:o?1:0,class:x("content",{isolated:!l})},[(t=>{var{message:a,allowHtml:o,messageAlign:l}=e,l=(t=x("message",{"has-title":t,[l]:l}),Object(s.c)(a)?a():a);return o&&"string"==typeof l?Object(c.createVNode)("div",{class:t,innerHTML:l},null):Object(c.createVNode)("div",{class:t},[l])})(l)])):void 0)},j=()=>a.footer?a.footer():"round-button"===e.theme?Object(c.createVNode)(I,{class:x("footer")},{default:()=>[e.showCancelButton&&Object(c.createVNode)(B,{type:"warning",text:e.cancelButtonText||N("cancel"),class:x("cancel"),color:e.cancelButtonColor,loading:n.cancel,disabled:e.cancelButtonDisabled,onClick:f},null),e.showConfirmButton&&Object(c.createVNode)(B,{type:"danger",text:e.confirmButtonText||N("confirm"),class:x("confirm"),color:e.confirmButtonColor,loading:n.confirm,disabled:e.confirmButtonDisabled,onClick:h},null)]}):Object(c.createVNode)("div",{class:[d.c,x("footer")]},[e.showCancelButton&&Object(c.createVNode)(g.a,{size:"large",text:e.cancelButtonText||N("cancel"),class:x("cancel"),style:{color:e.cancelButtonColor},loading:n.cancel,disabled:e.cancelButtonDisabled,onClick:f},null),e.showConfirmButton&&Object(c.createVNode)(g.a,{size:"large",text:e.confirmButtonText||N("confirm"),class:[x("confirm"),{[d.a]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:n.confirm,disabled:e.confirmButtonDisabled,onClick:h},null)]);return()=>{var{width:t,title:n,theme:r,message:s,className:d}=e;return Object(c.createVNode)(u.a,Object(c.mergeProps)({ref:l,role:"dialog",class:[x([r]),d],style:{width:Object(p.b)(t)},tabindex:0,"aria-labelledby":n||s,onKeydown:v,"onUpdate:show":i},Object(o.e)(e,A)),{default:()=>[(()=>{var t=a.title?a.title():e.title;if(t)return Object(c.createVNode)("div",{class:x("header",{isolated:!e.message&&!a.default})},[t])})(),O(),j()]})}}});let M;function V(e){return o.c?new Promise((t,a)=>{var n;M||(n={setup(){let{state:e,toggle:t}=Object(l.b)();return()=>Object(c.createVNode)(E,Object(c.mergeProps)(e,{"onUpdate:show":t}),null)}},({instance:M}=Object(l.a)(n))),M.open(Object(o.a)({},V.currentOptions,e,{callback:e=>{("confirm"===e?t:a)(e)}}))}):Promise.resolve()}V.defaultOptions={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1},V.currentOptions=Object(o.a)({},V.defaultOptions),(V.alert=V).confirm=e=>V(Object(o.a)({showCancelButton:!0},e)),V.close=()=>{M&&M.toggle(!1)},V.setDefaultOptions=e=>{Object(o.a)(V.currentOptions,e)},V.resetDefaultOptions=()=>{V.currentOptions=Object(o.a)({},V.defaultOptions)},V.Component=Object(t.a)(E),V.install=e=>{e.use(V.Component),e.config.globalProperties.$dialog=V}},"2b48":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAA3SURBVHgBzcmxDQAgCAVRPxO5ipM6ko0xxkYnQKUHaq654iEZ9bUzMSo8ZLpFxTFPk4dAycXfA1ISQWorFT5NAAAAAElFTkSuQmCC"},"341e":function(e,t,a){a.d(t,"a",(function(){return b}));t=a("23f9");var c=a("7a23"),o=a("1fba"),l=a("fa7c"),n=a("e5f6"),i=a("8db7"),r=a("80ac"),s=a("05df"),d=a("efd9"),p=a("f23a");let[m,u,g]=Object(o.a)("search");a=Object(l.a)({},r.b,{label:String,shape:Object(n.e)("square"),leftIcon:Object(n.e)("search"),clearable:n.g,actionText:String,background:String,showAction:Boolean}),o=Object(c.defineComponent)({name:m,props:a,emits:["blur","focus","clear","search","cancel","click-input","click-left-icon","click-right-icon","update:modelValue"],setup(e,{emit:t,slots:a,attrs:o}){let n=Object(s.a)(),m=Object(c.ref)(),b=()=>{a.action||(t("update:modelValue",""),t("cancel"))},f=a=>{13===a.keyCode&&(Object(i.e)(a),t("search",e.modelValue))},h=()=>e.id||n+"-input",v=e=>t("blur",e),O=e=>t("focus",e),j=e=>t("clear",e),S=e=>t("click-input",e),I=e=>t("click-left-icon",e),y=e=>t("click-right-icon",e),k=Object.keys(r.b);return Object(d.a)({focus:()=>{var e;return null==(e=m.value)?void 0:e.focus()},blur:()=>{var e;return null==(e=m.value)?void 0:e.blur()}}),()=>{var n;return Object(c.createVNode)("div",{class:u({"show-action":e.showAction}),style:{background:e.background}},[null==(n=a.left)?void 0:n.call(a),Object(c.createVNode)("div",{class:u("content",e.shape)},[(()=>{if(a.label||e.label)return Object(c.createVNode)("label",{class:u("label"),for:h()},[a.label?a.label():e.label])})(),(n=Object(l.a)({},o,Object(l.e)(e,k),{id:h()}),Object(c.createVNode)(p.a,Object(c.mergeProps)({ref:m,type:"search",class:u("field"),border:!1,onBlur:v,onFocus:O,onClear:j,onKeypress:f,"onClick-input":S,"onClick-left-icon":I,"onClick-right-icon":y,"onUpdate:modelValue":e=>t("update:modelValue",e)},n),Object(l.e)(a,["left-icon","right-icon"])))]),(()=>{var t;if(e.showAction)return t=e.actionText||g("cancel"),Object(c.createVNode)("div",{class:u("action"),role:"button",tabindex:0,onClick:b},[a.action?a.action():t])})()])}}});let b=Object(t.a)(o)},"36e1":function(e,t,a){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"3dfb":function(e,t,a){a("7a89")},"5ac8":function(e,t,a){},"5c09":function(e,t,a){},"6a79":function(e,t,a){a.d(t,"c",(function(){return c})),a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return l}));let c={"公共区域":{backgroundColor:"#DFE3ED",icon:"storeroom.svg",selectIcon:"storeroomselected.svg"},"卫生间":{backgroundColor:"#fff",selectIcon:"toiletSelect.svg",icon:"toilet.svg"},"走廊":{icon:"passage.svg",backgroundColor:"#fff",selectIcon:"passageselected.svg"},"母婴室":{backgroundColor:"#fff",icon:"baby.svg",selectIcon:"babyselected.svg"},"电梯厅":{icon:"elevator.svg",selectIcon:"elevatoSelect.svg",backgroundColor:"#DFE3ED"},"楼梯间":{backgroundColor:"#DFE3ED",icon:"stairsx.svg",selectIcon:"stairsxselected.svg"},"打印":{backgroundColor:"#DFE3ED",icon:"print.svg",selectIcon:"printselected.svg"},"休闲活动区":{icon:"coffee.svg",backgroundColor:"#DFE3ED",selectIcon:"coffeeselected.svg"},"普通办公区":{icon:"officeroom.svg",selectIcon:"officeroomselected.svg",backgroundColor:"#fff",circleColor:"#7582B0"},"办公室":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"officeroom.svg",selectIcon:"officeroomselected.svg"},"会议室":{backgroundColor:"#fff",circleColor:"#F2918E",icon:"mroom.svg",selectIcon:"mroomSelect.svg"},"多功能厅":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"vector.svg",selectIcon:"vectorSelect.svg"},"接待室":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"jiedaiqu.svg",selectIcon:"jiedaiquSelect.svg"},"门厅":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"jiedaiqu.svg",selectIcon:"jiedaiquSelect.svg"},"档案库":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"chucang.svg",selectIcon:"chucangshiSelect.svg"},"更衣室":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"gengyishi.svg",selectIcon:"gengyishiSelect.svg"},"厨房":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"chufang.svg",selectIcon:"chufangSelect.svg"},"餐饮区":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"canyin.svg",selectIcon:"canyinSelect.svg"},"设备间":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"deviceroom.svg",selectIcon:"deviceroomselected.svg"},"健身房":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"jianshenfang.svg",selectIcon:"jianshenfangSelect.svg"},"体育管":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"tiyuguan.svg",selectIcon:"tiyuguanSelect.svg"},"游泳馆":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"youyong.svg",selectIcon:"youyongSelect.svg"},"图书馆":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"tushuguan.svg",selectIcon:"tushuguanSelect.svg"},"活动区":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"huodongqu.svg",selectIcon:"huodongquSelect.svg"},"实验室":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"shiyanqu.svg",selectIcon:"shiyanquSelect.svg"},"值班室":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"zhibanshi.svg",selectIcon:"zhibanshiSelect.svg"},"收费室":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"finance.svg",selectIcon:"financeselected.svg"},"护士站":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"nurse.svg",selectIcon:"nurseSelect.svg"}},o=function(e){return"100"===e||"1A0"===e||"0"===e||"443"===e||"453"===e?"公共区域":"111"===e?"卫生间":"113"===e?"母婴室":"120"===e?"走廊":"130"===e?"电梯厅":"140"===e?"楼梯间":"170"===e||"600"===e||"223"===e||"930"===e?"休闲活动区":"300"===e||"313"===e||"314"===e||"315"===e||"330"===e?"普通办公区":"312"===e||"311"===e||"310"===e?"办公室":"310"===e||"321"===e||"322"===e||"320"===e?"会议室":"490"===e||"323"===e||"931"===e?"多功能厅":"331"===e?"接待室":"160"===e?"门厅":"333"===e||"250"===e||"253"===e?"档案库":"112"===e?"更衣室":"220"===e||"221"===e?"餐饮区":"430"===e||"410"===e||"400"===e||"4B0"===e||"441"===e||"442"===e||"451"===e||"452"===e||"461"===e||"462"===e||"471"===e||"472"===e||"733"===e||"440"===e||"450"===e?"厨房":"252"===e||"246"===e||"1B5"===e||"234"===e||"231"===e||"230"===e||"233"===e||"232"===e||"234"===e||"235"===e||"236"===e||"237"===e||"241"===e||"242"===e||"244"===e||"245"===e||"251"===e||"254"===e||"211"===e||"212"===e||"222"===e?"设备间":"690"===e?"健身房":"932"===e||"934"===e||"933"===e||"6A0"===e?"体育管":"935"===e?"图书馆":"936"===e||"937"===e||"938"===e||"915"===e?"活动区":"921"===e||"922"===e||"923"===e||"920"===e||"926"===e||"924"===e||"925"===e||"926"===e?"实验室":"243"===e||"332"===e?"值班室":"334"===e?"收费室":"335"===e?"护士站":"公共区域"},l=function(e){return"312"===e||"311"===e||"310"===e?"个人":"320"===e||"321"===e||"322"===e||"323"===e?"会议室":"开放"}},"7a89":function(e,t,a){},"8c22":function(e,t,a){a("5ac8")},b3aa:function(e,t,a){a("fee7")},d916:function(e,t,a){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},e108:function(e,t,a){a("5c09")},e4cb:function(e,t,a){a("36e1")},fcad:function(e,t,a){a("d916")},fee7:function(e,t,a){}}]);
|