chunk-7c38c7ad.8e069a65.js.map 46 KB

1
  1. {"version":3,"sources":["webpack:///./src/config/index.ts","webpack:///./src/apis/envmonitor.ts","webpack:///./src/views/mapData/indexOld.vue?5858","webpack:///./src/views/mapData/indexOld.vue?61fe","webpack:///./src/views/mapData/indexOld.vue","webpack:///./node_modules/core-js/internals/whitespaces.js","webpack:///./node_modules/core-js/internals/string-trim.js","webpack:///./node_modules/core-js/internals/array-fill.js","webpack:///./node_modules/core-js/modules/es.number.constructor.js","webpack:///./node_modules/core-js/modules/es.array.fill.js","webpack:///./src/views/mapData/indexOld.vue?4b77"],"names":["setupService","objectService","duoduoenvService","weachatService","customService","testApi","getCompanyInfo","companyInfo","request","companyId","GET","undefined","json","getWeather","params","getSpaceInfo","data","POST","getMeetingSceneHttp","spaceId","getEquipmentListHttp","getFeedbackDocumentsHttp","changeTempHttp","getLampHttp","timeout","setallLampHttp","setEquipeHttp","getStatusHttp","getObjectDataEqpGroupHttp","switchoverSceneHttp","changeSetTimeHttp","getChartListHTTP","getBuildingList","getFloorList","getMapInfo","getSpaceEquipType","getSpaceLike","permanentSpace","getPermanentSpace","delPermanentSpace","getUserControlAuth","getSpaceMode","getSpaceTemp","querySpaceSceneConfig","queryCustomAndScence","saveBatchCustomScene","getDefaultLocation","getPadSpaceList","saveWorkSpace","insertWorkSpace","deleteWorkSpace","queryWorkSpace","checkWorkSpace","queryCustomerservice","getPadQrCodeStatus","getPadImg","querySpaceConditioners","setSpaceCondtioners","saveMapPointInfo","getSpaceEquipList","n","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","id","width","height","render","_ctx","_cache","$props","$setup","$data","$options","type","webkitdirectory","onChange","getFile","components","setup","allObj","spaceArr","floorObj","proxyData","initCanvas","canvasDom","document","querySelector","ctx","getContext","dots","objArr","key","item","lineWidth","fillStyle","beginPath","circleArr","i","length","left","top","push","lineTo","bezierCurveTo","fill","closePath","strokeStyle","stroke","e","files","target","fileSelect","name","split","reader","FileReader","readAsText","onload","result","handPoint","formSpaceData","spaceList","loading","duration","forbidClick","message","then","res","clear","catch","map","devicePoint","dev","logoPointArr","pointArr","circlePoint","detailPoint","replace","nameArr","arr","itemArr","obj","floorId","pointObj","toString","localName","canClick","index","flag","handleStr","mapstr","maparr","allDiv","divobj","divarr","indexOf","idarr","idstr","getNum","title","titleArr","order","sort","sortab","obj1","obj2","value1","value2","str","param","paindex","palength","otherstr","substr","pxindex","numstr","tempStr","Number","__exports__","module","exports","requireObjectCoercible","whitespaces","whitespace","ltrim","RegExp","rtrim","createMethod","TYPE","$this","string","String","start","end","trim","toObject","toAbsoluteIndex","toLength","value","O","this","argumentsLength","arguments","endPos","DESCRIPTORS","global","isForced","redefine","has","classof","inheritIfRequired","toPrimitive","fails","create","getOwnPropertyNames","f","getOwnPropertyDescriptor","defineProperty","NUMBER","NativeNumber","NumberPrototype","prototype","BROKEN_CLASSOF","toNumber","argument","first","third","radix","maxCode","digits","code","it","charCodeAt","NaN","slice","parseInt","NumberWrapper","dummy","valueOf","call","keys","j","constructor","$","addToUnscopables","proto"],"mappings":"mIAAA,4MAQO,IAAMA,EAAe,iCACfC,EAAgB,kCAChBC,EAAmB,qCACnBC,EAAiB,mBACjBC,EAAgB,kCAEhBC,EAAU,U,4gDCHVC,EAAiB,SAACC,GAC7B,OAAO,iBAAQC,QAAR,8BAAiED,EAAYE,WAAa,OAAOC,SAAKC,EAAW,OAAYC,OAEzHC,EAAa,SAACC,GACzB,OAAO,iBAAQN,QAAR,UAAqD,OAArD,8BAAwFM,GAAU,OAAOJ,SAAKC,EAAW,OAAYC,OAEjIG,EAAe,SAACC,GAC3B,OAAO,iBAAQR,QAAR,UAAkD,OAAlD,kBAAoF,OAAOS,KAAMD,EAAM,OAAYJ,OAI/GM,EAAsB,SAACJ,GAClC,OAAO,iBAAQN,QAAR,UAAwB,OAAxB,yDAAyFM,EAAOK,SAAW,OAAOT,SAAKC,EAAW,OAAYC,OAG1IQ,EAAuB,SAACN,GACnC,OAAO,iBAAQN,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,GAHAmF,EAAOD,EAAOG,WAAWrF,GAGrBmF,EAAO,IAAMA,EAAOF,EAAS,OAAOK,IACxC,OAAOE,SAASN,EAAQF,GAE5B,OAAQI,GAKZ,GAAIzB,EAASY,GAASC,EAAa,UAAYA,EAAa,QAAUA,EAAa,SAAU,CAS3F,IARA,IAgBqBhI,EAhBjBiJ,EAAgB,SAAgBtC,GAClC,IAAIiC,EAAK7B,UAAUxG,OAAS,EAAI,EAAIoG,EAChCuC,EAAQrC,KACZ,OAAOqC,aAAiBD,IAElBd,EAAiBV,GAAM,WAAcQ,EAAgBkB,QAAQC,KAAKF,MAAa5B,EAAQ4B,IAAUnB,GACjGR,EAAkB,IAAIS,EAAaI,EAASQ,IAAMM,EAAOD,GAAiBb,EAASQ,IAElFS,EAAOpC,EAAcU,EAAoBK,GAAgB,8LAQhE1G,MAAM,KAAMgI,EAAI,EAAQD,EAAK9I,OAAS+I,EAAGA,IACrCjC,EAAIW,EAAchI,EAAMqJ,EAAKC,MAAQjC,EAAI4B,EAAejJ,IAC1D8H,EAAemB,EAAejJ,EAAK6H,EAAyBG,EAAchI,IAG9EiJ,EAAcf,UAAYD,EAC1BA,EAAgBsB,YAAcN,EAC9B7B,EAASF,EAAQa,EAAQkB,K,qBC9E3B,IAAIO,EAAI,EAAQ,QACZ3I,EAAO,EAAQ,QACf4I,EAAmB,EAAQ,QAI/BD,EAAE,CAAErI,OAAQ,QAASuI,OAAO,GAAQ,CAClC7I,KAAMA,IAIR4I,EAAiB,S,kCCXjB","file":"static/js/chunk-7c38c7ad.8e069a65.js","sourcesContent":["// // 默认配置\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","import { RootObject, RootWeatherObject } from '@/model/rootObject'\nimport { CompanyModel, OutherWeather, SpaceModel } from '@/model/userModel'\nimport { https, post } from '@/utils/https'\nimport { ContentType, Method, RequestParams } from 'axios-mapper'\nimport { setQueryConfig } from '@/utils'\nimport { customService, duoduoenvService, objectService, setupService, testApi, weachatService } from '@/config'\n\n// const comInfo = getUserInfo()\n// const comParams: string = \"\"\n\n// https://sagacare-h5.tenants.link/api/company/config/245e7060643811eb934c0237aedb39a6\nexport const getCompanyInfo = (companyInfo: RequestParams) => {\n return https().request<RootObject<CompanyModel>>(`/api/company/config/${companyInfo.companyId}`, Method.GET, undefined, ContentType.json)\n}\nexport const getWeather = (params: string) => {\n return https().request<RootWeatherObject<OutherWeather>>(`${objectService}weather/getCurrent?${params}`, Method.GET, undefined, ContentType.json)\n}\nexport const getSpaceInfo = (data: any) => {\n return https().request<RootWeatherObject<SpaceModel>>(`${duoduoenvService}space/property`, Method.POST, data, ContentType.json)\n}\n\n// 获取会议室场景\nexport const getMeetingSceneHttp = (params: any) => {\n return https().request<any>(`${duoduoenvService}meeting/room/scene/getMeetingScene/V2?spaceId=${params.spaceId}`, Method.GET, undefined, ContentType.json)\n}\n// 获取设备信息\nexport const getEquipmentListHttp = (params: any) => {\n return https().request<any>(`${duoduoenvService}object/equipment/findForServe?spaceId=${params.spaceId}`, Method.POST, undefined, ContentType.json)\n}\n// 查询定制时间\nexport const getSetTimeHttp = (params: any) => {\n return https().request<any>(`${duoduoenvService}customScene/queryCustom?spaceId=${params.spaceId}`, Method.GET, undefined, ContentType.json)\n}\n// 空调 - 调节文案/空调信息\nexport const getFeedbackDocumentsHttp = (data: any) => {\n return https().request<any>(`${duoduoenvService}custom/feedback/documents`, Method.POST, data, ContentType.json)\n}\n\n// 空调调节\nexport const changeTempHttp = (params: any) => {\n return https().request<RootObject<any>>(`${duoduoenvService}custom/feedbackCreate/v2`, Method.POST, params, ContentType.json)\n}\n// 查询灯的状态(优先查采集的状态)\nexport const getLampHttp = (params: any) => {\n return https({ timeout: 1000 }).request<RootObject<any>>(`${duoduoenvService}light/status/query?spaceId=${params.spaceId}`, Method.GET, undefined, ContentType.json)\n}\n\n// 批量操作 灯\nexport const setallLampHttp = (data: any) => {\n return post(`${duoduoenvService}light/onoff/set`, data)\n}\n// 设置窗帘 \nexport const setEquipeHttp = (data: any) => {\n return post(`${duoduoenvService}object/eqp/infocode/set`, data)\n}\n\n// 指令失败的时候轮询查询灯的状态\nexport const getStatusHttp = (data: any) => {\n return post(`${duoduoenvService}light/onoff/setSatus`, data)\n}\n\n// 获取窗帘数据列表\nexport const getObjectDataEqpGroupHttp = (params: any) => {\n return https().request<RootObject<any>>(`${duoduoenvService}object/objectDataEqpGroup/query`, Method.POST, params, ContentType.json)\n}\n\n// 切换场景\nexport const switchoverSceneHttp = (params: any) => {\n return https().request<RootObject<any>>(`${duoduoenvService}meeting/room/scene/switchover`, Method.POST, params, ContentType.json)\n}\n\nexport const changeSetTimeHttp = (params: any) => {\n return https().request<RootObject<any>>(`${duoduoenvService}customScene/create`, Method.POST, params, ContentType.json)\n}\n// 详情页面的图表数据\nexport const getChartListHTTP = (params: any) => {\n return https().request<RootObject<any>>(`${duoduoenvService}/spaceAdjust/queryPropertyData?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n// 查询建筑的信息\nexport const getBuildingList = (params: any) => {\n return https().request<any>(`${objectService}object/building/query`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 查询楼层信息\n * @param params\n */\nexport const getFloorList = (params: any) => {\n return https().request<any>(`${objectService}object/floor/query`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 获取地图数据\n * @param params\n */\nexport const getMapInfo = (params: any) => {\n return https().request<any>(`${setupService}map/queryMapInfo`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 获取空间设备\n * @param params\n */\nexport const getSpaceEquipType = (params: any) => {\n return https().request<any>(`${objectService}object/equipment/querySpaceEquipType?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 模糊查询空间列表数据\n * @param params\n */\nexport const getSpaceLike = (params: any) => {\n return https().request<any>(`${objectService}object/space/query`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 增加常驻空间\n */\nexport const permanentSpace = (params: any) => {\n // return https().request<any>(`${setupService}permanentSpace/save`, Method.POST, params, ContentType.json)\n // return https().request<any>(`${testApi}permanentSpace/save`, Method.POST, params, ContentType.json)\n return https().request<any>(`${setupService}permanentSpace/save`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 获取常驻空间\n */\nexport const getPermanentSpace = () => {\n return https().request<any>(`${setupService}permanentSpace/query`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 删除常驻空间\n */\nexport const delPermanentSpace = (params: any) => {\n return https().request<any>(`${setupService}permanentSpace/delete?${params}`)\n}\n\n/**\n * 获取用户使用权限\n */\nexport const getUserControlAuth = () => {\n return https().request<any>(`${setupService}permanentSpace/queryZJ`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 获取空间运行模式\n */\nexport const getSpaceMode = () => {\n return https().request<any>(`${objectService}object/equipment/querySpaceModeSet`, Method.GET, undefined, ContentType.json)\n}\n/**\n * 获取空调设备温度\n */\nexport const getSpaceTemp = () => {\n return https().request<any>(`${objectService}object/equipment/querySpaceTempSet`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * \n * @param params 查询场景配置\n * @returns \n */\nexport const querySpaceSceneConfig = (params: any) => {\n return https().request<any>(`${setupService}scene/querySpaceSceneConfig?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 查询加班记录\n */\nexport const queryCustomAndScence = (params: any) => {\n //return https().request<any>(`${testApi}customScene/queryCustomAndScence?${params}`, Method.GET, undefined, ContentType.json)\n return https().request<any>(`${duoduoenvService}customScene/queryCustomAndScence?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 添加(取消)加班记录\n * @param params\n */\nexport const saveBatchCustomScene = (data: any) => {\n //return post(`${testApi}customScene/saveBatchCustomScene`, data)\n return post(`${duoduoenvService}customScene/saveBatchCustomScene`, data)\n}\n\n\n/**\n * 查询默认位置\n */\nexport const getDefaultLocation = (params: any) => {\n return https().request<any>(`${setupService}padSpace/getDefaultLocation?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 查询空间列表\n */\nexport const getPadSpaceList = (params: any) => {\n return https().request<any>(`${setupService}padSpace/getPadSpaceList?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 设置成办公空间-(\"批量保存\")\n */\nexport const saveWorkSpace = (params: any) => {\n return https().request<any>(`${setupService}padSpace/saveWorkSpace`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 设置工作空间\n * @param params \n */\nexport const insertWorkSpace = (params: any) => {\n return https().request<any>(`${setupService}padSpace/insertWorkSpace`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 删除工作空间\n * @param params \n */\nexport const deleteWorkSpace = (params: any) => {\n return https().request<any>(`${setupService}padSpace/deleteWorkSpace`, Method.POST, params, ContentType.json)\n}\n\n\n\n/**\n * 查询平板下面的办公空间\n */\nexport let queryWorkSpace = (params: any) => {\n return https().request<any>(`${setupService}padSpace/queryWorkSpace`, Method.POST, params, ContentType.json)\n}\n\n\n/**\n * 查询平板下面的办公空间\n */\nexport let checkWorkSpace = (params: any) => {\n return https().request<any>(`${setupService}padSpace/queryWorkSpace`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 查询客户列表\n */\nexport const queryCustomerservice = (params: any) => {\n return https().request<RootObject<any>>(`${weachatService}wechat-service-duoduoenv/duoduoenv/customerservice/query`, Method.POST, params, ContentType.json)\n}\n\n\n/**\n * 获取二维码状态\n */\nexport const getPadQrCodeStatus = (params: any) => {\n return https().request<any>(`${setupService}padLogin/getPadQrCodeStatus?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n\n/**\n * 获取背景图\n * @param params \n * @returns \n */\nexport const getPadImg = (params: any) => {\n // return https().request<any>(`${setupService}/padImage/queryImageByFuncType`,Method.GET, undefined, ContentType.json)\n return https().request<any>(`${setupService}padImage/queryImageByFuncType?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 设备手动控制\n */\nexport const querySpaceConditioners = (params: any) => {\n return https().request<any>(`${duoduoenvService}ctrl/querySpaceConditioners?${params}`, Method.GET, undefined, ContentType.json)\n // return https().request<any>(`${testApi}ctrl/querySpaceConditioners?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 设备手动控制\n */\nexport const setSpaceCondtioners = (data: any) => {\n return post(`${duoduoenvService}ctrl/set`, data)\n // return post(`${testApi}ctrl/set`, data)\n}\n\n// 地图数据保存\nexport const saveMapPointInfo = (data: any) => {\n // return post(`${duoduoenvService}map/saveMapPointInfo`, data)\n return https().request<any>(`${testApi}map/saveMapPointInfo`, Method.POST, data, ContentType.json)\n}\n\n\n// 获取空间下的可控制的设备\nexport const getSpaceEquipList = (params: any) => {\n return https().request<any>(`${customService}equipmentRun/queryEquipmentRunConfig?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n\n","import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-626ff364\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"com-upload\" }\nconst _hoisted_2 = { class: \"file-upload\" }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"file-upload-text\" }, \"上传文件\", -1))\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"canvas\", {\n id: \"myCanvas\",\n width: \"10000\",\n height: \"10000\"\n}, \" Canvas画正多边形 \", -1))\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"input\", {\n class: \"file-upload-input\",\n id: \"upfile\",\n type: \"file\",\n webkitdirectory: \"\",\n onChange: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.getFile && _ctx.getFile(...args)))\n }, null, 32)\n ]),\n _hoisted_4\n ]))\n}","\nimport { saveMapPointInfo } from \"@/apis/envmonitor\";\nimport { number } from \"echarts\";\nimport { Toast } from \"vant\";\nimport { defineComponent, nextTick, onMounted, reactive, toRefs } from \"vue\";\n\nexport default defineComponent({\n components: {},\n setup() {\n let allObj: any = [];\n let spaceArr: any = [];\n let floorObj: any = {};\n const proxyData = reactive({\n allObj: allObj,\n floorObj: floorObj,\n spaceArr: spaceArr,\n // canvas画图\n initCanvas() {\n let canvasDom: any = document.querySelector(\"#myCanvas\");\n let ctx: any = canvasDom.getContext(\"2d\");\n let dots: any = proxyData.allObj.objArr;\n console.log(proxyData.allObj.objArr);\n for (let key in dots) {\n let item = dots[key];\n console.log(item);\n ctx.lineWidth = 1;\n ctx.fillStyle = \"#cfefef\";\n ctx.beginPath();\n let circleArr: any = [];\n for (let i = 0; i < item.length; i++) {\n item[i].left = item[i].left;\n item[i].top = item[i].top;\n if (item[i].type === \"circle\") {\n circleArr.push(item[i]);\n } else {\n if (!item[i].type) {\n ctx.lineTo(item[i].left, item[i].top);\n }\n }\n }\n if (circleArr && circleArr.length) {\n ctx.lineTo(circleArr[0].left, circleArr[0].top);\n ctx.bezierCurveTo(\n circleArr[1].left,\n circleArr[1].top,\n circleArr[2].left,\n circleArr[2].top,\n circleArr[3].left,\n circleArr[3].top\n );\n } else {\n ctx.lineTo(item[0].left, item[0].top);\n }\n ctx.fill();\n ctx.closePath();\n ctx.strokeStyle = \"red\"; //填充边框颜色\n ctx.stroke();\n // canvasDom.addEventListener(\"click\", function (e: any) {\n // const canvasInfo = canvasDom.getBoundingClientRect();\n // console.log(e);\n // console.log(canvasInfo);\n // console.log(ctx.isPointInPath(e.layerX, e.layerY));\n // });\n }\n },\n getFile(e: any) {\n console.log(e.target.files);\n let files: any = e.target.files;\n for (let i = 0; i < files.length; i++) {\n let fileSelect: any = files[i];\n let name: any = fileSelect.name;\n name = name.split(\".\")[0];\n let reader: any = new FileReader();\n if (typeof FileReader === \"undefined\") {\n console.log(\"您的浏览器不支持FileReader接口\");\n return;\n }\n reader.readAsText(fileSelect, \"gb2312\"); //注意读取中文的是用这个编码,不是utf-8\n reader.onload = function () {\n let result: any = reader.result;\n proxyData.handPoint(result, name);\n if (i === files.length - 1) {\n // 处理数据的高度问题(因为取点的图是y是从下面开始获取的 )\n proxyData.formSpaceData();\n proxyData.floorObj.spaceList = proxyData.spaceArr;\n proxyData.saveMapPointInfo();\n }\n };\n }\n },\n // 地图数据处理结果保存\n saveMapPointInfo() {\n console.log(\"数据格式化---\");\n console.log(proxyData.floorObj);\n Toast.loading({\n duration: 0, // 持续展示 toast\n forbidClick: true,\n message: \"正在上传...\",\n });\n saveMapPointInfo(proxyData.floorObj)\n .then((res: any) => {\n if (res.result == \"success\") {\n }\n Toast.clear();\n })\n .catch(() => {\n Toast.clear();\n });\n },\n // 数据格式化\n formSpaceData() {\n proxyData.spaceArr.map((item: any) => {\n item.devicePoint.map((dev: any) => {\n dev.left = dev.left * 1;\n dev.top = proxyData.floorObj.height - dev.top;\n // dev.top = dev.top;\n });\n item.logoPointArr.map((dev: any) => {\n dev.left = dev.left * 1;\n dev.top = proxyData.floorObj.height - dev.top;\n // dev.top = dev.top;\n });\n item.pointArr.map((dev: any) => {\n dev.left = dev.left * 1;\n dev.top = proxyData.floorObj.height - dev.top;\n // dev.top = dev.top;\n });\n item.circlePoint.map((dev: any) => {\n dev.left = dev.left * 1;\n dev.top = proxyData.floorObj.height - dev.top;\n // dev.top = dev.top;\n });\n item.detailPoint.map((dev: any) => {\n dev.left = dev.left * 1;\n dev.top = proxyData.floorObj.height - dev.top;\n // dev.top = dev.top;\n });\n });\n },\n handPoint(result: any, name: any) {\n result = result.replace(/\\\"/g, \"\");\n let nameArr: any = name.split(\"-\");\n let arr: any = result.split(/[(\\r\\n)\\r\\n]+/);\n if (nameArr && nameArr[0] == \"L\") {\n arr.map((item: any) => {\n if (item) {\n let itemArr: any = item.split(\",\");\n let obj: any = {\n width: itemArr[0] ? itemArr[0] * 1 : 0,\n height: itemArr[1] ? itemArr[1] * 1 : 0,\n };\n console.log(obj);\n if (obj.width && obj.height) {\n proxyData.floorObj.width = obj.width;\n proxyData.floorObj.height = obj.height;\n proxyData.floorObj.floorId = nameArr[1];\n }\n }\n });\n } else {\n if (nameArr[0]) {\n let pointObj: any = {\n spaceId: nameArr[1] ? nameArr[1].toString() : \"\",\n localName: nameArr[0] ? nameArr[0].toString() : \"\",\n canClick: nameArr[2] && nameArr[2] == \"unc\" ? false : true,\n pointArr: [],\n devicePoint: [],\n circlePoint: [],\n detailPoint: [],\n logoPointArr: [],\n };\n\n arr.map((item: any, index: any) => {\n if (item) {\n let itemArr: any = item.split(\",\");\n let obj: any = {\n left: itemArr[0],\n top: itemArr[1],\n };\n if (pointObj.canClick && nameArr[2] && nameArr[2] == \"c\") {\n pointObj.circlePoint.push(obj);\n } else if (\n !pointObj.canClick &&\n nameArr[2] &&\n nameArr[2] == \"c\"\n ) {\n pointObj.circlePoint.push(obj);\n } else {\n if (index < 1) {\n pointObj.devicePoint.push(obj);\n } else if (index < 2) {\n pointObj.logoPointArr.push(obj);\n } else if (index < 3) {\n pointObj.detailPoint.push(obj);\n } else {\n pointObj.pointArr.push(obj);\n }\n }\n }\n });\n\n let flag: any = false;\n proxyData.spaceArr.map((item: any) => {\n if (nameArr[1] && item.spaceId === nameArr[1]) {\n item.circlePoint = pointObj.circlePoint;\n flag = true;\n } else {\n if (item.spaceId === nameArr[0]) {\n item.logoPointArr = pointObj.logoPointArr;\n item.devicePoint = pointObj.devicePoint;\n item.pointArr = pointObj.pointArr;\n flag = true;\n }\n }\n });\n if (!flag) {\n proxyData.spaceArr.push(pointObj);\n }\n }\n }\n },\n // 处理坐标\n handleStr(mapstr: any) {\n let maparr: any = mapstr.split(\"<DIV \");\n //console.log(\"maparr\", maparr);\n let _this: any = proxyData;\n let allDiv: any = [];\n let objArr: any = {};\n let allObj: any = {};\n //debugger;\n maparr.map((item: any) => {\n let divobj: any = {};\n let divarr: any = item.split(\" \");\n //console.log(\"divarr\", divarr);\n divarr.map(function (item: any) {\n if (item.indexOf(\"id=\") > -1) {\n let idarr: any = item.split(\"=\");\n // debugger;\n let idstr: any = idarr[1];\n divobj.id = idstr;\n // console.log(\"idstr\", idstr);\n return;\n }\n });\n\n divobj.height = proxyData.getNum(item, \"HEIGHT\");\n divobj.width = proxyData.getNum(item, \"WIDTH\");\n divobj.left = proxyData.getNum(item, \"LEFT\");\n divobj.top = proxyData.getNum(item, \"TOP\");\n let title: any = proxyData.getNum(item, \"title\");\n let titleArr: any = title.split(\"-\");\n divobj.spaceId = titleArr[0];\n divobj.order = titleArr[1] * 1;\n if (titleArr[2] && titleArr[2] === \"c\") {\n divobj.type = \"circle\";\n }\n if (divobj.width) {\n allDiv.push(divobj);\n }\n });\n\n allDiv.map((item: any) => {\n if (item.spaceId) {\n if (objArr[item.spaceId]) {\n objArr[item.spaceId].push(item);\n } else {\n objArr[item.spaceId] = [item];\n }\n } else {\n allObj.width = item.width;\n allObj.height = item.height;\n }\n });\n for (let key in objArr) {\n objArr[key].sort(proxyData.sortab(\"order\"));\n }\n proxyData.allObj.objArr = objArr;\n // 画图\n proxyData.initCanvas();\n console.log(JSON.stringify(proxyData.allObj.objArr));\n },\n sortab(data: any) {\n return function (obj1: any, obj2: any) {\n var value1 = obj1[data];\n var value2 = obj2[data];\n if (value2 < value1) {\n return 1;\n } else if (value2 > value1) {\n return -1;\n } else {\n return 0;\n }\n };\n },\n getNum(str: any, param: any) {\n //debugger;\n let paindex: any = str.indexOf(param);\n // console.log(str);\n if (paindex > -1) {\n if (param === \"title\") {\n let palength: any = param.length;\n let otherstr: any = str.substr(paindex + palength);\n let pxindex: any = otherstr.indexOf(\"#\");\n // debugger\n let numstr: any = otherstr.substr(0, pxindex);\n // console.log(numstr);\n let arr: any = numstr.split(\"=\");\n let tempStr: any = arr[1];\n if (tempStr) {\n tempStr = tempStr.substr(1, tempStr.length);\n }\n // console.log(tempStr);\n return tempStr;\n } else {\n let palength: any = param.length;\n let otherstr: any = str.substr(paindex + palength);\n // console.log(otherstr)\n let pxindex: any = otherstr.indexOf(\"px\");\n let numstr: any = otherstr.substr(0, pxindex);\n numstr = numstr.replace(/:/, \"\");\n return numstr ? Number(numstr) : \"\";\n }\n }\n return \"\";\n },\n });\n nextTick(() => {});\n onMounted(() => {});\n return {\n ...toRefs(proxyData),\n };\n },\n});\n","import { render } from \"./indexOld.vue?vue&type=template&id=626ff364&scoped=true&ts=true\"\nimport script from \"./indexOld.vue?vue&type=script&lang=ts\"\nexport * from \"./indexOld.vue?vue&type=script&lang=ts\"\n\nimport \"./indexOld.vue?vue&type=style&index=0&id=626ff364&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-626ff364\"]])\n\nexport default __exports__","// a string of all valid unicode whitespaces\n// eslint-disable-next-line max-len\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var requireObjectCoercible = require('../internals/require-object-coercible');\nvar whitespaces = require('../internals/whitespaces');\n\nvar whitespace = '[' + whitespaces + ']';\nvar ltrim = RegExp('^' + whitespace + whitespace + '*');\nvar rtrim = RegExp(whitespace + whitespace + '*$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = String(requireObjectCoercible($this));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","'use strict';\nvar toObject = require('../internals/to-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toLength = require('../internals/to-length');\n\n// `Array.prototype.fill` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.fill\nmodule.exports = function fill(value /* , start = 0, end = @length */) {\n var O = toObject(this);\n var length = toLength(O.length);\n var argumentsLength = arguments.length;\n var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length);\n var end = argumentsLength > 2 ? arguments[2] : undefined;\n var endPos = end === undefined ? length : toAbsoluteIndex(end, length);\n while (endPos > index) O[index++] = value;\n return O;\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar isForced = require('../internals/is-forced');\nvar redefine = require('../internals/redefine');\nvar has = require('../internals/has');\nvar classof = require('../internals/classof-raw');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar create = require('../internals/object-create');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\n\n// Opera ~12 has broken Object#toString\nvar BROKEN_CLASSOF = classof(create(NumberPrototype)) == NUMBER;\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n var first, third, radix, maxCode, digits, length, index, code;\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = it.charCodeAt(0);\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = it.slice(2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = digits.charCodeAt(index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nif (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {\n var NumberWrapper = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var dummy = this;\n return dummy instanceof NumberWrapper\n // check on 1..constructor(foo) case\n && (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classof(dummy) != NUMBER)\n ? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);\n };\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(NativeNumber, key = keys[j]) && !has(NumberWrapper, key)) {\n defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));\n }\n }\n NumberWrapper.prototype = NumberPrototype;\n NumberPrototype.constructor = NumberWrapper;\n redefine(global, NUMBER, NumberWrapper);\n}\n","var $ = require('../internals/export');\nvar fill = require('../internals/array-fill');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.fill` method\n// https://tc39.es/ecma262/#sec-array.prototype.fill\n$({ target: 'Array', proto: true }, {\n fill: fill\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('fill');\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!./indexOld.vue?vue&type=style&index=0&id=626ff364&lang=scss&scoped=true\""],"sourceRoot":""}