1 |
- {"version":3,"sources":["webpack:///./src/assets/svg/deviceroom.svg","webpack:///./src/assets/svg/bg_disable.png","webpack:///./src/config/index.ts","webpack:///./src/apis/envmonitor.ts","webpack:///./src/assets/svg sync ^\\.\\/.*$","webpack:///./src/assets/svg/coffeeselected.svg","webpack:///./src/utils/swiper.ts","webpack:///./src/views/mapDataNew/sichuan.vue?eb25","webpack:///./src/assets/svg/dev.svg","webpack:///./src/assets/svg/coffee.svg","webpack:///./node_modules/core-js/internals/array-fill.js","webpack:///./src/assets/svg/weather.svg","webpack:///./src/assets/svg/device.svg","webpack:///./src/assets/svg/babyselected.svg","webpack:///./node_modules/core-js/modules/es.array.fill.js","webpack:///./src/views/mapDataNew/sichuan.vue?37f0","webpack:///./src/views/mapDataNew/sichuan.vue?bec9","webpack:///./src/views/mapDataNew/sichuan.vue"],"names":["module","exports","setupService","objectService","duoduoenvService","weachatService","customService","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","map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","swiper","el","options","isMove","startX","startY","moveX","moveY","disX","disY","fun","swipeLeft","swipeRight","swipeDown","swipeUp","drag","assign","addEventListener","touches","pageX","pageY","passive","mation","call","absX","Math","abs","absY","toObject","toAbsoluteIndex","toLength","value","O","this","length","argumentsLength","arguments","index","end","endPos","$","fill","addToUnscopables","target","proto","n","_hoisted_1","class","style","_hoisted_2","_hoisted_3","render","_ctx","_cache","$props","$setup","$data","$options","_component_van_search","_component_van_icon","modelValue","spaceName","$event","searchSpace","placeholder","onClick","zommAdd","name","color","zommDel","components","VanSearch","setup","spaceList","ctx","centerObj","proxyData","copySpaceArr","parseImgUrl","width","height","scale","item","localName","fillColor","shadow","initCanvas","formSpaceData","sliderSwiper","sliderList","document","querySelector","canvasDom","getContext","drawDpiBegin","canClick","circleArr","circlePoint","beginPath","fillStyle","pointLeftArr","pointTopArr","pointArr","childItem","left","top","moveTo","lineTo","push","closePath","lineWidth","strokeStyle","stroke","bezierCurveTo","min1","MaxAndMin","min2","min","font","textAlign","fillText","logPointArr","shadowColor","shadowOffsetX","shadowOffsetY","shadowBlur","img","Image","src","onload","pat","createPattern","drawDpiEnd","arr","apply","max","bindEvent","detect","dom","context","save","scaleValue","window","devicePixelRatio","setAttribute","restore","event","x","clientX","getBoundingClientRect","y","clientY","i","devicePoint","iconFlag","dev","dot","coordinates","flag","queryPtInPolygon","point","polygon","p1","p2","p3","p4","count","checkCross","v1","v2","v3","v","crossMul","drawIcon","url","iconPerstion","drawImage","setSpaceColor","JSON","parse","formatePage","detailPoint","logoPointArr","stringify","projectId","floorId","then","res","resData","catch","__exports__"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,sC,qBCA3CD,EAAOC,QAAU,kP,oCCAjB,0KAQO,IAAMC,EAAe,iCACfC,EAAgB,kCAChBC,EAAmB,qCACnBC,EAAiB,mBACjBC,EAAgB,mC,4gDCDhBC,EAAiB,SAACC,GAC7B,OAAO,iBAAQC,QAAR,8BAAiED,EAAYE,WAAa,OAAOC,SAAKC,EAAW,OAAYC,OAEzHC,EAAa,SAACC,GACzB,OAAO,iBAAQN,QAAR,UAAqD,OAArD,8BAAwFM,GA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Bb,EAAKE,UAAY,cAqBrBgG,YAjWyB,WAkWvB,IAAI3G,EAAiB,CACnB,CACE/H,QAAS,IACTyI,UAAW,OACXY,UAAU,EACVO,SAAU,CACR,CACEE,KAAM,SACNC,IAAK,WAEP,CACED,KAAM,SACNC,IAAK,WAEP,CACED,KAAM,SACNC,IAAK,SAEP,CACED,KAAM,SACNC,IAAK,SAEP,CACED,KAAM,SACNC,IAAK,WAEP,CACED,KAAM,SACNC,IAAK,YAGTgD,YAAa,CACX,CACEjD,KAAM,QACNC,IAAK,YAGTR,YAAa,GACboF,YAAa,CACX,CACE7E,KAAM,SACNC,IAAK,qBAGT6E,aAAc,CACZ,CACE9E,KAAM,SACNC,IAAK,uBAKb7B,EAAUC,aAAeqG,KAAKK,UAAU9G,GACxCG,EAAUW,iBAMZ9H,WA7ZyB,WA8ZvB,IAAIpB,EAAc,CAChBmP,UAAW,eACXC,QAAS,gDAEX,eAAWpP,GACRqP,MAAK,SAACC,GAAO,MAERC,EAAeD,EACfpP,EAAI,iBAAQqP,QAAR,IAAQA,OAAR,EAAQA,EAASrP,YAAjB,QAAyB,KACjCqI,EAAUG,MAAQxI,EAAKwI,MACvBH,EAAUI,OAASzI,EAAKyI,OACxBJ,EAAUH,UAAYlI,EAAKkI,UAC3BG,EAAUqG,gBACVrG,EAAUU,gBAEXuG,OAAM,kBAWb,OARA,uBAAS,WACPjH,EAAU4D,eAEZ,wBAAU,WAER5D,EAAUwG,cACVxG,EAAUU,gBAEZ,kBACK,oBAAOV,O,iCClchB,MAAMkH,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS3I,GAAQ,CAAC,YAAY,qBAE1E","file":"static/js/chunk-3f89b088.1a3d74f8.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/img/deviceroom.01480d11.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAA3SURBVHgBzcmxDQAgCAVRPxO5ipM6ko0xxkYnQKUHaq654iEZ9bUzMSo8ZLpFxTFPk4dAycXfA1ISQWorFT5NAAAAAElFTkSuQmCC\"","// // 默认配置\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>(`${setupService}/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","var map = {\n\t\"./babyselected.svg\": \"98fb\",\n\t\"./bg_disable.png\": \"2b48\",\n\t\"./coffee.svg\": \"5ff7\",\n\t\"./coffeeselected.svg\": \"472f\",\n\t\"./dev.svg\": \"56d9\",\n\t\"./device.svg\": \"920e\",\n\t\"./deviceroom.svg\": \"162a\",\n\t\"./weather.svg\": \"8c6e\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"46f5\";","module.exports = __webpack_public_path__ + \"static/img/coffeeselected.1e7d4057.svg\";","export function swiper(el: any, options: any) {\n //设置开关,监听move事件\n let isMove: any = false\n // 设置手指触摸开始的坐标\n let startX: any = 0\n let startY: any = 0\n // 设置手指移动的坐标\n let moveX: any = 0\n let moveY: any = 0\n //设置指针距离元素的边框的距离\n let disX: any = 0\n let disY: any = 0\n // 如果用户未传入参数2,自己定义一个\n let fun: any = function() {\n }\n let data: any = {\n swipeLeft: fun,\n swipeRight: fun,\n swipeDown: fun,\n swipeUp: fun,\n drag: fun\n }\n // 判断是否传入参数2,有的话覆盖默认值\n Object.assign(data, options)\n // 给元素绑定三个事件\n el.addEventListener('touchstart', function(e: any) {\n //获取手指开始的坐标\n startX = e.touches[0].pageX\n startY = e.touches[0].pageY\n //计算指针距离元素边框的位置\n disX = 0\n disY = 0\n }, { passive: true })\n el.addEventListener('touchmove', function(e: any) {\n //如果触发了move事件,打开开关\n isMove = true\n // 获取移动时的坐标\n moveX = e.touches[0].pageX\n moveY = e.touches[0].pageY\n e.mation = {\n startX: startX,\n startY: startY,\n moveX: moveX,\n moveY: moveY,\n disX: disX,\n disY: disY\n }\n data.drag.call(el, e)\n // 判断是否触发了move事件\n if (isMove) {\n // 计算水平边长\n let absX: any = Math.abs(moveX - startX)\n // 计算垂直边长\n let absY: any = Math.abs(moveY - startY)\n // 判断垂直还是水平滑动\n if (absX > absY) {\n // console.log('水平滑动');\n //再判断是左滑右滑\n if (moveX - startX > 0) {\n data.swipeRight.call(el, e)\n } else {\n data.swipeLeft.call(el, e)\n }\n } else {\n // console.log('垂直滑动');\n //判断是上滑还是下滑\n if (moveY - startX > 0) { // 下滑\n data.swipeDown.call(el, e)\n } else {\n data.swipeUp.call(el, e)\n }\n }\n }\n }, { passive: true })\n el.addEventListener('touchend', function(e: any) {\n isMove = false\n })\n}\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!./sichuan.vue?vue&type=style&index=0&id=04b8e19e&lang=scss&scoped=true\"","module.exports = __webpack_public_path__ + \"static/img/dev.941b2e3a.svg\";","module.exports = __webpack_public_path__ + \"static/img/coffee.fc03c8ec.svg\";","'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","module.exports = __webpack_public_path__ + \"static/img/weather.742cc8c0.svg\";","module.exports = __webpack_public_path__ + \"static/img/device.01480d11.svg\";","module.exports = __webpack_public_path__ + \"static/img/babyselected.422eb07d.svg\";","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","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-04b8e19e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n class: \"com-upload\",\n style: {\"position\":\"relative\"}\n}\nconst _hoisted_2 = {\n class: \"search-bt\",\n style: {\"position\":\"fixed\",\"right\":\"20px\",\"top\":\"80px\",\"z-index\":\"999\"}\n}\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"canvas-box\",\n id: \"canvasBox\"\n}, [\n /*#__PURE__*/_createElementVNode(\"canvas\", {\n id: \"myCanvas\",\n class: \"canvas-dom\",\n style: {\"boder\":\"1px solid red\"}\n })\n], -1))\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_van_search = _resolveComponent(\"van-search\")!\n const _component_van_icon = _resolveComponent(\"van-icon\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_van_search, {\n modelValue: _ctx.spaceName,\n \"onUpdate:modelValue\": [\n _cache[0] || (_cache[0] = ($event: any) => ((_ctx.spaceName) = $event)),\n _ctx.searchSpace\n ],\n class: \"space-search\",\n placeholder: \"请输入搜索关键词\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", {\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.zommAdd && _ctx.zommAdd(...args))),\n style: {\"display\":\"inline-block\",\"font-size\":\"30px\"}\n }, [\n _createVNode(_component_van_icon, {\n name: \"add-o\",\n color: \"#1989fa\"\n })\n ]),\n _createElementVNode(\"div\", {\n onClick: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_ctx.zommDel && _ctx.zommDel(...args))),\n style: {\"display\":\"inline-block\",\"font-size\":\"30px\"}\n }, [\n _createVNode(_component_van_icon, {\n name: \"minus\",\n color: \"#1989fa\"\n })\n ])\n ]),\n _hoisted_3\n ]))\n}","\nimport { Search } from \"vant\";\nimport { number } from \"echarts\";\nimport { getMapInfo } from \"@/apis/envmonitor\";\nimport { defineComponent, nextTick, onMounted, reactive, toRefs } from \"vue\";\nimport { parseImgUrl } from \"@/utils\";\nimport { swiper } from \"@/utils/swiper\";\n\nexport default defineComponent({\n components: {\n VanSearch: Search,\n },\n setup() {\n let spaceList: any = [];\n let ctx: any = {};\n let centerObj: any = {};\n const proxyData = reactive({\n spaceList: spaceList,\n copySpaceArr: spaceList,\n parseImgUrl: parseImgUrl,\n spaceName: \"\",\n width: 3361.136,\n height: 2729.25,\n scale: 1,\n ctx: ctx,\n centerObj: centerObj,\n // 搜索某个空间\n searchSpace() {\n proxyData.spaceList.map((item: any) => {\n // debugger\n console.log(item.localName == proxyData.spaceName);\n console.log(\"搜索====\");\n console.log(item.localName);\n console.log(proxyData.spaceName);\n if (item.localName == proxyData.spaceName) {\n console.log(\"搜索到某个空间\");\n item.fillColor = \"red\";\n item.shadow = true;\n proxyData.initCanvas();\n } else {\n // item.shadow = false;\n // item.fillColor = \"#ececec\";\n }\n });\n },\n // 放大\n zommAdd() {\n console.log(\"被点击了\");\n if (proxyData.scale > 3) {\n return;\n }\n proxyData.scale = proxyData.scale + 0.1;\n // debugger;\n proxyData.formSpaceData();\n proxyData.initCanvas();\n },\n // 缩小\n zommDel() {\n if (proxyData.scale < 0.3) {\n return;\n }\n proxyData.scale = proxyData.scale - 0.1;\n proxyData.formSpaceData();\n proxyData.initCanvas();\n },\n sliderSwiper() {\n // 获取当前时间的下标\n let sliderList: any = document.querySelector(\"#sliderListId\");\n sliderList.addEventListener(\"touchstart\", function (e: any) {});\n swiper(sliderList, {\n swipeLeft: function (e: any) {},\n swipeRight: function (e: any) {},\n });\n },\n // canvas画图\n initCanvas() {\n let canvasDom: any = document.querySelector(\"#myCanvas\");\n // canvasDom.width = proxyData.width * proxyData.scale;\n // canvasDom.height = proxyData.height * proxyData.scale;\n let ctx: any = canvasDom.getContext(\"2d\");\n proxyData.drawDpiBegin(\n canvasDom,\n ctx,\n proxyData.width,\n proxyData.height\n );\n proxyData.ctx = ctx;\n // ctx.clearRect(0, 0, proxyData.width, proxyData.height);\n // ctx.scale(\n // proxyData.scale,\n // proxyData.scale,\n // centerObj.left,\n // centerObj.top\n // );\n\n proxyData.spaceList.map((item: any) => {\n if (item.canClick) {\n let circleArr: any = item.circlePoint;\n ctx.beginPath();\n ctx.fillStyle = item.fillColor;\n let pointLeftArr: any = [];\n let pointTopArr: any = [];\n\n item.pointArr.map((childItem: any, index: any) => {\n // debugger\n childItem.left = childItem.left;\n childItem.top = childItem.top;\n if (index == 0) {\n ctx.moveTo(childItem.left, childItem.top);\n } else {\n ctx.lineTo(childItem.left, childItem.top);\n }\n pointLeftArr.push(childItem.left);\n pointTopArr.push(childItem.top);\n });\n // debugger;\n console.log(item.devicePoint);\n // proxyData.drawIcon(ctx, \"coffee.svg\", item.devicePoint[0]);\n // proxyData.drawIcon(ctx, \"dev.svg\", item.devicePoint[1]);\n // proxyData.drawIcon(ctx, \"deviceroom.svg\", item.devicePoint[2]);\n ctx.closePath();\n ctx.fill();\n ctx.lineWidth = 1;\n ctx.strokeStyle = \"rgba(15, 206, 233, 1)\";\n ctx.stroke();\n ctx.beginPath();\n if (circleArr && circleArr.length) {\n console.log(circleArr);\n ctx.lineTo(circleArr[3].left, circleArr[3].top);\n ctx.bezierCurveTo(\n circleArr[2].left,\n circleArr[2].top,\n circleArr[1].left,\n circleArr[1].top,\n circleArr[0].left,\n circleArr[0].top\n );\n }\n ctx.closePath();\n ctx.fill();\n ctx.lineWidth = 1;\n ctx.strokeStyle = \"rgba(15, 206, 233, 1)\";\n ctx.stroke();\n\n let min1: any =\n proxyData.MaxAndMin(pointLeftArr)[1] -\n proxyData.MaxAndMin(pointLeftArr)[0];\n let min2: any =\n proxyData.MaxAndMin(pointTopArr)[1] -\n proxyData.MaxAndMin(pointTopArr)[0];\n let min: any = min1 < min2 ? min1 : min2;\n ctx.beginPath();\n ctx.font = \"13px serif\";\n ctx.textAlign = \"center\";\n ctx.fillStyle = item.fillColor !== \"#ececec\" ? \"#ffffff\" : \"red\";\n console.log(\"min===\" + min);\n if (item.localName && min > 100) {\n ctx.fillText(\n item.localName,\n item.logPointArr[0].left,\n item.logPointArr[0].top,\n item.width\n );\n }\n ctx.closePath();\n if (item.shadow) {\n item.shadowColor = \"#000000\";\n ctx.shadowOffsetX = -50; //阴影x轴位移。正值向右,负值向左。\n ctx.shadowOffsetY = -50; //阴影y轴位移。正值向下,负值向上。\n ctx.shadowBlur = 10; //阴影模糊滤镜。数据越大,扩散程度越大。\n }\n } else {\n let img: any = new Image();\n img.src = require(\"@/assets/svg/bg_disable.png\");\n img.onload = function () {\n ctx.beginPath();\n item.pointArr.map((item: any, index: any) => {\n if (index === 0) {\n ctx.moveTo(item.left, item.top);\n } else {\n ctx.lineTo(item.left, item.top);\n }\n });\n // ctx.fillStyle = \"#cfefef\";\n // ctx.fill();\n let pat: any = ctx.createPattern(img, \"repeat\");\n ctx.fillStyle = pat;\n ctx.fill();\n ctx.closePath();\n ctx.strokeStyle = \"rgba(15, 206, 233, 1)\";\n ctx.stroke();\n };\n }\n });\n proxyData.drawDpiEnd(canvasDom, ctx);\n },\n MaxAndMin(arr: any) {\n return [Math.min.apply(null, arr), Math.max.apply(null, arr)];\n },\n // 绑定事件\n bindEvent() {\n let canvasDom: any = document.querySelector(\"#myCanvas\");\n // 点击事件\n canvasDom.addEventListener(\"click\", proxyData.detect);\n },\n // 解决canvas画图模糊的问题\n // 开始画\n drawDpiBegin(dom: any, context: any, width: any, height: any) {\n context.save();\n let scaleValue = window.devicePixelRatio;\n dom.setAttribute(\"width\", width * scaleValue);\n dom.setAttribute(\"height\", height * scaleValue);\n\n dom.style.width = width + \"px\";\n dom.style.height = height + \"px\";\n context.scale(scaleValue, scaleValue);\n },\n // 画图介绍\n drawDpiEnd(dom: any, context: any) {\n context.restore();\n },\n // 地图点击事件\n detect(event: any) {\n let canvasDom: any = document.querySelector(\"#myCanvas\");\n let x: any = event.clientX - canvasDom.getBoundingClientRect().left;\n let y: any = event.clientY - canvasDom.getBoundingClientRect().top;\n // let ctx: any = canvasDom.getContext(\"2d\");\n // proxyData.initCanvas();\n console.log(event);\n // alert(\"点击了!\");\n for (let i = 0; i < proxyData.spaceList.length; i++) {\n let item: any = proxyData.spaceList[i];\n let devicePoint: any = item.devicePoint;\n let pointArr: any = item.pointArr;\n let iconFlag: any = false;\n devicePoint.map((dev: any, index: any) => {\n if (\n x >= dev.left &&\n x <= dev.left + 20 &&\n y >= dev.top &&\n y < dev.top + 20\n ) {\n // alert(\"我被点了!\");\n // console.log(\"我被点了!\")\n iconFlag = true;\n console.log(`我被点了设备图标!${index}`);\n }\n });\n if (iconFlag) {\n break;\n }\n let dot: any = {\n x: x,\n y: y,\n };\n let coordinates: any = pointArr;\n coordinates.map((item: any) => {\n item.x = item.left;\n item.y = item.top;\n });\n let flag = proxyData.queryPtInPolygon(dot, coordinates);\n // console.log(flag);\n if (flag) {\n console.log(\"点击了区域\" + item.localName);\n break;\n }\n }\n },\n queryPtInPolygon(point: any, polygon: any) {\n let p1: any = \"\";\n let p2: any = \"\";\n let p3: any = \"\";\n let p4: any = \"\";\n\n p1 = point;\n p2 = { x: 1000000000000, y: point.y };\n\n let count: any = 0;\n //对每条边都和射线作对比\n for (let i = 0; i < polygon.length - 1; i++) {\n p3 = polygon[i];\n p4 = polygon[i + 1];\n if (checkCross(p1, p2, p3, p4) == true) {\n count++;\n }\n }\n p3 = polygon[polygon.length - 1];\n\n p4 = polygon[0];\n if (checkCross(p1, p2, p3, p4) == true) {\n count++;\n }\n\n return count % 2 == 0 ? false : true;\n\n //判断两条线段是否相交\n function checkCross(p1: any, p2: any, p3: any, p4: any) {\n let v1: any = { x: p1.x - p3.x, y: p1.y - p3.y };\n let v2: any = { x: p2.x - p3.x, y: p2.y - p3.y };\n\n let v3: any = { x: p4.x - p3.x, y: p4.y - p3.y };\n let v: any = crossMul(v1, v3) * crossMul(v2, v3);\n\n v1 = { x: p3.x - p1.x, y: p3.y - p1.y };\n v2 = { x: p4.x - p1.x, y: p4.y - p1.y };\n\n v3 = { x: p2.x - p1.x, y: p2.y - p1.y };\n return v <= 0 && crossMul(v1, v3) * crossMul(v2, v3) <= 0\n ? true\n : false;\n }\n\n //计算向量叉乘\n function crossMul(v1: any, v2: any) {\n return v1.x * v2.y - v1.y * v2.x;\n }\n },\n // 画图标\n drawIcon(ctx: any, url: any, iconPerstion: any) {\n if (iconPerstion) {\n let img: any = new Image();\n img.src = require(`@/assets/svg/${url}`);\n img.onload = function () {\n ctx.drawImage(img, iconPerstion.left, iconPerstion.top, 25, 15);\n iconPerstion.width = 30;\n iconPerstion.height = 30;\n };\n }\n },\n // 设置区域颜色\n setSpaceColor() {\n proxyData.spaceList.map((item: any, index: any) => {\n if (index % 2 == 0) {\n item.fillColor = \"#ffcc33\";\n } else if (index % 3 == 0) {\n item.fillColor = \"#ccff99\";\n } else {\n item.fillColor = \"#ececec\";\n }\n });\n console.log(proxyData.spaceList);\n },\n // 数据格式化\n formSpaceData() {\n proxyData.spaceList = JSON.parse(proxyData.copySpaceArr);\n\n proxyData.spaceList.map((item: any) => {\n item.canClick = true;\n item.fillColor = \"#ececec\";\n // debugger\n // item.devicePoint.map((dev: any) => {\n // dev.left = dev.left * proxyData.scale;\n // dev.top = (proxyData.height - dev.top) * proxyData.scale;\n // });\n // item.logPointArr.map((dev: any) => {\n // dev.left = dev.left * proxyData.scale;\n // dev.top = (proxyData.height - dev.top) * proxyData.scale;\n // });\n // item.pointArr.map((dev: any) => {\n // dev.left = dev.left * proxyData.scale;\n // dev.top = (proxyData.height - dev.top) * proxyData.scale;\n // });\n // item.circlePoint.map((dev: any) => {\n // dev.left = dev.left * proxyData.scale;\n // dev.top = (proxyData.height - dev.top) * proxyData.scale;\n // });\n });\n },\n // 格式化地图数据\n formatePage() {\n let spaceList: any = [\n {\n spaceId: \"1\",\n localName: \"H301\",\n canClick: true,\n pointArr: [\n {\n left: 577.1346,\n top: 1944.0056,\n },\n {\n left: 577.1346,\n top: 2160.6334,\n },\n {\n left: 398.5199,\n top: 2339.25,\n },\n {\n left: 295.3858,\n top: 2339.25,\n },\n {\n left: 295.3858,\n top: 1764.7014,\n },\n {\n left: 397.8632,\n top: 1764.7014,\n },\n ],\n devicePoint: [\n {\n left: 537.493,\n top: 2151.2646,\n },\n ],\n circlePoint: [],\n detailPoint: [\n {\n left: 317.5158,\n top: 1797.2386999999999,\n },\n ],\n logoPointArr: [\n {\n left: 436.2602,\n top: 2052.1476000000002,\n },\n ],\n },\n ];\n proxyData.copySpaceArr = JSON.stringify(spaceList);\n proxyData.formSpaceData();\n },\n\n /**\n * 获取地图信息\n */\n getMapInfo() {\n let params: any = {\n projectId: \"Pj1101080259\",\n floorId: \"Fl11010802593241ec348ecb4148806b9034c8957454\",\n };\n getMapInfo(params)\n .then((res) => {\n // debugger\n let resData: any = res;\n let data: any = resData?.data ?? null;\n proxyData.width = data.width;\n proxyData.height = data.height;\n proxyData.spaceList = data.spaceList;\n proxyData.setSpaceColor();\n proxyData.initCanvas();\n })\n .catch(() => {});\n },\n });\n nextTick(() => {\n proxyData.bindEvent();\n });\n onMounted(() => {\n // proxyData.getMapInfo();\n proxyData.formatePage();\n proxyData.initCanvas();\n });\n return {\n ...toRefs(proxyData),\n };\n },\n});\n","import { render } from \"./sichuan.vue?vue&type=template&id=04b8e19e&scoped=true&ts=true\"\nimport script from \"./sichuan.vue?vue&type=script&lang=ts\"\nexport * from \"./sichuan.vue?vue&type=script&lang=ts\"\n\nimport \"./sichuan.vue?vue&type=style&index=0&id=04b8e19e&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-04b8e19e\"]])\n\nexport default __exports__"],"sourceRoot":""}
|