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