12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-095f9bd6"],{"0a6e":function(e,t,c){},2381:function(e,t,c){},"2de2":function(e,t,c){"use strict";c.d(t,"d",(function(){return n})),c.d(t,"c",(function(){return o})),c.d(t,"b",(function(){return a})),c.d(t,"e",(function(){return r})),c.d(t,"a",(function(){return i}));var n="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",a="/duoduo-service/duoduoenv-service/",r="/duoduo-service/",i="/duoduo-service/custom-service/"},"30d7":function(e,t,c){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"30f3":function(e,t,c){"use strict";c("62b6")},"459d":function(e,t,c){"use strict";c.d(t,"h",(function(){return r})),c.d(t,"C",(function(){return i})),c.d(t,"w",(function(){return u})),c.d(t,"o",(function(){return d})),c.d(t,"j",(function(){return s})),c.d(t,"k",(function(){return l})),c.d(t,"b",(function(){return b})),c.d(t,"m",(function(){return p})),c.d(t,"P",(function(){return f})),c.d(t,"N",(function(){return m})),c.d(t,"A",(function(){return j})),c.d(t,"p",(function(){return O})),c.d(t,"Q",(function(){return v})),c.d(t,"a",(function(){return h})),c.d(t,"g",(function(){return g})),c.d(t,"f",(function(){return k})),c.d(t,"l",(function(){return S})),c.d(t,"n",(function(){return y})),c.d(t,"v",(function(){return I})),c.d(t,"x",(function(){return q})),c.d(t,"E",(function(){return N})),c.d(t,"t",(function(){return T})),c.d(t,"d",(function(){return P})),c.d(t,"B",(function(){return V})),c.d(t,"y",(function(){return x})),c.d(t,"z",(function(){return D})),c.d(t,"I",(function(){return C})),c.d(t,"F",(function(){return w})),c.d(t,"K",(function(){return E})),c.d(t,"i",(function(){return A})),c.d(t,"s",(function(){return B})),c.d(t,"M",(function(){return G})),c.d(t,"D",(function(){return L})),c.d(t,"e",(function(){return W})),c.d(t,"J",(function(){return F})),c.d(t,"c",(function(){return U})),c.d(t,"G",(function(){return M})),c.d(t,"r",(function(){return z})),c.d(t,"q",(function(){return J})),c.d(t,"H",(function(){return _})),c.d(t,"O",(function(){return R})),c.d(t,"L",(function(){return $})),c.d(t,"u",(function(){return H}));c("99af");var n=c("59b9"),o=c("ba72"),a=c("2de2"),r=function(e){return Object(n["b"])().request("/api/company/config/".concat(e.companyId),o["b"].GET,void 0,o["a"].json)},i=function(e){return Object(n["b"])().request("".concat(a["c"],"weather/getCurrent?").concat(e),o["b"].GET,void 0,o["a"].json)},u=function(e){return Object(n["b"])().request("".concat(a["b"],"space/property"),o["b"].POST,e,o["a"].json)},d=function(e){return Object(n["b"])().request("".concat(a["b"],"meeting/room/scene/getMeetingScene/V2?spaceId=").concat(e.spaceId),o["b"].GET,void 0,o["a"].json)},s=function(e){return Object(n["b"])().request("".concat(a["b"],"object/equipment/findForServe?spaceId=").concat(e.spaceId),o["b"].POST,void 0,o["a"].json)},l=function(e){return Object(n["b"])().request("".concat(a["b"],"custom/feedback/documents"),o["b"].POST,e,o["a"].json)},b=function(e){return Object(n["b"])().request("".concat(a["b"],"custom/feedbackCreate/v2"),o["b"].POST,e,o["a"].json)},p=function(e){return Object(n["b"])({timeout:1e3}).request("".concat(a["b"],"light/status/query?spaceId=").concat(e.spaceId),o["b"].GET,void 0,o["a"].json)},f=function(e){return Object(n["c"])("".concat(a["b"],"light/onoff/set"),e)},m=function(e){return Object(n["c"])("".concat(a["b"],"object/eqp/infocode/set"),e)},j=function(e){return Object(n["c"])("".concat(a["b"],"light/onoff/setSatus"),e)},O=function(e){return Object(n["b"])().request("".concat(a["b"],"object/objectDataEqpGroup/query"),o["b"].POST,e,o["a"].json)},v=function(e){return Object(n["b"])().request("".concat(a["b"],"meeting/room/scene/switchover"),o["b"].POST,e,o["a"].json)},h=function(e){return Object(n["b"])().request("".concat(a["b"],"customScene/create"),o["b"].POST,e,o["a"].json)},g=function(e){return Object(n["b"])().request("".concat(a["b"],"/spaceAdjust/queryPropertyData?").concat(e),o["b"].GET,void 0,o["a"].json)},k=function(e){return Object(n["b"])().request("".concat(a["c"],"object/building/query"),o["b"].POST,e,o["a"].json)},S=function(e){return Object(n["b"])().request("".concat(a["c"],"object/floor/query"),o["b"].POST,e,o["a"].json)},y=function(e){return Object(n["b"])().request("".concat(a["d"],"map/queryMapInfo"),o["b"].POST,e,o["a"].json)},I=function(e){return Object(n["b"])().request("".concat(a["c"],"object/equipment/querySpaceEquipType?").concat(e),o["b"].GET,void 0,o["a"].json)},q=function(e){return Object(n["b"])().request("".concat(a["c"],"object/space/query"),o["b"].POST,e,o["a"].json)},N=function(e){return Object(n["b"])().request("".concat(a["d"],"permanentSpace/save"),o["b"].POST,e,o["a"].json)},T=function(){return Object(n["b"])().request("".concat(a["d"],"permanentSpace/query"),o["b"].GET,void 0,o["a"].json)},P=function(e){return Object(n["b"])().request("".concat(a["d"],"permanentSpace/delete?").concat(e))},V=function(){return Object(n["b"])().request("".concat(a["d"],"permanentSpace/queryZJ"),o["b"].GET,void 0,o["a"].json)},x=function(){return Object(n["b"])().request("".concat(a["c"],"object/equipment/querySpaceModeSet"),o["b"].GET,void 0,o["a"].json)},D=function(){return Object(n["b"])().request("".concat(a["c"],"object/equipment/querySpaceTempSet"),o["b"].GET,void 0,o["a"].json)},C=function(e){return Object(n["b"])().request("".concat(a["d"],"scene/querySpaceSceneConfig?").concat(e),o["b"].GET,void 0,o["a"].json)},w=function(e){return Object(n["b"])().request("".concat(a["b"],"customScene/queryCustomAndScence?").concat(e),o["b"].GET,void 0,o["a"].json)},E=function(e){return Object(n["c"])("".concat(a["b"],"customScene/saveBatchCustomScene"),e)},A=function(e){return Object(n["b"])().request("".concat(a["d"],"padSpace/getDefaultLocation?").concat(e),o["b"].GET,void 0,o["a"].json)},B=function(e){return Object(n["b"])().request("".concat(a["d"],"padSpace/getPadSpaceList?").concat(e),o["b"].GET,void 0,o["a"].json)},G=function(e){return Object(n["b"])().request("".concat(a["d"],"padSpace/saveWorkSpace"),o["b"].POST,e,o["a"].json)},L=function(e){return Object(n["b"])().request("".concat(a["d"],"padSpace/insertWorkSpace"),o["b"].POST,e,o["a"].json)},W=function(e){return Object(n["b"])().request("".concat(a["d"],"padSpace/deleteWorkSpace"),o["b"].POST,e,o["a"].json)},F=function(e){return Object(n["b"])().request("".concat(a["d"],"padSpace/queryWorkSpace"),o["b"].POST,e,o["a"].json)},U=function(e){return Object(n["b"])().request("".concat(a["d"],"padSpace/queryWorkSpace"),o["b"].POST,e,o["a"].json)},M=function(e){return Object(n["b"])().request("".concat(a["e"],"wechat-service-duoduoenv/duoduoenv/customerservice/query"),o["b"].POST,e,o["a"].json)},z=function(e){return Object(n["b"])().request("".concat(a["d"],"padLogin/getPadQrCodeStatus?").concat(e),o["b"].GET,void 0,o["a"].json)},J=function(e){return Object(n["b"])().request("".concat(a["d"],"padImage/queryImageByFuncType?").concat(e),o["b"].GET,void 0,o["a"].json)},_=function(e){return Object(n["b"])().request("".concat(a["b"],"ctrl/querySpaceConditioners?").concat(e),o["b"].GET,void 0,o["a"].json)},R=function(e){return Object(n["c"])("".concat(a["b"],"ctrl/set"),e)},$=function(e){return Object(n["b"])().request("".concat(a["d"],"/map/saveMapPointInfo"),o["b"].POST,e,o["a"].json)},H=function(e){return Object(n["b"])().request("".concat(a["a"],"equipmentRun/queryEquipmentRunConfig?").concat(e),o["b"].GET,void 0,o["a"].json)}},"4a22":function(e,t,c){},"62b6":function(e,t,c){},"6c44":function(e,t,c){"use strict";c("30d7")},"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-16b8781e"),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=["id"],m={class:"space-item"},j={class:"item-text"},O={key:1,class:"no-data",height:"100%",width:"100%"},v=["src"],h=o((function(){return Object(n["createElementVNode"])("span",null,"暂无数据",-1)})),g={key:0,class:"next-btn-box"},k={class:"space-type"},S=["onClick"];function y(e,t,c,o,y,I){var q=Object(n["resolveComponent"])("van-icon"),N=Object(n["resolveComponent"])("van-search"),T=Object(n["resolveComponent"])("van-checkbox"),P=Object(n["resolveComponent"])("van-tree-select"),V=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"])(q,{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"])(q,{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(t,c){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:"space-box",id:"space"+c,key:"space"+c},[Object(n["createElementVNode"])("div",m,[Object(n["createElementVNode"])("span",j,Object(n["toDisplayString"])(t.spaceName),1),Object(n["createVNode"])(T,{class:"item-check",modelValue:t.checked,"onUpdate:modelValue":function(e){return t.checked=e},onClick:function(c){return e.updateWorkSpace(t)},shape:"square"},null,8,["modelValue","onUpdate:modelValue","onClick"])])],8,f)})),128)):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",O,[Object(n["createElementVNode"])("img",{src:e.parseImgUrl("page-officehome","empty.png"),alt:""},null,8,v),h]))]),e.spaceData&&e.spaceData.length?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",g,[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"])(V,{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"])(V,{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",k,[(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)},class:Object(n["normalizeClass"])(e.spaceType.type===t.type?"active-type":""),key:"space-type-id"+c},Object(n["toDisplayString"])(t.name),11,S)})),128))])]})),_:1},8,["show"])])}c("4de4"),c("d81d");var I=c("5530"),q=c("6c02"),N=c("d961"),T=(c("5852"),c("c199")),P=c("fe7e"),V=c("f691"),x=c("8405"),D=c("ad06"),C=c("f465");const[w,E]=Object(P["a"])("sidebar"),A=Symbol(w),B={modelValue:Object(V["c"])(0)};var G=Object(n["defineComponent"])({name:w,props:B,emits:["change","update:modelValue"],setup(e,{emit:t,slots:c}){const{linkChildren:o}=Object(C["f"])(A),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:E()},[null==(e=c.default)?void 0:e.call(c)])}}});const L=Object(T["a"])(G);var W=c("f344"),F=c("b070"),U=c("471a");const[M,z]=Object(P["a"])("sidebar-item"),J=Object(W["a"])({},F["b"],{dot:Boolean,title:String,badge:V["f"],disabled:Boolean,badgeProps:Object});var _=Object(n["defineComponent"])({name:M,props:J,emits:["click"],setup(e,{emit:t,slots:c}){const o=Object(F["c"])(),{parent:a,index:r}=Object(C["k"])(A);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"])(U["a"],Object(n["mergeProps"])({dot:t,class:z("text"),content:o},e.badgeProps),{default:()=>[c.title?c.title():u]})])}}});const R=Object(T["a"])(_);const[$,H]=Object(P["a"])("tree-select"),Q={max:Object(V["c"])(1/0),items:Object(V["a"])(),height:Object(V["c"])(300),selectedIcon:Object(V["e"])("success"),mainActiveIndex:Object(V["c"])(0),activeId:{type:[Number,String,Array],default:0}};var K=Object(n["defineComponent"])({name:$,props:Q,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"])(D["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"])(R,{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"])(L,{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(x["b"])(e.height)}},[u(),Object(n["createVNode"])("div",{class:H("content")},[d()])])}});const Z=Object(T["a"])(K);var X=Z,Y=(c("68ef"),c("cb51"),c("3743"),c("d8ac"),c("81c0"),c("4a22"),c("e41f")),ee=(c("8a58"),c("4eda"));const[te,ce]=Object(P["a"])("checkbox-group"),ne={max:V["f"],disabled:Boolean,iconSize:V["f"],direction:String,modelValue:Object(V["a"])(),checkedColor:String},oe=Symbol(te);Object(n["defineComponent"])({name:te,props:ne,emits:["change","update:modelValue"],setup(e,{emit:t,slots:c}){const{children:o,linkChildren:a}=Object(C["f"])(oe),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(ee["a"])({toggleAll:i}),Object(C["h"])(()=>e.modelValue),a({props:e,updateValue:r}),()=>{var t;return Object(n["createVNode"])("div",{class:ce([e.direction])},[null==(t=c.default)?void 0:t.call(c)])}}});const ae={name:V["h"],shape:Object(V["e"])("round"),disabled:Boolean,iconSize:V["f"],modelValue:V["h"],checkedColor:String,labelPosition:String,labelDisabled:Boolean};var re=Object(n["defineComponent"])({props:Object(W["a"])({},ae,{bem:Object(V["d"])(Function),role:String,parent:Object,checked:Boolean,bindGroup:V["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(x["b"])(s)}},[c.icon?c.icon({checked:d,disabled:r.value}):Object(n["createVNode"])(D["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[ie,ue]=Object(P["a"])("checkbox"),de=Object(W["a"])({},ae,{bindGroup:V["g"]});var se=Object(n["defineComponent"])({name:ie,props:de,emits:["change","update:modelValue"],setup(e,{emit:t,slots:c}){const{parent:o}=Object(C["k"])(oe),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(ee["a"])({toggle:i,props:e,checked:r}),Object(C["h"])(()=>e.modelValue),()=>Object(n["createVNode"])(re,Object(n["mergeProps"])({bem:ue,role:"checkbox",parent:o,checked:r.value,onToggle:i},e),Object(W["e"])(c,["default","icon"]))}});const le=Object(T["a"])(se);var be=le,pe=(c("0a6e"),c("2381"),c("d399")),fe=(c("e7e5"),c("d257")),me=c("0613"),je=c("a873"),Oe=c("459d"),ve=Object(n["defineComponent"])({components:{vanSearch:N["a"],VanPopup:Y["b"],VanTreeSelect:X,VanCheckbox:be},setup:function(){var e=Object(n["getCurrentInstance"])(),t=Object(q["c"])(),c=Object(q["d"])(),o=Object(fe["s"])(),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={buildingName:""},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:fe["x"],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(Oe["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(Oe["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(fe["A"])(e);Object(Oe["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(){e.proxy.$loadingStart(0),O.querySpaceList()},updateWorkSpace:function(e){e.checked?O.insertWorkSpace(e):O.deleteWorkSpace(e)},insertWorkSpace:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c={spaceId:e.spaceId,isMajorSpace:t,macAddress:O.userInfo.mac};Object(Oe["D"])(c).then((function(e){}))},deleteWorkSpace:function(e){var t={spaceId:e.spaceId,macAddress:O.userInfo.mac};Object(Oe["e"])(t).then((function(e){}))},querySpaceList:function(){var t={criteria:{projectId:O.userInfo.projectId,macAddress:O.userInfo.mac}};Object(Oe["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):1===a.length?(O.insertWorkSpace(a[0],1),e.proxy.$loadinngEnd(),c.push({name:"envmonitor",query:{spaceId:a[0].spaceId}})):Object(pe["a"])("请选择办公空间!")})).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,Object(n["nextTick"])((function(){O.setPageScroolTop()})),O.clearSearchName(),O.getPadSpaceList()},clearSearchName:function(){O.searchSpaceName="",O.spaceType=f;var e=document.querySelector(".choice-space");e.scrollTop=0},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(fe["A"])(t);Object(Oe["s"])(c).then((function(t){var c,o=t;"success"===o.result?(O.spaceData=null!==(c=null===o||void 0===o?void 0:o.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,Object(n["nextTick"])((function(){O.setPageScroolTop()}))}))},setPageScroolTop:function(){for(var e=0,t=0;t<O.spaceData.length;t++)if(O.spaceData[t].checked){e=t;break}var c=document.querySelector("#space"+e),n=document.querySelector(".choice-space"),o=c?c.offsetTop:0;o>120?o-=120:o=0,n.scrollTop=n?o:0},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;if(me["a"].commit(je["a"].SET_PROJECT_ID,c),O.getDefaultLocation(),e){var n={spaceId:e};O.insertWorkSpace(n,0)}}});return Object(n["onMounted"])((function(){O.init()})),Object(I["a"])({},Object(n["toRefs"])(O))}}),he=(c("30f3"),c("6c44"),c("6b0d")),ge=c.n(he);const ke=ge()(ve,[["render",y],["__scopeId","data-v-16b8781e"]]);t["default"]=ke},d8ac:function(e,t,c){}}]);
- //# sourceMappingURL=chunk-095f9bd6.e40df808.js.map
|