{"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":1691463999680},{"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/es6.number.constructor\";\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 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: window.context.map + '/station-n-map/#/DeviceManagerGisView?mapMode=2D',\n point: {},\n showDialog: false,\n top: 0,\n left: 0,\n btnBoolen: true,\n //控制筛选弹层的显示与隐藏\n searchForm: {\n endTime: '',\n startTime: '',\n vehicleCode: ''\n },\n carList: [],\n rules: {\n vehicleCode: [{\n required: true,\n message: '请选择车辆',\n trigger: 'blur'\n }],\n endTime: [{\n required: true,\n message: '请选择开始时间',\n trigger: 'blur'\n }],\n startTime: [{\n required: true,\n message: '请选择结束时间',\n trigger: 'blur'\n }]\n },\n timer: null\n };\n },\n created: function created() {\n this.loadVehicle();\n },\n mounted: function mounted() {\n var t = this;\n this.timer = setInterval(function () {\n if (t.$refs.windowiframe.contentWindow.deviceGisFunction) {\n t.$refs.windowiframe.contentWindow.deviceGisFunction.layerVisible([]);\n t.$refs.windowiframe.contentWindow.deviceGisFunction.addPickListener(function (p) {\n // t.$refs.windowiframe.contentWindow.deviceGisFunction.removePopupLocator()\n t.showDialogData(p);\n });\n clearInterval(t.timer);\n }\n }, 500);\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: -1,\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 _this2.carList = res.rows; // const vs = res.rows.map(m => {\n // return {\n // id: m.id,\n // point: m.location.split(',', 2).map(Number),\n // statusName:\n // m.status === 'ONLINE'\n // ? '在线'\n // : m.status === 'CROSSING'\n // ? '越界'\n // : '离线',\n // flashInterval: m.status === 'CROSSING' ? 300 : 0,\n // icon:\n // m.status === 'ONLINE'\n // ? 'DUTY_V3_ONLINE.png'\n // : m.status === 'CROSSING'\n // ? 'DUTY_V3_ERROR.png'\n // : 'DUTY_V3_OFFLINE.png',\n // areaCode: 'CQBZ_BGC_F1',\n // ...m\n // }\n // })\n // const vs = [\n // {\n // id: '1668565199910608896',\n // name: '北广场岗亭1号',\n // dtype: 'WATCH',\n // longitude: '29.610250759373802',\n // latitude: '106.54715378409952',\n // area: '北广场配套服务区西',\n // areaCode: 'CQBZ_BGC_B1_004',\n // point: [106.54715378409952, 29.610250759373802],\n // icon: 'DUTY_V3_ONLINE.png'\n // }\n // ]\n // if (\n // this.$refs.windowiframe &&\n // this.$refs.windowiframe.contentWindow &&\n // this.$refs.windowiframe.contentWindow.deviceGisFunction\n // ) {\n // this.$refs.windowiframe.contentWindow.deviceGisFunction.addCarData(\n // vs\n // )\n // }\n // console.log('-------------vs-------------', JSON.stringify(vs))\n });\n },\n // 获取图层数据\n getCarLat: function getCarLat() {\n var _this3 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this3.$refs.windowiframe.contentWindow.deviceGisFunction.clearPolyline();\n\n VehicleManage.getVehicleLat(_this3.qs.stringify(_this3.searchForm), function (res) {\n console.log(res);\n var arr = res.value.gpsInfo.map(function (item) {\n return [Number(item.latitude), Number(item.longitude)];\n });\n console.log(arr);\n\n _this3.$refs.windowiframe.contentWindow.deviceGisFunction.addPolyline(arr, '#509ffd');\n });\n }\n });\n },\n // 切换展开隐藏\n changeBtn: function changeBtn() {\n this.btnBoolen = !this.btnBoolen;\n },\n // 清空图层及搜索\n clearCarLat: function clearCarLat() {\n this.searchForm.vehicleCode = '';\n this.searchForm.startTime = '';\n this.searchForm.endTime = '';\n this.$refs.windowiframe.contentWindow.deviceGisFunction.clearPolyline();\n }\n },\n beforeDestroy: function beforeDestroy() {\n clearInterval(this.timer);\n }\n};",null]}