{"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\\Manage\\duty\\CmgtDutyVehicleMonitor.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\duty\\CmgtDutyVehicleMonitor.vue","mtime":1669105893759},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.number.constructor\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _defineProperty from \"D:/jenkins/workspace/bzzgj-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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 VehicleManage from '@/api/manager/duty/vehicleManage.js';\nexport default {\n name: 'CmgtDutyVehicleMonitor',\n components: {},\n data: function data() {\n return {\n // src: '/gisapi/station-n-map/#/DeviceManagerGisView?mapMode=2D',\n src: 'http://183.230.176.125:18081/station-n-map/#/DeviceManagerGisView?mapMode=2D',\n timer: null,\n point: {},\n showDialog: false,\n top: 0,\n left: 0\n };\n },\n mounted: function mounted() {\n var t = this;\n this.timer = setInterval(function () {\n t.loadVehicle();\n }, 6000);\n setTimeout(function () {\n t.$refs.windowiframe.contentWindow.deviceGisFunction.addPickListener(function (p) {\n // t.$refs.windowiframe.contentWindow.deviceGisFunction.removePopupLocator()\n t.showDialogData(p);\n });\n }, 10000);\n },\n destroyed: function destroyed() {\n if (this.timer) {\n window.clearInterval(this.timer);\n }\n },\n methods: {\n showDialogData: function showDialogData(point) {\n var _this = this;\n\n if (point.data) {\n this.point = point;\n this.showDialog = true;\n\n if (this.point.data.area) {\n this.$refs.windowiframe.contentWindow.deviceGisFunction.clearElectronicFence();\n this.$refs.windowiframe.contentWindow.deviceGisFunction.addElectronicFence({\n id: this.point.data.id,\n points: JSON.parse(this.point.data.area)\n }, []);\n }\n\n this.$refs.windowiframe.contentWindow.deviceGisFunction.addPopupLocator({\n position: point.gisPosition,\n locator: function locator(windowPosition) {\n _this.left = parseInt(windowPosition.x) - 5;\n _this.top = parseInt(windowPosition.y) + 12;\n }\n });\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 },\n loadVehicle: function loadVehicle() {\n var _this2 = this;\n\n VehicleManage.loadVehicle({\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {},\n querys: [{\n group: 'main',\n operation: 'NOTNULL',\n parentGroup: '',\n property: 'location_',\n relation: 'AND',\n value: 'null'\n }]\n }, function (res) {\n var vs = res.rows.map(function (m) {\n return _objectSpread({\n id: m.id,\n point: m.location.split(',', 2).map(Number),\n statusName: m.status === 'ONLINE' ? '在线' : m.status === 'CROSSING' ? '越界' : '离线',\n flashInterval: m.status === 'CROSSING' ? 300 : 0,\n icon: m.status === 'ONLINE' ? 'DUTY_V3_ONLINE.png' : m.status === 'CROSSING' ? 'DUTY_V3_ERROR.png' : 'DUTY_V3_OFFLINE.png',\n 'areaCode': 'CQBZ_BGC_F1'\n }, m);\n });\n\n if (_this2.$refs.windowiframe && _this2.$refs.windowiframe.contentWindow && _this2.$refs.windowiframe.contentWindow.deviceGisFunction) {\n _this2.$refs.windowiframe.contentWindow.deviceGisFunction.addCarData(vs);\n } // console.log('-------------vs-------------', JSON.stringify(vs))\n\n });\n }\n }\n};",null]}