12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-49b7beac","chunk-2d0c1282"],{"0a6e":function(e,t,c){},"191f":function(e,t,c){"use strict";c("cc68")},2318:function(e,t,c){"use strict";c("e660")},2381:function(e,t,c){},"2de2":function(e,t,c){"use strict";c.d(t,"c",(function(){return n})),c.d(t,"b",(function(){return o})),c.d(t,"a",(function(){return a})),c.d(t,"d",(function(){return r}));var n="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",a="/duoduo-service/duoduoenv-service/",r="/duoduo-service/"},"459d":function(e,t,c){"use strict";c.d(t,"h",(function(){return u})),c.d(t,"B",(function(){return d})),c.d(t,"v",(function(){return s})),c.d(t,"o",(function(){return l})),c.d(t,"j",(function(){return b})),c.d(t,"t",(function(){return p})),c.d(t,"k",(function(){return f})),c.d(t,"b",(function(){return m})),c.d(t,"m",(function(){return j})),c.d(t,"K",(function(){return O})),c.d(t,"J",(function(){return v})),c.d(t,"z",(function(){return h})),c.d(t,"p",(function(){return g})),c.d(t,"L",(function(){return k})),c.d(t,"a",(function(){return S})),c.d(t,"g",(function(){return I})),c.d(t,"f",(function(){return y})),c.d(t,"l",(function(){return N})),c.d(t,"n",(function(){return V})),c.d(t,"u",(function(){return P})),c.d(t,"w",(function(){return q})),c.d(t,"C",(function(){return T})),c.d(t,"s",(function(){return x})),c.d(t,"d",(function(){return w})),c.d(t,"A",(function(){return D})),c.d(t,"x",(function(){return C})),c.d(t,"y",(function(){return E})),c.d(t,"F",(function(){return A})),c.d(t,"D",(function(){return B})),c.d(t,"H",(function(){return G})),c.d(t,"i",(function(){return L})),c.d(t,"r",(function(){return U})),c.d(t,"I",(function(){return F})),c.d(t,"e",(function(){return W})),c.d(t,"G",(function(){return z})),c.d(t,"c",(function(){return J})),c.d(t,"E",(function(){return _})),c.d(t,"q",(function(){return M}));c("99af");var n=c("59b9"),o=c("ba72"),a=c("d257"),r=c("2de2"),i=(Object(a["r"])(),""),u=function(e){return Object(n["b"])().request("/api/company/config/".concat(e.companyId),o["b"].GET,void 0,o["a"].json)},d=function(e){return Object(n["b"])().request("".concat(r["b"],"weather/getCurrent?").concat(e),o["b"].GET,void 0,o["a"].json)},s=function(e){return Object(n["b"])().request("".concat(r["a"],"space/property"),o["b"].POST,e,o["a"].json)},l=function(e){return Object(n["b"])().request("".concat(r["a"],"meeting/room/scene/getMeetingScene/V2?spaceId=").concat(e.spaceId),o["b"].GET,void 0,o["a"].json)},b=function(e){return Object(n["b"])().request("".concat(r["a"],"object/equipment/findForServe?spaceId=").concat(e.spaceId),o["b"].POST,void 0,o["a"].json)},p=function(e){return Object(n["b"])().request("".concat(r["a"],"customScene/queryCustom?spaceId=").concat(e.spaceId),o["b"].GET,void 0,o["a"].json)},f=function(e){return Object(n["b"])().request("".concat(r["a"],"custom/feedback/documents"),o["b"].POST,e,o["a"].json)},m=function(e){return Object(n["b"])().request("".concat(r["a"],"custom/feedbackCreate/v2"),o["b"].POST,e,o["a"].json)},j=function(e){return Object(n["b"])({timeout:1e3}).request("".concat(r["a"],"light/status/query?spaceId=").concat(e.spaceId),o["b"].GET,void 0,o["a"].json)},O=function(e){return Object(n["c"])("".concat(r["a"],"light/onoff/set?").concat(i),e)},v=function(e){return Object(n["c"])("".concat(r["a"],"object/eqp/infocode/set"),e)},h=function(e){return Object(n["c"])("".concat(r["a"],"light/onoff/setSatus"),e)},g=function(e){return Object(n["b"])().request("".concat(r["a"],"object/objectDataEqpGroup/query"),o["b"].POST,e,o["a"].json)},k=function(e){return Object(n["b"])().request("".concat(r["a"],"meeting/room/scene/switchover"),o["b"].POST,e,o["a"].json)},S=function(e){return Object(n["b"])().request("".concat(r["a"],"customScene/create"),o["b"].POST,e,o["a"].json)},I=function(e){return Object(n["b"])().request("".concat(r["a"],"/spaceAdjust/queryPropertyData?").concat(e),o["b"].GET,void 0,o["a"].json)},y=function(e){return Object(n["b"])().request("".concat(r["b"],"object/building/query"),o["b"].POST,e,o["a"].json)},N=function(e){return Object(n["b"])().request("".concat(r["b"],"object/floor/query"),o["b"].POST,e,o["a"].json)},V=function(e){return Object(n["b"])().request("".concat(r["c"],"map/queryMapInfo"),o["b"].POST,e,o["a"].json)},P=function(e){return Object(n["b"])().request("".concat(r["b"],"object/equipment/querySpaceEquipType?").concat(e),o["b"].GET,void 0,o["a"].json)},q=function(e){return Object(n["b"])().request("".concat(r["b"],"object/space/query"),o["b"].POST,e,o["a"].json)},T=function(e){return Object(n["b"])().request("".concat(r["c"],"permanentSpace/save"),o["b"].POST,e,o["a"].json)},x=function(){return Object(n["b"])().request("".concat(r["c"],"permanentSpace/query"),o["b"].GET,void 0,o["a"].json)},w=function(e){return Object(n["b"])().request("".concat(r["c"],"permanentSpace/delete?").concat(e))},D=function(){return Object(n["b"])().request("".concat(r["c"],"permanentSpace/queryZJ"),o["b"].GET,void 0,o["a"].json)},C=function(){return Object(n["b"])().request("".concat(r["b"],"object/equipment/querySpaceModeSet"),o["b"].GET,void 0,o["a"].json)},E=function(){return Object(n["b"])().request("".concat(r["b"],"object/equipment/querySpaceTempSet"),o["b"].GET,void 0,o["a"].json)},A=function(e){return Object(n["b"])().request("".concat(r["c"],"scene/querySpaceSceneConfig?").concat(e),o["b"].GET,void 0,o["a"].json)},B=function(e){return Object(n["b"])().request("".concat(r["a"],"customScene/queryCustomAndScence?").concat(e),o["b"].GET,void 0,o["a"].json)},G=function(e){return Object(n["c"])("".concat(r["a"],"customScene/saveBatchCustomScene"),e)},L=function(e){return Object(n["b"])().request("".concat(r["c"],"padSpace/getDefaultLocation?").concat(e),o["b"].GET,void 0,o["a"].json)},U=function(e){return Object(n["b"])().request("".concat(r["c"],"padSpace/getPadSpaceList?").concat(e),o["b"].GET,void 0,o["a"].json)},F=function(e){return Object(n["b"])().request("".concat(r["c"],"padSpace/saveWorkSpace"),o["b"].POST,e,o["a"].json)},W=function(e){return Object(n["b"])().request("".concat(r["c"],"padSpace/deleteWorkSpace"),o["b"].POST,e,o["a"].json)},z=function(e){return Object(n["b"])().request("".concat(r["c"],"padSpace/queryWorkSpace"),o["b"].POST,e,o["a"].json)},J=function(e){return Object(n["b"])().request("".concat(r["c"],"padSpace/queryWorkSpace"),o["b"].POST,e,o["a"].json)},_=function(e){return Object(n["b"])().request("".concat(r["d"],"/wechat-service-duoduoenv/duoduoenv/customerservice/query"),o["b"].POST,e,o["a"].json)},M=function(e){return Object(n["b"])().request("".concat(r["c"],"padLogin/getPadQrCodeStatus?").concat(e),o["b"].GET,void 0,o["a"].json)}},"4a22":function(e,t,c){},"81c0":function(e,t,c){},bd1a:function(e,t,c){"use strict";c.r(t);c("b0c0");var n=c("7a23"),o=function(e){return Object(n["pushScopeId"])("data-v-f3b446ee"),e=e(),Object(n["popScopeId"])(),e},a={class:"choice-space"},r={class:"search"},i=o((function(){return Object(n["createElementVNode"])("span",{class:"title"},"位置:",-1)})),u={class:"title"},d={class:"search-space"},s={class:"com-select"},l={class:"search-icon"},b=["src"],p={class:"space-content"},f={class:"space-item"},m={class:"item-text"},j={key:1,class:"no-data",height:"100%",width:"100%"},O=["src"],v=o((function(){return Object(n["createElementVNode"])("span",null,"暂无数据",-1)})),h={key:0,class:"next-btn-box"},g={class:"space-type"},k=["onClick"];function S(e,t,c,o,S,I){var y=Object(n["resolveComponent"])("van-icon"),N=Object(n["resolveComponent"])("van-search"),V=Object(n["resolveComponent"])("van-checkbox"),P=Object(n["resolveComponent"])("van-tree-select"),q=Object(n["resolveComponent"])("van-popup");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",{class:"search-floor",onClick:t[0]||(t[0]=function(){return e.showPounp&&e.showPounp.apply(e,arguments)})},[i,Object(n["createElementVNode"])("span",u,Object(n["toDisplayString"])(e.checkPositon.buildingName)+Object(n["toDisplayString"])(e.checkPositon.floorName),1),Object(n["createVNode"])(y,{class:"arrow-down",name:"arrow-down"})]),Object(n["createElementVNode"])("div",d,[Object(n["createElementVNode"])("div",s,[Object(n["createElementVNode"])("div",{class:"com-text",onClick:t[1]||(t[1]=function(){return e.showSpaceTypePounp&&e.showSpaceTypePounp.apply(e,arguments)})},[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e.spaceType.name),1),Object(n["createVNode"])(y,{class:"arrow-down",name:"arrow-down"})])]),Object(n["createVNode"])(N,{class:"search-box",modelValue:e.searchSpaceName,"onUpdate:modelValue":[t[2]||(t[2]=function(t){return e.searchSpaceName=t}),e.searchSpace],placeholder:"请输入搜索关键词"},null,8,["modelValue","onUpdate:modelValue"]),Object(n["createElementVNode"])("div",l,[Object(n["createElementVNode"])("img",{src:e.parseImgUrl("search-icon","search-icon.svg"),alt:""},null,8,b)])])]),Object(n["createElementVNode"])("div",p,[e.showSpace?(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],{key:0},Object(n["renderList"])(e.spaceData,(function(e,t){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:"space-box",key:"space"+t},[Object(n["createElementVNode"])("div",f,[Object(n["createElementVNode"])("span",m,Object(n["toDisplayString"])(e.spaceName),1),Object(n["createVNode"])(V,{class:"item-check",modelValue:e.checked,"onUpdate:modelValue":function(t){return e.checked=t},shape:"square"},null,8,["modelValue","onUpdate:modelValue"])])])})),128)):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",j,[Object(n["createElementVNode"])("img",{src:e.parseImgUrl("page-officehome","empty.png"),alt:""},null,8,O),v]))]),e.spaceData&&e.spaceData.length?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",h,[Object(n["createElementVNode"])("button",{onClick:t[3]||(t[3]=function(){return e.goNext&&e.goNext.apply(e,arguments)})},"下一步")])):Object(n["createCommentVNode"])("",!0),Object(n["createVNode"])(q,{show:e.show,"onUpdate:show":t[6]||(t[6]=function(t){return e.show=t}),position:"bottom"},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(P,{onClickNav:e.checkBuilding,onClickItem:e.checkFloor,"active-id":e.checkPositon.floorId,"onUpdate:active-id":t[4]||(t[4]=function(t){return e.checkPositon.floorId=t}),"main-active-index":e.activeIndex,"onUpdate:main-active-index":t[5]||(t[5]=function(t){return e.activeIndex=t}),items:e.positionArr},null,8,["onClickNav","onClickItem","active-id","main-active-index","items"])]})),_:1},8,["show"]),Object(n["createVNode"])(q,{show:e.showSpaceType,"onUpdate:show":t[7]||(t[7]=function(t){return e.showSpaceType=t}),position:"bottom"},{default:Object(n["withCtx"])((function(){return[Object(n["createElementVNode"])("div",g,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.spaceTypeArr,(function(t,c){return Object(n["openBlock"])(),Object(n["createElementBlock"])("span",{onClick:function(c){return e.checkSpaceType(t)},key:"space-type-id"+c},Object(n["toDisplayString"])(t.name),9,k)})),128))])]})),_:1},8,["show"])])}c("4de4"),c("d81d");var I=c("5530"),y=c("6c02"),N=c("d961"),V=(c("5852"),c("c199")),P=c("fe7e"),q=c("f691"),T=c("8405"),x=c("ad06"),w=c("f465");const[D,C]=Object(P["a"])("sidebar"),E=Symbol(D),A={modelValue:Object(q["c"])(0)};var B=Object(n["defineComponent"])({name:D,props:A,emits:["change","update:modelValue"],setup(e,{emit:t,slots:c}){const{linkChildren:o}=Object(w["f"])(E),a=()=>+e.modelValue,r=e=>{e!==a()&&(t("update:modelValue",e),t("change",e))};return o({getActive:a,setActive:r}),()=>{var e;return Object(n["createVNode"])("div",{role:"tablist",class:C()},[null==(e=c.default)?void 0:e.call(c)])}}});const G=Object(V["a"])(B);var L=c("f344"),U=c("b070"),F=c("471a");const[W,z]=Object(P["a"])("sidebar-item"),J=Object(L["a"])({},U["b"],{dot:Boolean,title:String,badge:q["f"],disabled:Boolean,badgeProps:Object});var _=Object(n["defineComponent"])({name:W,props:J,emits:["click"],setup(e,{emit:t,slots:c}){const o=Object(U["c"])(),{parent:a,index:r}=Object(w["k"])(E);if(!a)return void 0;const i=()=>{e.disabled||(t("click",r.value),a.setActive(r.value),o())};return()=>{const{dot:t,badge:o,title:u,disabled:d}=e,s=r.value===a.getActive();return Object(n["createVNode"])("div",{role:"tab",class:z({select:s,disabled:d}),tabindex:d?void 0:0,"aria-selected":s,onClick:i},[Object(n["createVNode"])(F["a"],Object(n["mergeProps"])({dot:t,class:z("text"),content:o},e.badgeProps),{default:()=>[c.title?c.title():u]})])}}});const M=Object(V["a"])(_);const[$,H]=Object(P["a"])("tree-select"),R={max:Object(q["c"])(1/0),items:Object(q["a"])(),height:Object(q["c"])(300),selectedIcon:Object(q["e"])("success"),mainActiveIndex:Object(q["c"])(0),activeId:{type:[Number,String,Array],default:0}};var K=Object(n["defineComponent"])({name:$,props:R,emits:["click-nav","click-item","update:activeId","update:mainActiveIndex"],setup(e,{emit:t,slots:c}){const o=t=>Array.isArray(e.activeId)?e.activeId.includes(t):e.activeId===t,a=c=>{const a=()=>{if(c.disabled)return;let n;if(Array.isArray(e.activeId)){n=e.activeId.slice();const t=n.indexOf(c.id);-1!==t?n.splice(t,1):n.length<e.max&&n.push(c.id)}else n=c.id;t("update:activeId",n),t("click-item",c)};return Object(n["createVNode"])("div",{key:c.id,class:["van-ellipsis",H("item",{active:o(c.id),disabled:c.disabled})],onClick:a},[c.text,o(c.id)&&Object(n["createVNode"])(x["a"],{name:e.selectedIcon,class:H("selected")},null)])},r=e=>{t("update:mainActiveIndex",e)},i=e=>t("click-nav",e),u=()=>{const t=e.items.map(e=>Object(n["createVNode"])(M,{dot:e.dot,title:e.text,badge:e.badge,class:[H("nav-item"),e.className],disabled:e.disabled,onClick:i},null));return Object(n["createVNode"])(G,{class:H("nav"),modelValue:e.mainActiveIndex,onChange:r},{default:()=>[t]})},d=()=>{if(c.content)return c.content();const t=e.items[+e.mainActiveIndex]||{};return t.children?t.children.map(a):void 0};return()=>Object(n["createVNode"])("div",{class:H(),style:{height:Object(T["b"])(e.height)}},[u(),Object(n["createVNode"])("div",{class:H("content")},[d()])])}});const Q=Object(V["a"])(K);var Z=Q,X=(c("68ef"),c("cb51"),c("3743"),c("d8ac"),c("81c0"),c("4a22"),c("e41f")),Y=(c("8a58"),c("4eda"));const[ee,te]=Object(P["a"])("checkbox-group"),ce={max:q["f"],disabled:Boolean,iconSize:q["f"],direction:String,modelValue:Object(q["a"])(),checkedColor:String},ne=Symbol(ee);Object(n["defineComponent"])({name:ee,props:ce,emits:["change","update:modelValue"],setup(e,{emit:t,slots:c}){const{children:o,linkChildren:a}=Object(w["f"])(ne),r=e=>t("update:modelValue",e),i=(e={})=>{"boolean"===typeof e&&(e={checked:e});const{checked:t,skipDisabled:c}=e,n=o.filter(e=>!!e.props.bindGroup&&(e.props.disabled&&c?e.checked.value:null!=t?t:!e.checked.value)),a=n.map(e=>e.name);r(a)};return Object(n["watch"])(()=>e.modelValue,e=>t("change",e)),Object(Y["a"])({toggleAll:i}),Object(w["h"])(()=>e.modelValue),a({props:e,updateValue:r}),()=>{var t;return Object(n["createVNode"])("div",{class:te([e.direction])},[null==(t=c.default)?void 0:t.call(c)])}}});const oe={name:q["h"],shape:Object(q["e"])("round"),disabled:Boolean,iconSize:q["f"],modelValue:q["h"],checkedColor:String,labelPosition:String,labelDisabled:Boolean};var ae=Object(n["defineComponent"])({props:Object(L["a"])({},oe,{bem:Object(q["d"])(Function),role:String,parent:Object,checked:Boolean,bindGroup:q["g"]}),emits:["click","toggle"],setup(e,{emit:t,slots:c}){const o=Object(n["ref"])(),a=t=>{if(e.parent&&e.bindGroup)return e.parent.props[t]},r=Object(n["computed"])(()=>a("disabled")||e.disabled),i=Object(n["computed"])(()=>a("direction")),u=Object(n["computed"])(()=>{const t=e.checkedColor||a("checkedColor");if(t&&e.checked&&!r.value)return{borderColor:t,backgroundColor:t}}),d=c=>{const{target:n}=c,a=o.value,i=a===n||(null==a?void 0:a.contains(n));r.value||!i&&e.labelDisabled||t("toggle"),t("click",c)},s=()=>{const{bem:t,shape:i,checked:d}=e,s=e.iconSize||a("iconSize");return Object(n["createVNode"])("div",{ref:o,class:t("icon",[i,{disabled:r.value,checked:d}]),style:{fontSize:Object(T["b"])(s)}},[c.icon?c.icon({checked:d,disabled:r.value}):Object(n["createVNode"])(x["a"],{name:"success",style:u.value},null)])},l=()=>{if(c.default)return Object(n["createVNode"])("span",{class:e.bem("label",[e.labelPosition,{disabled:r.value}])},[c.default()])};return()=>{const t="left"===e.labelPosition?[l(),s()]:[s(),l()];return Object(n["createVNode"])("div",{role:e.role,class:e.bem([{disabled:r.value,"label-disabled":e.labelDisabled},i.value]),tabindex:r.value?void 0:0,"aria-checked":e.checked,onClick:d},[t])}}});const[re,ie]=Object(P["a"])("checkbox"),ue=Object(L["a"])({},oe,{bindGroup:q["g"]});var de=Object(n["defineComponent"])({name:re,props:ue,emits:["change","update:modelValue"],setup(e,{emit:t,slots:c}){const{parent:o}=Object(w["k"])(ne),a=t=>{const{name:c}=e,{max:n,modelValue:a}=o.props,r=a.slice();if(t){const t=n&&r.length>=n;t||r.includes(c)||(r.push(c),e.bindGroup&&o.updateValue(r))}else{const t=r.indexOf(c);-1!==t&&(r.splice(t,1),e.bindGroup&&o.updateValue(r))}},r=Object(n["computed"])(()=>o&&e.bindGroup?-1!==o.props.modelValue.indexOf(e.name):!!e.modelValue),i=(c=!r.value)=>{o&&e.bindGroup?a(c):t("update:modelValue",c)};return Object(n["watch"])(()=>e.modelValue,e=>t("change",e)),Object(Y["a"])({toggle:i,props:e,checked:r}),Object(w["h"])(()=>e.modelValue),()=>Object(n["createVNode"])(ae,Object(n["mergeProps"])({bem:ie,role:"checkbox",parent:o,checked:r.value,onToggle:i},e),Object(L["e"])(c,["default","icon"]))}});const se=Object(V["a"])(de);var le=se,be=(c("0a6e"),c("2381"),c("d399")),pe=(c("e7e5"),c("d257")),fe=c("0613"),me=c("a873"),je=c("459d"),Oe=Object(n["defineComponent"])({components:{vanSearch:N["a"],VanPopup:X["b"],VanTreeSelect:Z,VanCheckbox:le},setup:function(){var e=Object(n["getCurrentInstance"])(),t=Object(y["c"])(),c=Object(y["d"])(),o=Object(pe["r"])(),a=[{text:"全部商ddddd品",value:0},{text:"新款商ddd品",value:1},{text:"活动商ddd品",value:2}],r=[{text:"默认排序",value:"a"},{text:"好评排ddd序",value:"b"},{text:"销量排序",value:"c"}],i=[],u={},d={},s=[],l={},b=[],p=[{type:"",name:"全部空间"},{type:0,name:"个人办公室"},{type:1,name:"开放办公区"},{type:2,name:"会议室"},{type:99,name:"其它"}],f={type:"",name:"全部空间"},m=[],j=[],O=Object(n["reactive"])({parseImgUrl:pe["w"],showSpace:!0,userInfo:o,activeIndex:0,spaceType:f,searchSpaceName:"",checked:!1,positionArr:i,checkPositon:u,route:t,option1:a,option2:r,value1:0,value2:"a",transitionName:"slide-right",showHeader:!1,showSpaceType:!1,show:!1,spaceTypeArr:p,showPounp:function(){O.show=!O.show},showSpaceTypePounp:function(){O.showSpaceType=!O.showSpaceType},checkSpaceType:function(e){O.spaceType=e,O.showSpaceType=!1,O.searchSpace()},buildingData:s,buildingItem:l,getBuildingList:function(){var e={criteria:{projectId:O.userInfo.projectId}};Object(je["f"])(e).then((function(e){var t=e;if("success"===t.result){var c,n=null!==(c=null===t||void 0===t?void 0:t.content)&&void 0!==c?c:[];O.buildingData=n,O.setBbuildingName(),O.getFloorList()}else O.buildingData=[]}))},setBbuildingName:function(){O.buildingData.map((function(e,t){e.id===O.checkPositon.buildingId&&(O.checkPositon.buildingName=e.localName,O.activeIndex=t)}))},formateBuildingData:function(){O.positionArr=[];for(var e=0;e<O.buildingData.length;e++){var t={text:O.buildingData[e].localName,id:O.buildingData[e].id,children:[]};O.buildingData[e].id===O.checkPositon.buildingId&&(O.activeIndex=e,O.floorData.map((function(e){e.text=e.localName,e.id===O.checkPositon.floorId&&(O.checkPositon.floorName=e.localName)})),O.checkPositon.buildingName=O.buildingData[e].localName,t.children=O.floorData),O.positionArr.push(t)}},floorData:b,getFloorList:function(){if(O.checkPositon.buildingId){var e={criteria:{projectId:O.userInfo.projectId,buildingId:O.checkPositon.buildingId},orders:[{asc:!0,column:"localId"}]};Object(je["l"])(e).then((function(e){var t,c=e;"success"===e.result?O.floorData=null!==(t=null===c||void 0===c?void 0:c.content)&&void 0!==t?t:[]:O.floorData=[];O.formateBuildingData(),O.getPadSpaceList()})).catch((function(){}))}},defaultSpaceData:d,getDefaultLocation:function(){var e={macAddress:O.userInfo.mac,spaceId:O.spaceId},t=Object(pe["z"])(e);Object(je["i"])(t).then((function(e){var t,c=e;O.defaultSpaceData=null!==(t=null===c||void 0===c?void 0:c.data)&&void 0!==t?t:{},O.checkPositon.buildingId=O.defaultSpaceData.buildingId,O.setCheckPersiton(),O.getBuildingList()}))},setCheckPersiton:function(){O.checkPositon.buildingId=O.defaultSpaceData.buildingId,O.checkPositon.floorId=O.defaultSpaceData.floorId},formataWorkData:function(){var e=O.spaceData.filter((function(e){return e.checked}));O.copySpaceData.map((function(t){for(var c=0;c<e.length;c++)t.spaceId===e[c].spaceId&&(t.checked=e[c].checked)}));var t=O.copySpaceData.filter((function(e){return e.checked}));return t},goNext:function(){var e=O.formataWorkData(),t=[];if(e.map((function(e){t.push(e.spaceId)})),t.length){var c={floorId:O.checkPositon.floorId,workSpaceList:t,majorSpaceId:t[0],macAddress:O.userInfo.mac};O.saveWorkSpace(c)}else Object(be["a"])("请选择办公空间!")},saveWorkSpace:function(t){e.proxy.$loadingStart(0),Object(je["I"])(t).then((function(e){O.querySpaceList()}))},querySpaceList:function(){var t={criteria:{projectId:O.userInfo.projectId,macAddress:O.userInfo.mac}};Object(je["c"])(t).then((function(t){var n,o=t,a=[];"success"===o.result?a=null!==(n=null===o||void 0===o?void 0:o.content)&&void 0!==n?n:[]:a=[];a.length>1?setTimeout((function(){e.proxy.$loadinngEnd(),c.push({name:"setMainSpace"})}),1e3):(e.proxy.$loadinngEnd(),c.push({name:"envmonitor",query:{spaceId:a[0].spaceId}}))})).catch((function(){e.proxy.$loadinngEnd()}))},checkBuilding:function(e){O.checkPositon.buildingId=O.positionArr[e].id,O.checkPositon.buildingName=O.positionArr[e].text,O.getFloorList()},checkFloor:function(e){O.checkPositon.floorId=e.id,O.checkPositon.floorName=e.localName,O.show=!1,O.clearSearchName(),O.getPadSpaceList()},clearSearchName:function(){O.searchSpaceName="",O.spaceType=f},spaceData:m,copySpaceData:j,nowPerstionIndex:0,getPadSpaceList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e||{floorId:O.checkPositon.floorId,buildingId:O.checkPositon.buildingId,macAddress:O.userInfo.mac},c=Object(pe["z"])(t);Object(je["r"])(c).then((function(t){var c,n=t;"success"===n.result?(O.spaceData=null!==(c=null===n||void 0===n?void 0:n.data)&&void 0!==c?c:[],O.spaceData.map((function(e,t){e.isWorkSpace?e.checked=!0:e.checked=!1,e.spaceId===O.spaceId&&(e.checked=!0)})),e||(O.copySpaceData=JSON.parse(JSON.stringify(O.spaceData)))):O.spaceData=[];O&&O.spaceData.length?O.showSpace=!0:O.showSpace=!1}))},setPageScroolTop:function(){},searchSpace:function(){var e={floorId:O.checkPositon.floorId,buildingId:O.checkPositon.buildingId,funcType:O.spaceType.type,spaceName:O.searchSpaceName,macAddress:O.userInfo.mac};O.getPadSpaceList(e)},spaceId:"",init:function(){var e=t.query.spaceId;O.spaceId=e;var c=t.query.id;fe["a"].commit(me["a"].SET_PROJECT_ID,c),O.getDefaultLocation()}});return Object(n["onMounted"])((function(){O.init()})),Object(I["a"])({},Object(n["toRefs"])(O))}}),ve=(c("2318"),c("191f"),c("6b0d")),he=c.n(ve);const ge=he()(Oe,[["render",S],["__scopeId","data-v-f3b446ee"]]);t["default"]=ge},cc68:function(e,t,c){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},d8ac:function(e,t,c){},e660:function(e,t,c){}}]);
- //# sourceMappingURL=chunk-49b7beac.dbcfefce.js.map
|