(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-147a1e52"],{"09de":function(e,n,c){"use strict";c.r(n);var t=c("7a23"),o={class:"my-space",id:"env"},a=c("5530"),d=c("0500"),u=c("6c02"),r=c("0613"),s=c("459d"),i=c("d399"),p=(c("e7e5"),c("68ef"),c("cb51"),c("3743"),c("a71a"),c("4d75"),c("872c"),c("d257")),f=(d=Object(t.defineComponent)({components:{MapBox:d.a},setup:function(e,n){var c=Object(u.d)(),o=(Object(u.c)(),Object(t.reactive)({mapRef:{},showSecenDetailDalig:!1,spaceInfo:null,userInfo:r.a.state.user,loadingStart:function(){i.a.loading({duration:0,forbidClick:!0})},loadinngEnd:function(){i.a.clear()},getPermanentSpace:function(){o.loadingStart(),Object(s.u)().then((function(e){"success"===e.result?o.spaceInfo=e.data:o.spaceInfo=null,o.loadinngEnd()})).catch((function(){o.spaceInfo=null,o.loadinngEnd()}))},delPermanentSpace:function(e){var n={id:o.spaceInfo.id};n=Object(p.B)(n);Object(s.d)(n).then((function(e){"success"===e.result?(Object(i.a)("取消设置成功"),o.getPermanentSpace(),o.mapRef.selectArea={}):Object(i.a)("取消设置失败")}))},changeSpaceId:function(e){e={spaceId:e,userId:o.userInfo.userId,projectId:o.userInfo.projectId},o.loadingStart(),Object(s.G)(e).then((function(e){"success"===e.result?(o.loadinngEnd(),c.push({path:"/envmonitor"})):(o.loadinngEnd(),Object(i.a)(e.message))})).catch((function(){o.loadinngEnd()}))}}));return Object(t.onBeforeMount)((function(){o.getPermanentSpace()})),Object(a.a)({},Object(t.toRefs)(o))}}),c("57c6"),c("6b0d"));c=c.n(f);n.default=c()(d,[["render",function(e,n,c,a,d,u){var r=Object(t.resolveComponent)("map-box");return Object(t.openBlock)(),Object(t.createElementBlock)("div",o,[e.spaceInfo?(Object(t.openBlock)(),Object(t.createBlock)(r,{key:0,class:"map-content",ref:"mapRef",onChangeSpaceId:e.changeSpaceId,onDelPermanentSpace:e.delPermanentSpace,isSetSpace:!0,spaceInfo:e.spaceInfo,projectId:e.userInfo.projectId,id:"map"},null,8,["onChangeSpaceId","onDelPermanentSpace","spaceInfo","projectId"])):Object(t.createCommentVNode)("",!0)])}],["__scopeId","data-v-2c7d44d9"]])},"2de2":function(e,n,c){"use strict";c.d(n,"d",(function(){return t})),c.d(n,"c",(function(){return o})),c.d(n,"b",(function(){return a})),c.d(n,"e",(function(){return d})),c.d(n,"a",(function(){return u}));var t="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",a="/duoduo-service/duoduoenv-service/",d="/duoduo-service/",u="/duoduo-service/custom-service/"},"57c6":function(e,n,c){"use strict";c("ac5b")},"872c":function(e,n,c){},ac5b:function(e,n,c){}}]);