{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\performanceAnalysis\\EquipmentMap.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\performanceAnalysis\\EquipmentMap.vue","mtime":1695626572392},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport Iframe from '@/views/Manage/components/Iframe.vue';\nimport videoPlayPlugin from '@/views/Device/deviceMonitor/components/videoPlayPlugin.vue';\nimport easyPlayerPlugin from '@/views/Device/performanceAnalysis/components/easyPlayerPlugin.vue';\nexport default {\n name: 'EquipmentMap',\n components: {\n Iframe: Iframe,\n videoPlayPlugin: videoPlayPlugin,\n easyPlayerPlugin: easyPlayerPlugin\n },\n data: function data() {\n return {\n // src: '/gisapi/station-n-map/#/DeviceManagerGisView?mapMode=2D',\n src: window.context.map + '/station-n-map/#/DeviceManagerGisView?mapMode=2D',\n showDialog: false,\n showVideo: false,\n videoCode: '',\n videoOptions: {\n layout: '1x1',\n showToolbar: 1,\n simpleTips: true,\n mountedInit: false\n },\n point: {\n data: null // {\n // name: '111',\n // code: '22',\n // proTypeName: '2',\n // areaName: '',\n // life: '2',\n // important: '1',\n // },\n\n },\n top: 100,\n left: 500,\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 1,\n showTotal: true\n },\n sorter: [{\n direction: 'DESC',\n property: 'createTime'\n }]\n },\n deviceId: '',\n hasRealTimeData: false,\n realtimeData: [],\n realTimeDataType: ['fbsjz', 'jwwxyjc', 'dwjs', 'bspqx'],\n hazard: [// 危险源监测\n {\n value: '',\n name: '气体浓度'\n }, {\n value: '',\n name: '采集时间'\n }],\n barricade: [// 升降路障\n {\n value: '',\n name: '操作人'\n }, {\n value: '',\n name: '动作标识'\n }, {\n value: '',\n name: '动作状态'\n }, {\n value: '',\n name: '采集时间'\n }],\n water: [// 低洼积水监测\n {\n value: '',\n name: '水位高度'\n }, {\n value: '',\n name: '采集时间'\n }],\n signboaerd: [// 标志牌监测\n // {\n // value: '',\n // name: '电池电量',\n // unit: '%',\n // },\n {\n value: '',\n name: '数据类型'\n }, {\n value: '',\n name: 'X轴角度',\n unit: '°'\n }, {\n value: '',\n name: 'Y轴角度',\n unit: '°'\n }, {\n value: '',\n name: 'Z轴角度',\n unit: '°'\n }, {\n value: '',\n name: '设备电压',\n unit: 'v'\n }, {\n value: '',\n name: '采集时间'\n }],\n dataTypeList: [],\n actionList: [],\n statusList: [],\n dataPosition: null\n };\n },\n mounted: function mounted() {\n this.dataTypeList = dictUtils.getDictItemsFromCache('sjlx');\n this.actionList = dictUtils.getDictItemsFromCache('dzbs');\n this.statusList = dictUtils.getDictItemsFromCache('cgzt');\n },\n created: function created() {\n var that = this;\n setTimeout(function () {\n that.$refs.windowiframe.contentWindow.deviceGisFunction.addPickListener(function (p) {\n console.log('icon', p);\n\n if (p.data) {\n that.$refs.windowiframe.contentWindow.deviceGisFunction.removePopupLocator();\n that.showDialogData(p);\n }\n });\n }, 6000);\n },\n methods: {\n videoOpen: function videoOpen(data) {\n var _this = this;\n\n this.showVideo = true;\n this.$nextTick(function () {\n // this.$refs.video.open() 海康\n _this.$refs.easyPlayer.getUrlAndPlay(data.code, data.name);\n });\n },\n videoClose: function videoClose() {\n var _this2 = this;\n\n this.showVideo = false;\n this.$nextTick(function () {\n _this2.$refs.video.disconnect();\n });\n },\n ready: function ready() {\n this.videoPlay(this.videoCode);\n },\n videoPlay: function videoPlay(code) {\n var _this3 = this;\n\n this.$nextTick(function () {\n _this3.$refs.video.play(code);\n });\n },\n closeDialog: function closeDialog() {\n this.$refs.windowiframe.contentWindow.deviceGisFunction.removePopupLocator();\n this.point = {\n data: null\n };\n this.showDialog = false;\n this.hasRealTimeData = false;\n },\n getPosition: function getPosition(position, type) {\n var _this4 = this;\n\n console.log(position);\n this.$refs.windowiframe.contentWindow.deviceGisFunction.addPopupLocator({\n position: position,\n locator: function locator(windowPosition) {\n _this4.dataPosition = windowPosition; // console.log(windowPosition)\n // 2D\n\n _this4.left = parseInt(windowPosition.x) - 2;\n _this4.top = parseInt(windowPosition.y); // if (type == 1) {\n // this.left = parseInt(windowPosition.x) - 2\n // this.top = parseInt(windowPosition.y)\n // } else {\n // this.left = parseInt(windowPosition.x) - 2\n // this.top = parseInt(windowPosition.y)\n // }\n }\n });\n },\n showDialogData: function showDialogData(point) {\n this.hasRealTimeData = false;\n this.showDialog = true;\n this.point = point;\n var position = [parseFloat(this.point.data.lgtd), parseFloat(this.point.data.lttd)];\n console.log(this.point.data);\n this.videoCode = this.point.data.code; // 视频\n\n this.deviceId = this.point.data.id; // 其他设备\n\n this.getPosition(position); // 有实时数据的类型\n\n if (this.point.data.proTypeCode && this.realTimeDataType.includes(this.point.data.proCode)) {\n this.getRealtimeData();\n }\n },\n getRealtimeData: function getRealtimeData() {\n var _this5 = this;\n\n var params = {\n url: '${portal}/device/data/query?id=' + this.deviceId,\n data: this.queryParam,\n method: 'post'\n };\n this.$http.request(params).then(function (res) {\n if (res.data.state && res.data.value) {\n _this5.realtimeData = res.data.value.data.rows[0];\n\n _this5.formatData();\n } else {\n _this5.hasData = false;\n }\n });\n },\n formatData: function formatData() {\n var _this6 = this;\n\n if (this.point.data.proCode == 'jwwxyjc') {\n for (var key in this.realtimeData) {\n if (key == 'sdata') {\n this.hazard[0].value = this.realtimeData[key];\n } else if (key == 'collTime') {\n this.hazard[1].value = this.realtimeData[key];\n }\n }\n\n this.realtimeData = this.hazard;\n } else if (this.point.data.proCode == 'fbsjz') {\n var _loop = function _loop(_key) {\n if (_key == 'createBy') {\n _this6.barricade[0].value = _this6.realtimeData[_key];\n } else if (_key == 'action') {\n _this6.actionList.forEach(function (type) {\n if (_this6.realtimeData[_key] == type.value) {\n _this6.barricade[1].value = type.name;\n }\n });\n } else if (_key == 'status') {\n _this6.statusList.forEach(function (type) {\n if (_this6.realtimeData[_key] == type.value) {\n _this6.barricade[2].value = type.name;\n }\n });\n } else if (_key == 'collTime') {\n _this6.barricade[3].value = _this6.realtimeData[_key];\n }\n };\n\n for (var _key in this.realtimeData) {\n _loop(_key);\n }\n\n this.realtimeData = this.barricade;\n } else if (this.point.data.proCode == 'dwjs') {\n for (var _key2 in this.realtimeData) {\n if (_key2 == 'sdata') {\n this.water[0].value = this.realtimeData[_key2];\n } else if (_key2 == 'collTime') {\n this.water[1].value = this.realtimeData[_key2];\n }\n }\n\n this.realtimeData = this.water;\n } else if (this.point.data.proCode == 'bspqx') {\n var _loop2 = function _loop2(_key3) {\n // if (key == 'batteryValue') {\n // this.signboaerd[0].value = this.realtimeData[key]\n // }\n if (_key3 == 'dataType') {\n _this6.dataTypeList.forEach(function (type) {\n if (_this6.realtimeData[_key3] == type.value) {\n _this6.signboaerd[0].value = type.name;\n }\n });\n } else if (_key3 == 'angleX') {\n _this6.signboaerd[1].value = _this6.realtimeData[_key3];\n } else if (_key3 == 'angleY') {\n _this6.signboaerd[2].value = _this6.realtimeData[_key3];\n } else if (_key3 == 'angleZ') {\n _this6.signboaerd[3].value = _this6.realtimeData[_key3];\n } else if (_key3 == 'batteryVoltage') {\n _this6.signboaerd[4].value = _this6.realtimeData[_key3];\n } else if (_key3 == 'collTime') {\n _this6.signboaerd[5].value = _this6.realtimeData[_key3];\n }\n };\n\n for (var _key3 in this.realtimeData) {\n _loop2(_key3);\n }\n\n this.realtimeData = this.signboaerd;\n }\n\n this.hasRealTimeData = true;\n }\n }\n};",null]}