1 |
- {"version":3,"sources":["webpack:///./src/views/envmonitor/mySpace/index.vue?b6b1","webpack:///./src/views/envmonitor/mySpace/index.vue?0e41","webpack:///./src/views/envmonitor/mySpace/index.vue","webpack:///./src/config/index.ts","webpack:///./src/views/envmonitor/mySpace/index.vue?4a15"],"names":["_hoisted_1","class","id","render","_ctx","_cache","$props","$setup","$data","$options","_component_map_box","spaceInfo","key","ref","onChangeSpaceId","changeSpaceId","onDelPermanentSpace","delPermanentSpace","isSetSpace","projectId","userInfo","components","MapBox","setup","props","contx","mapRef","router","proxyData","showSecenDetailDalig","store","state","user","loadingStart","loading","duration","forbidClick","loadinngEnd","clear","getPermanentSpace","then","res","resResult","result","data","catch","params","str","resData","selectArea","spaceId","userId","push","path","message","__exports__","setupService","objectService","duoduoenvService","weachatService","customService"],"mappings":"yIAGMA,EAAa,CACjBC,MAAO,WACPC,GAAI,OAGA,SAAUC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAqB,8BAAkB,WAE7C,OAAQ,yBAAc,gCAAoB,MAAOV,EAAY,CAC1DI,EAAKO,WACD,yBAAc,yBAAaD,EAAoB,CAC9CE,IAAK,EACLX,MAAO,cACPY,IAAK,SACLC,gBAAiBV,EAAKW,cACtBC,oBAAqBZ,EAAKa,kBAC1BC,YAAY,EACZP,UAAWP,EAAKO,UAChBQ,UAAWf,EAAKgB,SAASD,UACzBjB,GAAI,OACH,KAAM,EAAG,CAAC,kBAAmB,sBAAuB,YAAa,eACpE,gCAAoB,IAAI,K,gKCdjB,+BAAgB,CAC7BmB,WAAY,CACVC,SAAA,MAEFC,MAJ6B,SAIvBC,EAAOC,GACX,IAAIC,EAAc,GACZC,EAAS,iBACThB,EAAiB,KAEjBiB,GADW,iBACC,sBAAS,CACzBF,OAAQA,EACRG,sBAAsB,EACtBlB,UAAWA,EACXS,SAAUU,EAAA,KAAMC,MAAMC,KAItBC,aARyB,WASvB,OAAMC,QAAQ,CACZC,SAAU,EACVC,aAAa,KAMhBC,YAjBwB,WAkBvB,OAAMC,SAKRC,kBAvByB,WAwBvBX,EAAUK,eACV,iBAAoBO,MAAK,SAAAC,GACvB,IAAIC,EAAiBD,EACI,YAArBC,EAAUC,OACZf,EAAUjB,UAAY+B,EAAUE,KAEhChB,EAAUjB,UAAY,KAExBiB,EAAUS,iBACTQ,OAAM,WACPjB,EAAUjB,UAAY,KACtBiB,EAAUS,kBAOdpB,kBA1CyB,SA0CPf,GAChB,IAAI4C,EAAS,CAAE5C,GAAI0B,EAAUjB,UAAUT,IACnC6C,EAAW,eAAeD,GAC9B,eAAkBC,GAAKP,MAAK,SAAAC,GAC1B,IAAIO,EAAeP,EACI,YAAnBO,EAAQL,QACV,eAAM,UACNf,EAAUW,oBACVX,EAAUF,OAAOuB,WAAa,IAE9B,eAAM,cAIZlC,cAxDyB,SAwDXmC,GACZ,IAAIJ,EAAc,CAChBI,QAASA,EACTC,OAAQvB,EAAUR,SAAS+B,OAC3BhC,UAAWS,EAAUR,SAASD,WAEhCS,EAAUK,eACV,eAAea,GAAQN,MAAK,SAAAC,GAC1B,IAAIO,EAAeP,EACI,YAAnBO,EAAQL,QACVf,EAAUS,cACVV,EAAOyB,KAAK,CACVC,KAAM,kBAIRzB,EAAUS,cACV,eAAMW,EAAQM,aAGfT,OAAM,WACPjB,EAAUS,qBAOhB,OAHA,4BAAc,WACZT,EAAUW,uBAEZ,kBACK,oBAAOX,O,iCCjGhB,MAAM2B,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASpD,GAAQ,CAAC,YAAY,qBAE1E,gB,oCCTf,0KAQO,IAAMqD,EAAe,iCACfC,EAAgB,kCAChBC,EAAmB,qCACnBC,EAAiB,mBACjBC,EAAgB,mC,oCCZ7B,W","file":"static/js/chunk-2e62b616.365d2f32.js","sourcesContent":["import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2c7d44d9\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n class: \"my-space\",\n id: \"env\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_map_box = _resolveComponent(\"map-box\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_ctx.spaceInfo)\n ? (_openBlock(), _createBlock(_component_map_box, {\n key: 0,\n class: \"map-content\",\n ref: \"mapRef\",\n onChangeSpaceId: _ctx.changeSpaceId,\n onDelPermanentSpace: _ctx.delPermanentSpace,\n isSetSpace: true,\n spaceInfo: _ctx.spaceInfo,\n projectId: _ctx.userInfo.projectId,\n id: \"map\"\n }, null, 8, [\"onChangeSpaceId\", \"onDelPermanentSpace\", \"spaceInfo\", \"projectId\"]))\n : _createCommentVNode(\"\", true)\n ]))\n}","\nimport { defineComponent, onBeforeMount, reactive, toRefs } from 'vue'\nimport MapBox from '@/views/envmonitor/components/Map/MapBox.vue'\nimport { useRoute } from 'vue-router'\nimport { store } from '@/store'\nimport { delPermanentSpace, getPermanentSpace, permanentSpace } from '@/apis/envmonitor'\nimport { Toast, Notify } from 'vant'\nimport { useRouter } from 'vue-router'\nimport { setQueryConfig } from '@/utils'\n\nexport default defineComponent({\n components: {\n MapBox\n },\n setup(props, contx) {\n let mapRef: any = {}\n const router = useRouter()\n const spaceInfo: any = null\n let route: any = useRoute()\n const proxyData = reactive({\n mapRef: mapRef,\n showSecenDetailDalig: false, // 是否展示场景详情页面\n spaceInfo: spaceInfo,\n userInfo: store.state.user,\n /**\n * 加载loading\n */\n loadingStart() {\n Toast.loading({\n duration: 0, // 持续展示 toast\n forbidClick: true\n })\n },\n /**\n * 结束\n */\n loadinngEnd() {\n Toast.clear()\n },\n /**\n * 获取常驻空间\n */\n getPermanentSpace() {\n proxyData.loadingStart()\n getPermanentSpace().then(res => {\n let resResult: any = res\n if (resResult.result === 'success') {\n proxyData.spaceInfo = resResult.data\n } else {\n proxyData.spaceInfo = null\n }\n proxyData.loadinngEnd()\n }).catch(() => {\n proxyData.spaceInfo = null\n proxyData.loadinngEnd()\n })\n },\n /**\n * 取消默认空间\n * @param id\n */\n delPermanentSpace(id: any) {\n let params = { id: proxyData.spaceInfo.id }\n let str: any = setQueryConfig(params)\n delPermanentSpace(str).then(res => {\n let resData: any = res\n if (resData.result === 'success') {\n Toast('取消设置成功')\n proxyData.getPermanentSpace()\n proxyData.mapRef.selectArea = {}\n } else {\n Toast('取消设置失败')\n }\n })\n },\n changeSpaceId(spaceId: any) {\n let params: any = {\n spaceId: spaceId,\n userId: proxyData.userInfo.userId,\n projectId: proxyData.userInfo.projectId\n }\n proxyData.loadingStart()\n permanentSpace(params).then(res => {\n let resData: any = res\n if (resData.result === 'success') {\n proxyData.loadinngEnd()\n router.push({\n path: '/envmonitor'\n // query: { showSpaceTip: 'true' }\n })\n } else {\n proxyData.loadinngEnd()\n Toast(resData.message)\n // 提示后调子组建的方法清除选中\n }\n }).catch(() => {\n proxyData.loadinngEnd()\n })\n }\n })\n onBeforeMount(() => {\n proxyData.getPermanentSpace()\n })\n return {\n ...toRefs(proxyData)\n }\n }\n})\n","import { render } from \"./index.vue?vue&type=template&id=2c7d44d9&scoped=true&ts=true\"\nimport script from \"./index.vue?vue&type=script&lang=ts\"\nexport * from \"./index.vue?vue&type=script&lang=ts\"\n\nimport \"./index.vue?vue&type=style&index=0&id=2c7d44d9&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/wangyong/shanggeyun/code/sagacloud-sagacare-ipad/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2c7d44d9\"]])\n\nexport default __exports__","// // 默认配置\n// import { netConfig, settingConfig, themeConfig } from './default'\n// // 自定义配置\n// import customConfig from './customConfig'\n//\n// // 导出配置(自定义配置优先级高)\n// export default Object.assign({}, netConfig, settingConfig, themeConfig, customConfig)\n\nexport const setupService = '/duoduo-service/setup-service/'\nexport const objectService = '/duoduo-service/object-service/'\nexport const duoduoenvService = '/duoduo-service/duoduoenv-service/'\nexport const weachatService = '/duoduo-service/'\nexport const customService = '/duoduo-service/custom-service/'\nexport const ssoService = '/sso/'\nexport const testApi = '/test/'\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./index.vue?vue&type=style&index=0&id=2c7d44d9&lang=scss&scoped=true\""],"sourceRoot":""}
|