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