{"version":3,"sources":["webpack:///./src/js/enums.js","webpack:///./src/App.vue?01b2","webpack:///./src/App.vue","webpack:///src/App.vue","webpack:///./src/router/index.js","webpack:///./src/store/store.js","webpack:///./src/js/echartsCustom.js","webpack:///./src/plugin/aMap.js","webpack:///./src/main.js","webpack:///./config/dev.env.js","webpack:///./src/plugin/publicMethod.js","webpack:///./config/prod.env.js","webpack:///./src/js/index.js"],"names":["__webpack_require__","d","__webpack_exports__","DRIVEMODEL","enums","DEVICESTATUS","value","text","AIRPORTSTATUS","FLIGHTTASKSTEPCODE","DRONEWORKSTATUS","COVERSTATUS","DRONEDOCKSTATUS","PUTTERSTATUS","CHARGESTATUS","COMMANDSTATUS","FLYTOSTATUS","TAKEOFFSTATUS","SYSTEMSTATUS","APPLICATIONSTATUS","RAINFALL","getEnumsLabel","enumItem","key","data","undefined","itemData","filter","item","selectortype_template_index_0_src_App","render","_h","this","$createElement","_c","_self","attrs","id","_e","staticRenderFns","src_App","normalizeComponent","name","provide","reload","isRouterALive","methods","_this","$nextTick","Vue","use","Router","originalPush","prototype","push","location","onResolve","onReject","call","catch","err","router","routes","path","component","Promise","all","e","then","bind","meta","requireAuth","redirect","children","Vuex","store","Store","state","UAVState","flytoState","flyttoRemainDistance","flyttoRemainTime","takeoffState","returnState","airportRebootStatus","planToDeviceId","getters","mutations","setUAVState","val","setflytoState","setflyttoRemainDistance","setflyttoRemainTime","settakeoffState","setreturnState","setairportRebootStatus","setplanToDeviceId","leftRect","echarts","extendShape","shape","x","y","width","zWidth","zHeight","buildPath","ctx","xAxisPoint","api","coord","xValue","p0","p1","p2","p3","p4","moveTo","lineTo","closePath","rightRect","p5","p6","p7","registerShape","VueAMap","initAMapApiLoader","securityJsCode","plugin","$echarts","$enums","$utils","utils","config","prodConfig","$config","WGS84ToGCJ02","$axios","axios","productionTip","VueCesium","cesiumPath","accessToken","ElementUI","interceptors","request","localStorage","getItem","headers","WebToken","error","promise_default","a","reject","beforeEach","to","from","next","matched","some","record","response","Code","removeItem","i","clearInterval","Message","message","type","el","components","App","template","merge","prodEnv","module","exports","NODE_ENV","API_HOST","fn","time","timer","setTimeout","_len","arguments","length","args","Array","_key","apply","arr","gcoord","transform","GCJ02","WGS84","deepCopy","obj","cache","__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_typeof___default","hit","find","c","original","copy","isArray","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys___default","forEach","retStr","toFixed","RESOURCE_HOST","formatType","Date","hour","getHours","minute","getMinutes","second","getSeconds","formatResult","getFullYear","getMonth","getDate","weekNum","getDay","rootHtmlDOM","document","getElementsByTagName","w","offsetWidth","fs","Math","round","style","fontSize","minNum","maxNum","parseInt","random","url","filename","fetch","method","resonseType","res","success","blob","blobUrl","window","URL","createObjectURL","link","createElement","href","setAttribute","click","remove","revokeObjectURL","getTime","fileName","__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default","_ref2","__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_asyncToGenerator___default","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default","mark","_callee2","resolve","file","wrap","_context2","prev","sent","File","stop","_x2","_x3","coverStr","floor","min","_ref","_callee","_context","abrupt","canvas","getContext","img","Image","crossOrigin","onload","height","drawImage","base64URL","toDataURL","src","coverWindDirection","windDirection","windDirectionText"],"mappings":"uDAAAA,EAAAC,EAAAC,EAAA,sBAAAC,IAeO,IAAIC,GACTC,eAGIC,MAAO,EACPC,KAAM,OAGND,MAAO,EACPC,KAAM,OAGND,MAAO,EACPC,KAAM,OAGND,MAAO,EACPC,KAAM,QAGND,MAAO,EACPC,KAAM,QAGVC,gBAGIF,OAAQ,EACRC,KAAM,OAGND,MAAO,EACPC,KAAM,QAGND,MAAO,EACPC,KAAM,SAGND,MAAO,EACPC,KAAM,SAGND,MAAO,EACPC,KAAM,UAGND,MAAO,EACPC,KAAM,QAGVE,qBAGIH,MAAO,EACPC,KAAM,UAGND,MAAO,EACPC,KAA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C1B,EAAQyB,GACRR,EAAS,MAEXE,EAAIQ,IAAMtD,KAdP,wBAAA0C,EAAAR,SAAAO,EAAAvP,SAyDQ9B,EAAA,GACbmS,mBApFF,SAA4BC,GAC1B,IAAIC,EAAoB,KAErBD,GAAiB,GAAKA,EAAgB,MACtCA,GAAiB,OAASA,GAAiB,IAExCC,EAAoB,KACfD,GAAiB,MAAQA,EAAgB,KAC9CC,EAAoB,MACfD,GAAiB,MAAQA,EAAgB,MAC9CC,EAAoB,KACfD,GAAiB,OAASA,EAAgB,MAC/CC,EAAoB,MACfD,GAAiB,OAASA,EAAgB,MAC/CC,EAAoB,KACfD,GAAiB,OAASA,EAAgB,MAC/CC,EAAoB,MACfD,GAAiB,OAASA,EAAgB,MAC/CC,EAAoB,KACfD,GAAiB,OAASA,EAAgB,QAC/CC,EAAoB,OAG1B,OAAOA","file":"static/js/app.d6de4e04031831c6e6ef.js","sourcesContent":["export function getEnumsLabel(enumItem, key) {\r\n let data = enums[enumItem];\r\n if (data == undefined) {\r\n // console.error(\"枚举类型不存在\");\r\n return \"\";\r\n }\r\n let itemData = data.filter(item => item.value == key)[0];\r\n if (itemData == undefined) {\r\n // console.error(\"枚举类型键值不存在:\" + enumItem + \"-\" + key);\r\n return \"\";\r\n }\r\n // console.log(itemData, enumItem, key);\r\n return itemData.text;\r\n}\r\n\r\nexport let enums = {\r\n DEVICESTATUS: [\r\n //设备在线状态\r\n {\r\n value: 0,\r\n text: \"离线\"\r\n },\r\n {\r\n value: 1,\r\n text: \"在线\"\r\n },\r\n {\r\n value: 2,\r\n text: \"脱机\"\r\n },\r\n {\r\n value: 3,\r\n text: \"开机中\"\r\n },\r\n {\r\n value: 4,\r\n text: \"关机中\"\r\n }\r\n ],\r\n AIRPORTSTATUS: [\r\n //机场状态\r\n {\r\n value: -1,\r\n text: \"离线\"\r\n },\r\n {\r\n value: 0,\r\n text: \"空闲中\"\r\n },\r\n {\r\n value: 1,\r\n text: \"现场调试\"\r\n },\r\n {\r\n value: 2,\r\n text: \"远程调试\"\r\n },\r\n {\r\n value: 3,\r\n text: \"固件升级中\"\r\n },\r\n {\r\n value: 4,\r\n text: \"作业中\"\r\n }\r\n ],\r\n FLIGHTTASKSTEPCODE: [\r\n //机场任务状态\r\n {\r\n value: 0,\r\n text: \"作业准备中\"\r\n },\r\n {\r\n value: 1,\r\n text: \"飞行作业中\"\r\n },\r\n {\r\n value: 2,\r\n text: \"作业后状态恢复\"\r\n },\r\n {\r\n value: 3,\r\n text: \"自定义飞行区更新中\"\r\n },\r\n {\r\n value: 4,\r\n text: \"地形障碍物更新中\"\r\n },\r\n {\r\n value: 5,\r\n text: \"任务空闲\"\r\n },\r\n {\r\n value: 255,\r\n text: \"飞行器异常\"\r\n },\r\n {\r\n value: 256,\r\n text: \"未知状态\"\r\n },\r\n ],\r\n DRONEWORKSTATUS: [\r\n //无人机状态\r\n {\r\n value: 0,\r\n text: \"待机\"\r\n },\r\n {\r\n value: 1,\r\n text: \"起飞准备\"\r\n },\r\n {\r\n value: 2,\r\n text: \"起飞准备完毕\"\r\n },\r\n {\r\n value: 3,\r\n text: \"手动飞行\"\r\n },\r\n {\r\n value: 4,\r\n text: \"自动起飞\"\r\n },\r\n {\r\n value: 5,\r\n text: \"航线飞行\"\r\n },\r\n {\r\n value: 6,\r\n text: \"全景拍照\"\r\n },\r\n {\r\n value: 7,\r\n text: \"智能跟随\"\r\n },\r\n {\r\n value: 8,\r\n text: \"ADS-B 躲避\"\r\n },\r\n {\r\n value: 9,\r\n text: \"自动返航\"\r\n },\r\n {\r\n value: 10,\r\n text: \"自动降落\"\r\n },\r\n {\r\n value: 11,\r\n text: \"强制降落\"\r\n },\r\n {\r\n value: 12,\r\n text: \"三桨叶降落\"\r\n },\r\n {\r\n value: 13,\r\n text: \"升级中\"\r\n },\r\n {\r\n value: 14,\r\n text: \"未连接\"\r\n },\r\n {\r\n value: 15,\r\n text: \"辅助飞行功能 - APAS\"\r\n },\r\n {\r\n value: 16,\r\n text: \"虚拟摇杆\"\r\n },\r\n {\r\n value: 17,\r\n text: \"指令飞行\"\r\n },\r\n {\r\n value: 18,\r\n text: \"空中 RTK 收敛模式\"\r\n },\r\n {\r\n value: 19,\r\n text: \"机场选址中\"\r\n },\r\n {\r\n value: -1,\r\n text: \"舱内关机\"\r\n }\r\n ],\r\n COVERSTATUS: [\r\n //舱盖状态\r\n {\r\n value: 0,\r\n text: \"关闭\"\r\n },\r\n {\r\n value: 1,\r\n text: \"打开\"\r\n },\r\n {\r\n value: 2,\r\n text: \"半开\"\r\n },\r\n {\r\n value: 3,\r\n text: \"舱盖状态异常\"\r\n },\r\n {\r\n value: 4,\r\n text: \"开启中...\"\r\n },\r\n {\r\n value: 5,\r\n text: \"关闭中...\"\r\n }\r\n ],\r\n DRONEDOCKSTATUS: [\r\n //\t飞机是否在舱\r\n {\r\n value: 0,\r\n text: \"舱外\"\r\n },\r\n {\r\n value: 1,\r\n text: \"舱内\"\r\n }\r\n ],\r\n PUTTERSTATUS: [\r\n //\t推杆状态\r\n {\r\n value: 0,\r\n text: \"关闭\"\r\n },\r\n {\r\n value: 1,\r\n text: \"打开\"\r\n },\r\n {\r\n value: 2,\r\n text: \"半开\"\r\n },\r\n {\r\n value: 3,\r\n text: \"推杆状态异常\"\r\n },\r\n {\r\n value: 4,\r\n text: \"推杆展开中\"\r\n },\r\n {\r\n value: 5,\r\n text: \"推杆展关闭中\"\r\n }\r\n ],\r\n CHARGESTATUS: [\r\n //\t充电状态\r\n {\r\n value: 0,\r\n text: \"空闲\"\r\n },\r\n {\r\n value: 1,\r\n text: \"充电中\"\r\n }\r\n ],\r\n COMMANDSTATUS: [\r\n //\t命令执行状态\r\n {\r\n value: \"send\",\r\n text: \"已下发\"\r\n },\r\n {\r\n value: \"in_progress\",\r\n text: \"执行中\"\r\n },\r\n {\r\n value: \"ok\",\r\n text: \"执行成功\"\r\n },\r\n {\r\n value: \"paused\",\r\n text: \"暂停\"\r\n },\r\n {\r\n value: \"rejected\",\r\n text: \"拒绝\"\r\n },\r\n {\r\n value: \"failed\",\r\n text: \"失败\"\r\n },\r\n {\r\n value: \"canceled\",\r\n text: \"取消或终止\"\r\n },\r\n {\r\n value: \"timeout\",\r\n text: \"超时\"\r\n }\r\n ],\r\n FLYTOSTATUS: [\r\n //flyto 执行结果事件通知状态\r\n {\r\n value: \"wayline_cancel\",\r\n text: \"取消飞向目标点\"\r\n },\r\n {\r\n value: \"wayline_failed\",\r\n text: \"执行失败\"\r\n },\r\n {\r\n value: \"wayline_ok\",\r\n text: \"执行成功,已到达目标点\"\r\n },\r\n {\r\n value: \"wayline_progress\",\r\n text: \"飞向目标点途中\"\r\n },\r\n ],\r\n TAKEOFFSTATUS: [\r\n //一键起飞 执行结果事件通知状态\r\n {\r\n value: \"task_finish\",\r\n text: \"一键起飞任务完成\"\r\n },\r\n {\r\n value: \"task_ready\",\r\n text: \"准备起飞\"\r\n },\r\n {\r\n value: \"wayline_cancel\",\r\n text: \"取消飞向目标点\"\r\n },\r\n {\r\n value: \"wayline_failed\",\r\n text: \"起飞失败\"\r\n },\r\n {\r\n value: \"wayline_ok\",\r\n text: \"起飞成功\"\r\n },\r\n {\r\n value: \"wayline_progress\",\r\n text: \"飞行中\"\r\n },\r\n\r\n ],\r\n SYSTEMSTATUS: [\r\n {\r\n value: \"canceled\",\r\n text: \"取消或终止\"\r\n },\r\n {\r\n value: \"failed\",\r\n text: \"重启失败\"\r\n },\r\n {\r\n value: \"in_progress\",\r\n text: \"重启中\"\r\n },\r\n {\r\n value: \"ok\",\r\n text: \"重启成功\"\r\n },\r\n {\r\n value: \"paused\",\r\n text: \"暂停\"\r\n }\r\n ,\r\n {\r\n value: \"rejected\",\r\n text: \"拒绝\"\r\n },\r\n {\r\n value: \"sent\",\r\n text: \"已下发\"\r\n },\r\n {\r\n value: \"timeout\",\r\n text: \"超时\"\r\n }\r\n ],\r\n APPLICATIONSTATUS: [\r\n {\r\n value: 0,\r\n text: \"待提交\"\r\n }\r\n ,\r\n {\r\n value: 1,\r\n text: \"审批中\"\r\n },\r\n {\r\n value: 2,\r\n text: \"已通过\"\r\n },\r\n {\r\n value: 3,\r\n text: \"未通过\"\r\n }\r\n ],\r\n RAINFALL: [\r\n {\r\n value: 0,\r\n text: \"无雨\"\r\n }\r\n ,\r\n {\r\n value: 1,\r\n text: \"小雨\"\r\n },\r\n {\r\n value: 2,\r\n text: \"中雨\"\r\n },\r\n {\r\n value: 3,\r\n text: \"大雨\"\r\n }\r\n ]\r\n};\r\n\r\nexport const DRIVEMODEL = [\r\n {\r\n value: \"多旋翼\",\r\n text: '多旋翼'\r\n },\r\n {\r\n value: '复合翼',\r\n text: '复合翼'\r\n },\r\n {\r\n value: '固定翼',\r\n text: '固定翼'\r\n },\r\n {\r\n value: '直升机',\r\n text: '直升机'\r\n },\r\n]\r\n\r\nexport default {\r\n getEnumsLabel,\r\n DRIVEMODEL\r\n};\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/js/enums.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[(_vm.isRouterALive)?_c('router-view'):_vm._e()],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-1b9d33d9\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","var normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-1b9d33d9\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","\r\n \r\n \r\n
\r\n\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","import Vue from \"vue\";\r\nimport Router from \"vue-router\";\r\n\r\nVue.use(Router);\r\n// 解决路由重复点击报异常问题\r\nconst originalPush = Router.prototype.push;\r\nRouter.prototype.push = function push(location, onResolve, onReject) {\r\n if (onResolve || onReject)\r\n return originalPush.call(this, location, onResolve, onReject);\r\n return originalPush.call(this, location).catch(err => err);\r\n};\r\n\r\nconst router = new Router({\r\n routes: [\r\n {\r\n path: \"/\",\r\n name: \"Login\",\r\n component: () => import(\"@/components/login.vue\")\r\n },\r\n {\r\n //首页\r\n path: \"/index\",\r\n component: () => import(\"@/views/home/indexNew2.vue\")\r\n },\r\n {\r\n path: \"/shareLive\",\r\n name: \"shareLive\",\r\n component: () => import(\"@/views/shareLive/index.vue\")\r\n },\r\n {\r\n //智慧果园\r\n path: \"/orchard\",\r\n component: () => import(\"@/views/orchard/index.vue\")\r\n },\r\n {\r\n //智慧乡村\r\n path: \"/mapping3D\",\r\n component: () =>\r\n import(\"@/views/businessManager/mapping3D/mapping3D.vue\")\r\n },\r\n {\r\n //智慧园区 企业信息可视化 武义 rongQeZhiGu\r\n path: \"/enterprise3D\",\r\n component: () => import(\"@/views/intelligentGarden/enterprise3D/index.vue\")\r\n },\r\n {\r\n //闽锋化学\r\n path: \"/MFHX\",\r\n component: () => import(\"@/views/intelligentGarden/MFHX/index.vue\")\r\n },\r\n {\r\n //\r\n path: \"/SC\",\r\n component: () => import(\"@/views/intelligentGarden/SC/index.vue\")\r\n },\r\n {\r\n //丽水高速 \r\n path: \"/highway\",\r\n component: () => import(\"@/views/highway/index.vue\")\r\n },\r\n {\r\n //容祺智谷\r\n path: \"/rongQeZhiGu\",\r\n component: () => import(\"@/views/rqzg/RQZG.vue\")\r\n },\r\n {\r\n //word预览页面\r\n path: \"/previewBox\",\r\n component: () =>\r\n import(\"@/views/businessManager/ch4Report/previewBox.vue\")\r\n },\r\n {\r\n path: \"/menu\",\r\n name: \"menu\",\r\n component: () => import(\"@/components/menu.vue\"),\r\n meta: {\r\n requireAuth: true\r\n },\r\n redirect: \"/uavManager\",\r\n children: [\r\n {\r\n //测试页面生产环境要删掉\r\n path: \"/test\",\r\n component: () => import(\"@/views/home/test.vue\")\r\n },\r\n //飞行平台\r\n {\r\n //无人机\r\n path: \"/uavManager\",\r\n component: () =>\r\n import(\"@/views/lowFlying/uavManager/uavManager.vue\"),\r\n redirect: \"/uavManagerShow\",\r\n children: [\r\n {\r\n path: \"/uavManagerShow\",\r\n component: () =>\r\n import(\"@/views/lowFlying/uavManager/uavManagerShow.vue\")\r\n }\r\n ]\r\n },\r\n {\r\n //无人机机场\r\n path: \"/AirportManage\",\r\n component: () =>\r\n import(\"@/views/lowFlying/AirportManage/AirportManage.vue\"),\r\n redirect: \"/AirportManageShow\",\r\n children: [\r\n {\r\n path: \"/AirportManageShow\",\r\n component: () =>\r\n import(\"@/views/lowFlying/AirportManage/AirportManageShow.vue\")\r\n }\r\n ]\r\n },\r\n {\r\n //航迹航线\r\n path: \"/airWayManager\",\r\n component: () =>\r\n import(\"@/views/lowFlying/airWayManager/airWayManager.vue\"),\r\n redirect: \"/airWayManagerShow\",\r\n children: [\r\n {\r\n path: \"/airWayManagerShow\",\r\n component: () =>\r\n import(\"@/views/lowFlying/airWayManager/airWayManagerShow.vue\")\r\n }\r\n ]\r\n },\r\n {\r\n //大疆无人机\r\n path: \"/DJIDevice\",\r\n name: \"DJIDevice\",\r\n component: () => import(\"@/views/lowFlying/DJIManager/index.vue\"),\r\n redirect: \"/DJIMangerShow\",\r\n children: [\r\n {\r\n path: \"/DJIMangerShow\",\r\n component: () =>\r\n import(\"@/views/lowFlying/DJIManager/DJIManagerShow.vue\")\r\n }\r\n ]\r\n },\r\n {\r\n //大疆无人机航线\r\n path: \"/DJIAirLine\",\r\n name: 'DJIAirLine',\r\n component: () => import(\"@/views/lowFlying/DJIAirLine/index.vue\"),\r\n\r\n },\r\n {\r\n //大疆航线计划管理\r\n path: \"/DJIPlanManager\",\r\n component: () =>\r\n import(\"@/views/lowFlying/DJIPlanManager/index.vue\")\r\n },\r\n {\r\n //大疆航线计划管理\r\n path: \"/createPlan\",\r\n component: () =>\r\n import(\"@/views/lowFlying/DJIPlanManager/createPlan.vue\")\r\n },\r\n {\r\n //AI分析--电网缺陷\r\n path: \"/netEror\",\r\n component: () => import(\"@/views/AIAnalysis/index.vue\"),\r\n\r\n },\r\n {\r\n //AI分析--工地管理\r\n path: \"/constructionManage\",\r\n component: () => import(\"@/views/AIAnalysis/index.vue\"),\r\n },\r\n {\r\n //AI分析--城市管理\r\n path: \"/cityManage\",\r\n component: () => import(\"@/views/AIAnalysis/index.vue\"),\r\n },\r\n {\r\n //AI分析--燃气管线\r\n path: \"/gasLine\",\r\n component: () => import(\"@/views/AIAnalysis/index.vue\"),\r\n },\r\n {\r\n //AI分析--交通违章\r\n path: \"/trafficViolation\",\r\n component: () => import(\"@/views/AIAnalysis/index.vue\"),\r\n },\r\n {\r\n //AI分析--地址灾害\r\n path: \"/geologicalDisaster\",\r\n component: () => import(\"@/views/AIAnalysis/index.vue\"),\r\n },\r\n {\r\n //AI分析--生物识别\r\n path: \"/speciesDiseases\",\r\n component: () => import(\"@/views/AIAnalysis/index.vue\"),\r\n },\r\n {\r\n //AI分析--生态水域\r\n path: \"/waterArea\",\r\n component: () => import(\"@/views/AIAnalysis/index.vue\"),\r\n },\r\n {\r\n //AI分析--火灾隐患\r\n path: \"/fireHazards\",\r\n component: () => import(\"@/views/AIAnalysis/index.vue\"),\r\n },\r\n {\r\n //空域申请\r\n path: \"/AreaAplly\",\r\n component: () => import(\"@/views/airspaceManage/application/index.vue\"),\r\n // redirect: \"/AreaAplly\",\r\n // children: [\r\n // {\r\n // path: \"/AreaAplly\",\r\n // component: () => import(\"@/views/airspaceManage/application/index.vue\"),\r\n // parmas: {\r\n // }\r\n // }\r\n // ]\r\n\r\n },\r\n {\r\n //空域控制\r\n path: \"/AreaControl\",\r\n component: () => import(\"@/views/airspaceManage/control/index.vue\"),\r\n // redirect: \"/AreaControl\",\r\n // children: [\r\n // {\r\n // path: \"/AreaControl\",\r\n // component: () => import(\"@/views/airspaceManage/control/index.vue\"),\r\n // parmas: {\r\n\r\n // }\r\n // }\r\n // ]\r\n\r\n },\r\n //地面传感\r\n {\r\n //智慧管网\r\n path: \"/pipelineAI\",\r\n component: () => import(\"@/views/groundRange/pipelineAI.vue\")\r\n },\r\n {\r\n //飞行报告\r\n path: \"/flyReport\",\r\n component: () => import(\"@/views/lowFlying/flyReport/index.vue\")\r\n },\r\n {\r\n //智能井盖\r\n path: \"/ctwingManager\",\r\n component: () =>\r\n import(\"@/views/groundRange/ctwingManager/ctwingManager.vue\"),\r\n redirect: \"/ctwingManagerShow\",\r\n children: [\r\n {\r\n path: \"/ctwingManagerShow\",\r\n component: () =>\r\n import(\r\n \"@/views/groundRange/ctwingManager/ctwingManagerShow.vue\"\r\n )\r\n }\r\n ]\r\n },\r\n {\r\n //数据管理-图像数据\r\n path: \"/imgManager\",\r\n name: \"imgManager\",\r\n component: () =>\r\n import(\"@/views/dataManager/imgManager/index.vue\"),\r\n },\r\n {\r\n //数据管理-视频数据\r\n path: \"/videoManager\",\r\n name: \"videoManager\",\r\n component: () =>\r\n import(\"@/views/dataManager/videoManager/index.vue\"),\r\n },\r\n {\r\n //数据管理-模型数据\r\n path: \"/modelData\",\r\n name: \"modelData\",\r\n component: () =>\r\n import(\"@/views/dataManager/modelManager/index.vue\"),\r\n },\r\n //行业应用\r\n {\r\n //大气监测(环保模块)\r\n path: \"/atmosphereCheck\",\r\n component: () =>\r\n import(\r\n \"@/views/businessManager/atmosphereCheck/atmosphereCheck.vue\"\r\n ),\r\n redirect: \"/atmosphereCheckShow\",\r\n children: [\r\n {\r\n path: \"/atmosphereCheckShow\",\r\n component: () =>\r\n import(\r\n \"@/views/businessManager/atmosphereCheck/atmosphereCheckShow.vue\"\r\n )\r\n }\r\n ]\r\n },\r\n\r\n\r\n {\r\n //甲烷检测\r\n path: \"/ch4Report\",\r\n component: () =>\r\n import(\"@/views/businessManager/ch4Report/ch4Report.vue\")\r\n },\r\n\r\n {\r\n //监控视频页面\r\n path: \"/Monitor\",\r\n component: () =>\r\n import(\"@/views/businessManager/monitoring/monitor.vue\"),\r\n redirect: \"/monitorShow\",\r\n children: [\r\n {\r\n path: \"/monitorShow\",\r\n component: () =>\r\n import(\"@/views/businessManager/monitoring/monitorShow.vue\")\r\n }\r\n ]\r\n },\r\n //海域传感\r\n {\r\n //船舶排放\r\n path: \"/shipFumes\",\r\n component: () => import(\"@/views/seaManager/shipFumes.vue\")\r\n },\r\n\r\n //系统管理\r\n {\r\n //日志管理-系统日志\r\n path: \"/systemLog\",\r\n component: () =>\r\n import(\"@/views/systemManager/logManager/logManager.vue\")\r\n },\r\n {\r\n //日志管理-设备日志\r\n path: \"/deviceLog\",\r\n component: () =>\r\n import(\"@/views/systemManager/logManager/deviceLog.vue\")\r\n },\r\n {\r\n //用户管理\r\n path: \"/userList\",\r\n component: () => import(\"@/views/systemManager/userList/userList.vue\")\r\n },\r\n {\r\n //角色管理\r\n path: \"/roleManage\",\r\n component: () => import(\"@/views/systemManager/roleList/roleList.vue\")\r\n },\r\n {\r\n //个人中心\r\n path: \"/userCenter\",\r\n component: () => import(\"@/views/systemManager/userCenter/index.vue\")\r\n },\r\n {\r\n //增加用户\r\n path: \"/addUser\",\r\n component: () => import(\"@/views/systemManager/userList/addUser.vue\")\r\n },\r\n {\r\n //修改用户\r\n path: \"/changeUser\",\r\n component: () =>\r\n import(\"@/views/systemManager/userList/changeUser.vue\")\r\n },\r\n {\r\n //修改用户\r\n path: \"/flymanList\",\r\n component: () =>\r\n import(\"@/views/systemManager/flymanList/index.vue\")\r\n },\r\n {\r\n //设备分组管理\r\n path: \"/deviceManager\",\r\n component: () =>\r\n import(\"@/views/systemManager/deviceManager/deviceManager.vue\"),\r\n redirect: \"/deviceManagerShow\",\r\n children: [\r\n {\r\n path: \"/deviceManagerShow\",\r\n component: () =>\r\n import(\r\n \"@/views/systemManager/deviceManager/deviceManagerShow.vue\"\r\n )\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n});\r\n\r\nexport default router;\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/router/index.js","import Vue from 'vue'\r\n\r\nimport Vuex from 'vuex'\r\n\r\nVue.use(Vuex)\r\n\r\nconst store = new Vuex.Store({\r\n state: {\r\n UAVState: null,//无人机状态\r\n flytoState: null,//flyto 执行结果事件通知状态\r\n flyttoRemainDistance: 0,//flyto 执行结果事件剩余任务距离\r\n flyttoRemainTime: 0,//flyto 执行结果事件剩余任务时间\r\n takeoffState: null,//一键起飞结果事件通知状态\r\n returnState: false,//是否为返航状态\r\n airportRebootStatus: '',//机场重启状态,\r\n planToDeviceId: null\r\n },\r\n getters: {\r\n\r\n },\r\n mutations: {\r\n setUAVState(state, val) {\r\n state.UAVState = val\r\n },\r\n setflytoState(state, val) {\r\n state.flytoState = val\r\n },\r\n setflyttoRemainDistance(state, val) {\r\n state.flyttoRemainDistance = val\r\n },\r\n setflyttoRemainTime(state, val) {\r\n state.flyttoRemainTime = val\r\n },\r\n settakeoffState(state, val) {\r\n state.takeoffState = val\r\n },\r\n setreturnState(state, val) {\r\n state.returnState = val\r\n },\r\n setairportRebootStatus(state, val) {\r\n state.airportRebootStatus = val\r\n },\r\n setplanToDeviceId(state, val) {\r\n state.planToDeviceId = val\r\n },\r\n }\r\n})\r\nexport default store\n\n\n// WEBPACK FOOTER //\n// ./src/store/store.js","import * as echarts from \"echarts\";\r\n\r\nconst leftRect = echarts.graphic.extendShape({\r\n shape: {\r\n x: 0,\r\n y: 0,\r\n width: 19, //柱状图宽\r\n zWidth: 8, //阴影折角宽\r\n zHeight: 4 //阴影折角高\r\n },\r\n buildPath: function(ctx, shape) {\r\n const api = shape.api;\r\n const xAxisPoint = api.coord([shape.xValue, 0]);\r\n const p0 = [shape.x - shape.width / 2, shape.y - shape.zHeight];\r\n const p1 = [shape.x - shape.width / 2, shape.y - shape.zHeight];\r\n const p2 = [xAxisPoint[0] - shape.width / 2, xAxisPoint[1]];\r\n const p3 = [xAxisPoint[0] + shape.width / 2, xAxisPoint[1]];\r\n const p4 = [shape.x + shape.width / 2, shape.y];\r\n\r\n ctx.moveTo(p0[0], p0[1]);\r\n ctx.lineTo(p1[0], p1[1]);\r\n ctx.lineTo(p2[0], p2[1]);\r\n ctx.lineTo(p3[0], p3[1]);\r\n ctx.lineTo(p4[0], p4[1]);\r\n ctx.lineTo(p0[0], p0[1]);\r\n ctx.closePath();\r\n }\r\n});\r\n\r\nconst rightRect = echarts.graphic.extendShape({\r\n shape: {\r\n x: 0,\r\n y: 0,\r\n width: 18,\r\n zWidth: 15,\r\n zHeight: 8\r\n },\r\n buildPath: function(ctx, shape) {\r\n const api = shape.api;\r\n const xAxisPoint = api.coord([shape.xValue, 0]);\r\n const p1 = [shape.x - shape.width / 2, shape.y - shape.zHeight / 2];\r\n const p3 = [xAxisPoint[0] + shape.width / 2, xAxisPoint[1]];\r\n const p4 = [shape.x + shape.width / 2, shape.y];\r\n const p5 = [xAxisPoint[0] + shape.width / 2 + shape.zWidth, xAxisPoint[1]];\r\n const p6 = [\r\n shape.x + shape.width / 2 + shape.zWidth,\r\n shape.y - shape.zHeight / 2\r\n ];\r\n const p7 = [\r\n shape.x - shape.width / 2 + shape.zWidth,\r\n shape.y - shape.zHeight\r\n ];\r\n ctx.moveTo(p4[0], p4[1]);\r\n ctx.lineTo(p3[0], p3[1]);\r\n ctx.lineTo(p5[0], p5[1]);\r\n ctx.lineTo(p6[0], p6[1]);\r\n ctx.lineTo(p4[0], p4[1]);\r\n\r\n ctx.moveTo(p4[0], p4[1]);\r\n ctx.lineTo(p6[0], p6[1]);\r\n ctx.lineTo(p7[0], p7[1]);\r\n ctx.lineTo(p1[0], p1[1]);\r\n ctx.lineTo(p4[0], p4[1]);\r\n ctx.closePath();\r\n }\r\n});\r\n\r\necharts.graphic.registerShape(\"leftRect\", leftRect);\r\necharts.graphic.registerShape(\"rightRect\", rightRect);\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/js/echartsCustom.js","import Vue from \"vue\";\r\n//高德离线地图\r\nimport VueAMap from \"@vuemap/vue-amap\";\r\nimport \"@vuemap/vue-amap/dist/style.css\";\r\nVue.use(VueAMap);\r\nVueAMap.initAMapApiLoader({\r\n // key: \"616e615727a1134331ff9459856653f1\",\r\n key: \"a177098864931cd64fb9c9e8de2b8669\",\r\n securityJsCode: '41602223182f4e9a46f02c8e13c2729d',\r\n plugin: [\r\n \"AMap.Autocomplete\",\r\n \"AMap.PlaceSearch\",\r\n \"AMap.Scale\",\r\n \"AMap.ToolBar\",\r\n \"AMap.OverView\",\r\n \"AMap.MapType\",\r\n \"AMap.PolyEditor\",\r\n \"AMap.CircleEditor\",\r\n \"AMap.CircleEditor\",\r\n \"AMap.zoom\",\r\n \"AMap.Geolocation\",\r\n \"AMap.Geocoder\",\r\n \"AMap.Polyline\",\r\n \"AMap.MouseTool\",\r\n \"AMap.PolylineEditor\",\r\n \"AMap.DistrictSearch\"\r\n ]\r\n // v: \"1.4.4\"\r\n});\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/plugin/aMap.js","import Vue from \"vue\";\r\nimport Vuex from \"vuex\";\r\nimport App from \"./App\";\r\nimport router from \"./router\";\r\nimport store from \"./store/store\";\r\nimport ElementUI from \"element-ui\";\r\nimport \"element-ui/lib/theme-chalk/index.css\";\r\nimport { WGS84ToGCJ02 } from \"./plugin/publicMethod\";\r\nimport 'default-passive-events'\r\n//全局CSS\r\nimport \"./assets/css/main.less\";\r\nimport axios from \"axios\";\r\n// 引入echarts\r\nimport * as echarts from \"echarts\";\r\nVue.prototype.$echarts = echarts;\r\nimport \"./js/echartsCustom\";\r\nimport enums from \"./js/enums\";\r\nVue.prototype.$enums = enums;\r\n\r\nimport utils from \"./js/index\";\r\nVue.prototype.$utils = utils;\r\n\r\nimport devConfig from \"../config/dev.env\";\r\nimport prodConfig from \"../config//prod.env\";\r\nconst config = process.env.NODE_ENV === \"development\" ? devConfig : prodConfig;\r\nVue.prototype.$config = config;\r\n\r\n//全局挂载坐标转换\r\nVue.prototype.WGS84ToGCJ02 = WGS84ToGCJ02;\r\nVue.prototype.$axios = axios;\r\nVue.config.productionTip = false;\r\n\r\nimport VueCesium from \"vue-cesium\";\r\nVue.use(VueCesium, {\r\n cesiumPath: \"/static/Cesium/Cesium.js\",\r\n accessToken:\r\n \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2YTcyYTZjZS0wZjEyLTRmZjgtOGVlMi1jMGZhM2ZiMTc4NzkiLCJpZCI6OTI2MzEsImlhdCI6MTY1MTg5MTM4OX0.z3uU0iHf4NVtha9G0ujQrvoZbSB925Hf58__auPsWF4\"\r\n});\r\n\r\n\r\n// window.CESIUM_BASE_URL = '/cesium'\r\n//高德地图\r\nimport \"./plugin/aMap\";\r\n\r\nVue.use(ElementUI);\r\nVue.use(Vuex);\r\n/* eslint-disable no-new */\r\n// axios请求头加入token\r\naxios.interceptors.request.use(\r\n config => {\r\n\r\n if (config.push === \"/\") {\r\n } else {\r\n if (localStorage.getItem(\"token\")) {\r\n config.headers.WebToken = localStorage.getItem(\"token\");\r\n }\r\n }\r\n return config;\r\n },\r\n error => {\r\n return Promise.reject(error);\r\n }\r\n);\r\n// //响应的token是否过期\r\n// axios.interceptors.response.use(response => {\r\n// if (response.data.Code == 401 || response.data.Code == 402) {\r\n// //清除token\r\n// localStorage.removeItem('token')\r\n// ElementUI.Message({\r\n// message: '身份已失效',\r\n// type: 'warning'\r\n// });\r\n// console.log(\"身份已失效\");\r\n// //返回到登录界面\r\n// // router.replace({\r\n// // path:'/'\r\n// // })\r\n// router.push(\"/\")\r\n// return\r\n// } else {\r\n// return response\r\n// }\r\n// },\r\n// error => {\r\n// return Promise.reject(error)\r\n// })\r\n//必须登录返回token才能访问其他页面\r\nrouter.beforeEach((to, from, next) => {\r\n if (to.matched.some(record => record.meta.requireAuth)) {\r\n // 判断该路由是否需要登录权限\r\n if (localStorage.getItem(\"token\")) {\r\n next();\r\n } else {\r\n next({\r\n path: \"/\"\r\n });\r\n }\r\n //响应的token是否过期\r\n axios.interceptors.response.use(\r\n response => {\r\n if (response.data.Code == 401 || response.data.Code == 402) {\r\n //清除token\r\n localStorage.removeItem(\"token\");\r\n for (var i; i < 10000; i++) {\r\n clearInterval(i)\r\n }\r\n ElementUI.Message({\r\n message: \"身份已失效\",\r\n type: \"warning\"\r\n });\r\n //返回到登录界面\r\n router.push(\"/\");\r\n return;\r\n } else {\r\n return response;\r\n }\r\n },\r\n error => {\r\n return Promise.reject(error);\r\n }\r\n );\r\n } else {\r\n next();\r\n }\r\n});\r\nnew Vue({\r\n el: \"#app\",\r\n axios,\r\n router,\r\n store,\r\n components: {\r\n App\r\n },\r\n template: \"\"\r\n});\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","'use strict'\r\nconst merge = require('webpack-merge')\r\nconst prodEnv = require('./prod.env')\r\n\r\nmodule.exports = merge(prodEnv, {\r\n NODE_ENV: '\"development\"',\r\n API_HOST:'\"https://express.rongqe.net\"' \r\n})\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./config/dev.env.js\n// module id = dhIU\n// module chunks = 52","import gcoord from \"gcoord\";\r\n// 节流\r\nexport function throttle(fn, time) {\r\n let timer = null\r\n time = time || 1000\r\n return function (...args) {\r\n if (timer) {\r\n return\r\n }\r\n const _this = this\r\n timer = setTimeout(() => {\r\n timer = null\r\n }, time)\r\n fn.apply(_this, args)\r\n }\r\n}\r\n\r\n// 防抖\r\nexport function debounce(fn, time) {\r\n time = time || 200\r\n // 定时器\r\n let timer = null\r\n return function (...args) {\r\n var _this = this\r\n if (timer) {\r\n clearTimeout(timer)\r\n }\r\n timer = setTimeout(function () {\r\n timer = null\r\n fn.apply(_this, args)\r\n }, time)\r\n }\r\n}\r\n// WGS84转GCJ02\r\nexport function WGS84ToGCJ02(arr) {\r\n let result = gcoord.transform( //坐标转换\r\n arr, // 经纬度坐标\r\n gcoord.GCJ02, // 当前坐标系\r\n gcoord.WGS84 // 目标坐标系\r\n );\r\n return result\r\n}\r\n\r\n//深拷贝\r\nexport function deepCopy(obj, cache = []) {\r\n // 如果为普通数据类型,则直接返回,完成拷贝\r\n if (obj === null || typeof obj !== \"object\") {\r\n return obj\r\n }\r\n // cache用来储存原始值和对应拷贝数据,在递归调用deepCopy函数时,如果本次拷贝的原始值在之前已经拷贝了,则直接返回储存中的copy值,这样的话就不用再循环复制本次原始值里面的每一项了。\r\n // 还有一个更为重要的作用,假如原始值里面嵌套两个引用地址相同的对象,使用cache可以保证拷贝出来的copy值里面两个对象的引用地址也相同。\r\n // 如果find查找的是一个空数组,则不会执行\r\n const hit = find(cache, c => c.original === obj)\r\n if (hit) {\r\n return hit.copy\r\n }\r\n // 定义拷贝的数据类型\r\n const copy = Array.isArray(obj) ? [] : {}\r\n // 用来记录拷贝的原始值和copy值\r\n cache.push[{\r\n original: obj,\r\n copy\r\n }]\r\n // 递归调用深拷贝函数,拷贝对象中的每一个值\r\n Object.keys(obj).forEach(key => {\r\n copy[key] = deepCopy(obj[key], cache)\r\n })\r\n return copy\r\n}\r\n\r\nexport function lnglatFormat(type, value) {\r\n let retStr = \"\";\r\n if (type == 'lng') {\r\n if (value > 0) {\r\n retStr = value.toFixed(4) + \"° E\"\r\n } else {\r\n retStr = value.toFixed(4) + \"° W\"\r\n }\r\n } else {\r\n if (value > 0) {\r\n retStr = value.toFixed(4) + \"° N\"\r\n } else {\r\n retStr = value.toFixed(4) + \"° S\"\r\n }\r\n }\r\n\r\n return retStr;\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/plugin/publicMethod.js","'use strict'\r\nmodule.exports = {\r\n NODE_ENV: '\"production\"',\r\n API_HOST: '\"\"',\r\n RESOURCE_HOST: '\"https://www.rongqe.net\"'\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./config/prod.env.js\n// module id = rBKV\n// module chunks = 52","import ElementUI from \"element-ui\";\r\n\r\n/**\r\n * Parse the time to string\r\n * @param {(Object|string|number)} time\r\n * @param {string} cFormat\r\n * @returns {string | null}\r\n */\r\nexport function parseTime(time, cFormat) {\r\n if (arguments.length === 0 || !time) {\r\n return null;\r\n }\r\n const format = cFormat || \"{y}-{m}-{d} {h}:{i}:{s}\";\r\n let date;\r\n if (typeof time === \"object\") {\r\n date = time;\r\n } else {\r\n if (typeof time === \"string\") {\r\n if (/^[0-9]+$/.test(time)) {\r\n // support \"1548221490638\"\r\n time = parseInt(time);\r\n } else {\r\n // support safari\r\n // https://stackoverflow.com/questions/4310953/invalid-date-in-safari\r\n time = time.replace(new RegExp(/-/gm), \"/\");\r\n }\r\n }\r\n\r\n if (typeof time === \"number\" && time.toString().length === 10) {\r\n time = time * 1000;\r\n }\r\n date = new Date(time);\r\n }\r\n const formatObj = {\r\n y: date.getFullYear(),\r\n m: date.getMonth() + 1,\r\n d: date.getDate(),\r\n h: date.getHours(),\r\n i: date.getMinutes(),\r\n s: date.getSeconds(),\r\n a: date.getDay()\r\n };\r\n const time_str = format.replace(/{([ymdhisa])+}/g, (result, key) => {\r\n const value = formatObj[key];\r\n // Note: getDay() returns 0 on Sunday\r\n if (key === \"a\") {\r\n return [\"日\", \"一\", \"二\", \"三\", \"四\", \"五\", \"六\"][value];\r\n }\r\n return value.toString().padStart(2, \"0\");\r\n });\r\n return time_str;\r\n}\r\n\r\n/**\r\n * @param {number} time\r\n * @param {string} formatType date/time/datetime\r\n * @returns {string}\r\n */\r\nexport function formatTime(time, formatType) {\r\n const d = new Date(time);\r\n var hour = d.getHours();\r\n if (hour < 10) {\r\n hour = \"0\" + hour;\r\n }\r\n var minute = d.getMinutes();\r\n if (minute < 10) {\r\n minute = \"0\" + minute;\r\n }\r\n var second = d.getSeconds();\r\n if (second < 10) {\r\n second = \"0\" + second;\r\n }\r\n\r\n var formatResult = \"\";\r\n switch (formatType) {\r\n case \"date\":\r\n formatResult =\r\n d.getFullYear() + \"-\" + (d.getMonth() + 1) + \"-\" + d.getDate();\r\n break;\r\n case \"time\":\r\n formatResult = hour + \":\" + minute + \":\" + second;\r\n break;\r\n case \"minute\":\r\n formatResult = hour + \":\" + minute;\r\n break;\r\n case \"datetime\":\r\n formatResult =\r\n d.getFullYear() +\r\n \"-\" +\r\n (d.getMonth() + 1) +\r\n \"-\" +\r\n d.getDate() +\r\n \" \" +\r\n hour +\r\n \":\" +\r\n minute +\r\n \":\" +\r\n second;\r\n break;\r\n case \"week\":\r\n var weekNum = d.getDay();\r\n switch (weekNum) {\r\n case 0:\r\n formatResult = \"星期日\";\r\n break;\r\n case 1:\r\n formatResult = \"星期一\";\r\n break;\r\n case 2:\r\n formatResult = \"星期二\";\r\n break;\r\n case 3:\r\n formatResult = \"星期三\";\r\n break;\r\n case 4:\r\n formatResult = \"星期四\";\r\n break;\r\n case 5:\r\n formatResult = \"星期五\";\r\n break;\r\n case 6:\r\n formatResult = \"星期六\";\r\n break;\r\n }\r\n\r\n break;\r\n default:\r\n formatResult =\r\n d.getFullYear() +\r\n \"年\" +\r\n (d.getMonth() + 1) +\r\n \"月\" +\r\n d.getDate() +\r\n \"日 \" +\r\n hour +\r\n \":\" +\r\n minute +\r\n \":\" +\r\n second;\r\n break;\r\n }\r\n return formatResult;\r\n}\r\n\r\n/**\r\n * 设置跟节点 fonst-size\r\n */\r\nexport function setRootHtmlFontSize() {\r\n const rootHtmlDOM = document.getElementsByTagName(\"html\")[0];\r\n const w = rootHtmlDOM.offsetWidth;\r\n // 1920px为UI图的设计稿尺寸\r\n const fs = Math.round((w / 1920) * 10 * 10 * 10) / 10;\r\n rootHtmlDOM.style.fontSize = `${fs}px`;\r\n console.log(rootHtmlDOM.style.fontSize);\r\n}\r\n\r\n/**\r\n * 生成随机数\r\n * @param {INT} minNum 最小值\r\n * @param {INT} maxNum 最大值\r\n * @returns\r\n */\r\nexport function randomNum(minNum, maxNum) {\r\n switch (arguments.length) {\r\n case 1:\r\n return parseInt(Math.random() * minNum + 1, 10);\r\n break;\r\n case 2:\r\n return parseInt(Math.random() * (maxNum - minNum + 1) + minNum, 10);\r\n break;\r\n default:\r\n return 0;\r\n break;\r\n }\r\n}\r\n\r\nexport function coverFontSize(fontSize) { }\r\nexport function downloadFile(url, filename) {\r\n fetch(url, {\r\n method: 'get',\r\n resonseType: 'blob'\r\n })\r\n .then(res => {\r\n ElementUI.Message.success('视频将在后台下载,可进行其他操作');\r\n return res.blob()\r\n })\r\n .then(blob => {\r\n console.log(blob, new Date())\r\n const blobUrl = window.URL.createObjectURL(blob)\r\n const link = document.createElement(\"a\");\r\n link.href = blobUrl;\r\n link.setAttribute(\"download\", filename);\r\n link.click();\r\n link.remove();\r\n window.URL.revokeObjectURL(blobUrl)\r\n })\r\n\r\n}\r\n\r\nexport function getNow() {\r\n return (new Date()).getTime();\r\n}\r\n\r\nfunction coverWindDirection(windDirection) {\r\n var windDirectionText = \"东风\";\r\n if (\r\n (windDirection >= 0 && windDirection < 22.5) ||\r\n (windDirection >= 337.5 && windDirection <= 360)\r\n ) {\r\n var windDirectionText = \"北风\";\r\n } else if (windDirection >= 22.5 && windDirection < 67.5) {\r\n var windDirectionText = \"东北风\";\r\n } else if (windDirection >= 67.5 && windDirection < 112.5) {\r\n var windDirectionText = \"东风\";\r\n } else if (windDirection >= 112.5 && windDirection < 157.5) {\r\n var windDirectionText = \"东南风\";\r\n } else if (windDirection >= 157.5 && windDirection < 202.5) {\r\n var windDirectionText = \"南风\";\r\n } else if (windDirection >= 202.5 && windDirection < 247.5) {\r\n var windDirectionText = \"西南风\";\r\n } else if (windDirection >= 247.5 && windDirection < 292.5) {\r\n var windDirectionText = \"西风\";\r\n } else if (windDirection >= 292.5 && windDirection < 337.5) {\r\n var windDirectionText = \"西北风\";\r\n }\r\n\r\n return windDirectionText;\r\n}\r\n\r\nexport async function getBase64FromImageURL(url) {\r\n return new Promise((resolve) => {\r\n var canvas = document.createElement('canvas'),\r\n ctx = canvas.getContext('2d'),\r\n img = new Image;\r\n img.crossOrigin = 'Anonymous';\r\n img.onload = function () {\r\n canvas.height = img.height\r\n canvas.width = img.width\r\n ctx.drawImage(img, 0, 0)\r\n var base64URL = canvas.toDataURL('image/png');\r\n resolve(base64URL)\r\n canvas = null;\r\n };\r\n img.src = url;\r\n })\r\n}\r\n// base64转为file文件\r\nexport function getFileFromBase64(base64URL, filename) {\r\n var arr = base64URL.split(','),\r\n mime = arr[0].match(/:(.*?);/)[1],\r\n bstr = atob(arr[1]),\r\n n = bstr.length,\r\n u8arr = new Uint8Array(n);\r\n while (n--) {\r\n u8arr[n] = bstr.charCodeAt(n);\r\n }\r\n return new File([u8arr], filename, { type: mime });\r\n}\r\n\r\nexport function getFileFromUrl(url, fileName) {\r\n return new Promise(async (resolve, reject) => {\r\n const response = await fetch(url);\r\n const blob = await response.blob()\r\n let file = new File([blob], fileName, { type: blob.type });\r\n resolve(file)\r\n })\r\n}\r\n\r\nexport function coverSeconds(value) {\r\n let coverStr = \"\";\r\n let hour = Math.floor(value / 3600);\r\n if (hour) {\r\n coverStr += (hour + \"h\")\r\n }\r\n let min = Math.floor((value % 3600) / 60);\r\n if (min) {\r\n coverStr += (min + \"min\")\r\n }\r\n let second = value % 60;\r\n if (second) {\r\n coverStr += (second + \"s\")\r\n }\r\n\r\n return coverStr\r\n}\r\n\r\nexport default {\r\n coverWindDirection\r\n};\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/js/index.js"],"sourceRoot":""}