chunk-72383b2a.b8887fce.js.map 31 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/mapDataNew/index.vue?e562","webpack:///./src/assets/svg/deviceroom.svg","webpack:///./src/views/mapDataNew/index.vue?4153","webpack:///./src/views/mapDataNew/index.vue?371a","webpack:///./src/views/mapDataNew/index.vue","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/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"],"names":["module","exports","_hoisted_1","class","style","_hoisted_2","id","_hoisted_3","render","_ctx","_cache","$props","$setup","$data","$options","spaceList","item","index","left","deviceArr","top","src","parseImgUrl","alt","key","components","setup","proxyData","width","height","initCanvas","canvasDom","document","querySelector","ctx","getContext","clearRect","map","parseInt","pointArr","logoArr","canClick","lineWidth","beginPath","lineTo","fillStyle","fill","img","Image","onload","moveTo","pat","createPattern","closePath","strokeStyle","stroke","bindEvent","detect","event","clientX","getBoundingClientRect","clientY","alert","addEventListener","drawIcon","url","iconPerstion","drawImage","getMapInfo","params","projectId","floorId","then","res","resData","data","catch","__exports__","setupService","objectService","duoduoenvService","weachatService","getCompanyInfo","companyInfo","request","companyId","GET","undefined","json","getWeather","getSpaceInfo","POST","getMeetingSceneHttp","spaceId","getEquipmentListHttp","getSetTimeHttp","getFeedbackDocumentsHttp","changeTempHttp","getLampHttp","timeout","setallLampHttp","setEquipeHttp","getStatusHttp","getObjectDataEqpGroupHttp","switchoverSceneHttp","changeSetTimeHttp","getChartListHTTP","getBuildingList","getFloorList","getSpaceEquipType","getSpaceLike","permanentSpace","getPermanentSpace","delPermanentSpace","getUserControlAuth","getSpaceMode","getSpaceTemp","querySpaceSceneConfig","queryCustomAndScence","saveBatchCustomScene","getDefaultLocation","getPadSpaceList","saveWorkSpace","insertWorkSpace","deleteWorkSpace","queryWorkSpace","checkWorkSpace","queryCustomerservice","getPadQrCodeStatus","getPadImg","querySpaceConditioners","setSpaceCondtioners","webpackContext","req","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","toObject","toAbsoluteIndex","toLength","value","O","this","length","argumentsLength","arguments","end","endPos","$","addToUnscopables","target","proto"],"mappings":"mIAAA,W,uBCAAA,EAAOC,QAAU,IAA0B,sC,2DCGrCC,EAAa,CACjBC,MAAO,aACPC,MAAO,CAAC,SAAW,aAEfC,EAAa,CACjBC,GAAI,WACJH,MAAO,aAEHI,EAAa,CAAC,OAEd,SAAUC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,OAAQ,yBAAc,gCAAoB,MAAOZ,EAAY,CAC3D,gCAAoB,SAAUG,EAAY,EACvC,wBAAW,GAAO,gCAAoB,cAAW,KAAM,wBAAYI,EAAKM,WAAW,SAACC,EAAMC,GACzF,OAAQ,yBAAc,gCAAoB,MAAO,CAC/Cb,MAAO,4BAAgB,CAAC,CAAEc,KAAMF,EAAKG,UAAU,GAAGD,KAAME,IAAKJ,EAAKG,UAAU,GAAGC,KAAO,CAAC,SAAW,WAAW,MAAQ,OAAO,OAAS,OAAO,UAAU,MAAM,KAAO,OAAO,IAAM,UAChLC,IAAKZ,EAAKa,YAAY,WAAY,cAClCC,IAAK,GACLC,IAAKP,GACJ,KAAM,GAAIV,MACX,U,4DCjBK,+BAAgB,CAC7BkB,WAAY,GACZC,MAF6B,WAG3B,IAAIX,EAAiB,GACfY,EAAY,sBAAS,CACzBZ,UAAWA,EACXO,YAAa,OACbM,MAAO,IACPC,OAAQ,IAERC,WANyB,WAOvB,IAAIC,EAAiBC,SAASC,cAAc,aAC5CF,EAAUH,MAAQD,EAAUC,MAC5BG,EAAUF,OAASF,EAAUE,OAC7B,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J,EAASE,EAAEE,QACpBC,EAAkBC,UAAUF,OAC5BpI,EAAQ+H,EAAgBM,EAAkB,EAAIC,UAAU,QAAKhE,EAAW8D,GACxEG,EAAMF,EAAkB,EAAIC,UAAU,QAAKhE,EAC3CkE,OAAiBlE,IAARiE,EAAoBH,EAASL,EAAgBQ,EAAKH,GAC/D,MAAOI,EAASxI,EAAOkI,EAAElI,KAAWiI,EACpC,OAAOC,I,uBCfTnJ,EAAOC,QAAU,IAA0B,mC,uBCA3CD,EAAOC,QAAU,IAA0B,kC,uBCA3CD,EAAOC,QAAU,IAA0B,wC,4CCA3C,IAAIyJ,EAAI,EAAQ,QACZ5G,EAAO,EAAQ,QACf6G,EAAmB,EAAQ,QAI/BD,EAAE,CAAEE,OAAQ,QAASC,OAAO,GAAQ,CAClC/G,KAAMA,IAIR6G,EAAiB","file":"static/js/chunk-72383b2a.b8887fce.js","sourcesContent":["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=3549e434&lang=scss&scoped=true\"","module.exports = __webpack_public_path__ + \"static/img/deviceroom.01480d11.svg\";","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-3549e434\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n class: \"com-upload\",\n style: {\"position\":\"relative\"}\n}\nconst _hoisted_2 = {\n id: \"myCanvas\",\n class: \"canvasDom\"\n}\nconst _hoisted_3 = [\"src\"]\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(\"canvas\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.spaceList, (item, index) => {\n return (_openBlock(), _createElementBlock(\"img\", {\n style: _normalizeStyle([{ left: item.deviceArr[0].left, top: item.deviceArr[0].top }, {\"position\":\"absolute\",\"width\":\"20px\",\"height\":\"20px\",\"z-index\":\"999\",\"left\":\"20px\",\"top\":\"20px\"}]),\n src: _ctx.parseImgUrl('map-icon', 'device.svg'),\n alt: \"\",\n key: index\n }, null, 12, _hoisted_3))\n }), 128))\n ])\n ]))\n}","\nimport { number } from \"echarts\";\nimport { getMapInfo } from \"@/apis/envmonitor\";\nimport { defineComponent, nextTick, onMounted, reactive, toRefs } from \"vue\";\nimport { parseImgUrl } from \"@/utils\";\n\nexport default defineComponent({\n components: {},\n setup() {\n let spaceList: any = [];\n const proxyData = reactive({\n spaceList: spaceList,\n parseImgUrl: parseImgUrl,\n width: 100,\n height: 200,\n // canvas画图\n initCanvas() {\n let canvasDom: any = document.querySelector(\"#myCanvas\");\n canvasDom.width = proxyData.width;\n canvasDom.height = proxyData.height;\n let ctx: any = canvasDom.getContext(\"2d\");\n ctx.clearRect(0, 0, proxyData.width, proxyData.height);\n proxyData.spaceList.map((item: any) => {\n let left: any = parseInt(item.left);\n let top: any = parseInt(item.top);\n let pointArr: any = [\n {\n left: left,\n top: top,\n },\n {\n left: left + item.width,\n top: top,\n },\n {\n left: left + item.width,\n top: top + item.height,\n },\n {\n left: left,\n top: top + item.height,\n },\n ];\n let deviceArr: any = [\n {\n left: left,\n top: top + 5,\n },\n {\n left: left + 15,\n top: top + 5,\n },\n {\n left: left + 25,\n top: top + 5,\n },\n ];\n let logoArr: any = [\n {\n left: left + item.width / 2,\n top: top + item.top / 2,\n },\n {\n left: left + item.width / 2 + 30,\n top: top + item.top / 2 + 30,\n },\n ];\n item.pointArr = pointArr;\n item.deviceArr = deviceArr;\n item.logoArr = logoArr;\n // images/map-icon/bg_disable.png\n if (item.canClick) {\n ctx.lineWidth = 1;\n ctx.beginPath();\n pointArr.map((item: any, index: any) => {\n ctx.lineTo(item.left, item.top);\n });\n ctx.fillStyle = \"#cfefef\";\n ctx.fill();\n // proxyData.drawIcon(ctx, \"coffee.svg\", deviceArr[0]);\n // proxyData.drawIcon(ctx, \"dev.svg\", deviceArr[1]);\n // proxyData.drawIcon(ctx, \"deviceroom.svg\", deviceArr[2]);\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 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 },\n // 绑定事件\n bindEvent() {\n let canvasDom: any = document.querySelector(\"#myCanvas\");\n // 点击事件\n canvasDom.addEventListener(\"click\", detect);\n function detect(event: any) {\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 }\n },\n drawIcon(ctx: any, url: any, iconPerstion: any) {\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, 20, 10);\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.initCanvas();\n })\n .catch(() => {});\n },\n });\n nextTick(() => {\n proxyData.bindEvent();\n });\n onMounted(() => {\n proxyData.getMapInfo();\n });\n return {\n ...toRefs(proxyData),\n };\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=3549e434&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=3549e434&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-3549e434\"]])\n\nexport default __exports__","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 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 { 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>(`${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(`${duoduoenvService}customScene/saveBatchCustomScene`, data)\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\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\";","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"],"sourceRoot":""}