| | |
| | | |
| | | export const getTrack = (param) => { |
| | | return request({ |
| | | url: '/api/liveLocation/getLocusInfoList', |
| | | url: '/api/locus/pages', |
| | | method: 'get', |
| | | params: param |
| | | }) |
| | |
| | | |
| | | export const getNewPosition = (param) => { |
| | | return request({ |
| | | url: '/api/car/locationcar', |
| | | url: '/api/liveLocation/detail', |
| | | method: 'get', |
| | | params: param |
| | | }) |
| | |
| | | params: param |
| | | }) |
| | | } |
| | | |
| | | |
| | | export const getNewTrack = (param) => { |
| | | return request({ |
| | | url: '/api/investigate/gun', |
| | | method: 'get', |
| | | params: param |
| | | }) |
| | | } |
| | |
| | | |
| | | export const getTrack = (param) => { |
| | | return request({ |
| | | url: '/api/liveLocation/getLocusInfoList', |
| | | url: '/api/locus/pages', |
| | | method: 'get', |
| | | params: param |
| | | }) |
| | |
| | | |
| | | export const getNewPeople = (param) => { |
| | | return request({ |
| | | url: '/api/car/Peo', |
| | | method: 'get', |
| | | params: param |
| | | }) |
| | | } |
| | | |
| | | export const getNewTark = (param) => { |
| | | return request({ |
| | | url: '/api/car/Peog', |
| | | url: '/api/liveLocation/detail', |
| | | method: 'get', |
| | | params: param |
| | | }) |
| | |
| | | #avue-view { |
| | | &>.morpheus-map-box { |
| | | position: absolute; |
| | | top: 40px; |
| | | top: 0px; |
| | | left: 0px; |
| | | right: 0px; |
| | | bottom: 0px; |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-11-17 09:20:19 |
| | | * @Last Modified time: 2021-11-30 14:12:02 |
| | | * menu-name 押运人员定位 |
| | | */ |
| | | <template> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getCarList, getPosition, getTrack } from "@/api/map/car"; |
| | | import { getCarList, getTrack, getNewPosition } from "@/api/map/car"; |
| | | |
| | | import carPng from "@/assets/img/car.png"; |
| | | |
| | |
| | | getCarList({ |
| | | current: this.page.currentPage, |
| | | size: this.page.pageSize, |
| | | type: 1 |
| | | }).then((res) => { |
| | | var data = res.data.data; |
| | | this.tableData = data.records; |
| | |
| | | }, |
| | | |
| | | positionClick (val) { |
| | | getPosition({ type: 2, workerId: val.id }).then((result) => { |
| | | getNewPosition({ type: 2, workerId: val.carNumber }).then((result) => { |
| | | var res = result.data.data; |
| | | if (JSON.stringify(res) != "{}") { |
| | | this.$refs.modalForm.addEntitys( |
| | |
| | | this.disposeTime(endTime.getSeconds()); |
| | | |
| | | getTrack({ |
| | | workerId: this.detailObj.id, |
| | | workerId: this.detailObj.carNumber, |
| | | type: 2, |
| | | startTime: start, |
| | | beginTime: start, |
| | | endTime: end, |
| | | }).then((res) => { |
| | | var result = res.data.data; |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-11-17 09:21:20 |
| | | * @Last Modified time: 2021-11-30 14:22:39 |
| | | * menu-name 押运人员定位 |
| | | */ |
| | | <template> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getGunList, getPosition, getTrack } from "@/api/map/gun"; |
| | | import { getGunList, getPosition, getTrack, getNewTrack } from "@/api/map/gun"; |
| | | |
| | | import gunPng from "@/assets/img/gun.png"; |
| | | |
| | |
| | | "-" + |
| | | this.disposeTime(startTime.getMonth() + 1) + |
| | | "-" + |
| | | this.disposeTime(startTime.getDate()) + |
| | | " " + |
| | | this.disposeTime(startTime.getHours()) + |
| | | ":" + |
| | | this.disposeTime(startTime.getMinutes()) + |
| | | ":" + |
| | | this.disposeTime(startTime.getSeconds()); |
| | | this.disposeTime(startTime.getDate()); |
| | | if (this.trackTime.length == 1) { |
| | | this.$message({ message: "请选择结束时间", duration: 2000 }); |
| | | return; |
| | |
| | | "-" + |
| | | this.disposeTime(endTime.getMonth() + 1) + |
| | | "-" + |
| | | this.disposeTime(endTime.getDate()) + |
| | | " " + |
| | | this.disposeTime(endTime.getHours()) + |
| | | ":" + |
| | | this.disposeTime(endTime.getMinutes()) + |
| | | ":" + |
| | | this.disposeTime(endTime.getSeconds()); |
| | | this.disposeTime(endTime.getDate()); |
| | | |
| | | getTrack({ |
| | | workerId: this.detailObj.id, |
| | | type: 3, |
| | | // getTrack({ |
| | | // workerId: this.detailObj.id, |
| | | // type: 3, |
| | | // startTime: start, |
| | | // endTime: end, |
| | | // }).then((res) => { |
| | | // var result = res.data.data; |
| | | // if (result.length > 1) { |
| | | // let arr = []; |
| | | |
| | | // result.forEach((item) => { |
| | | // arr.push([Number(item.longitude), Number(item.latitude)]); |
| | | // }); |
| | | |
| | | // this.$refs.modalForm.addLines(arr); |
| | | // } |
| | | // }); |
| | | |
| | | getNewTrack({ |
| | | startTime: start, |
| | | endTime: end, |
| | | }).then((res) => { |
| | | console.log(res, "车辆轨迹"); |
| | | var result = res.data.data; |
| | | if (result.length > 1) { |
| | | let arr = []; |
| | | |
| | | result.forEach((item) => { |
| | | arr.push([Number(item.longitude), Number(item.latitude)]); |
| | | result.res.forEach((item) => { |
| | | arr.push([Number(item.dwjd), Number(item.dwwd)]); |
| | | }); |
| | | |
| | | this.$refs.modalForm.addLines(arr); |
| | | } |
| | | }); |
| | | |
| | | |
| | | }, |
| | | // 处理时间补零操作 |
| | | disposeTime(s) { |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-11-26 16:30:27 |
| | | * @Last Modified time: 2021-11-30 14:12:12 |
| | | * menu-name 押运人员定位 |
| | | */ |
| | | <template> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getPeopleList, getPosition, getTrack, getNewPeople, getNewTark } from "@/api/map/people"; |
| | | import { getPeopleList, getTrack, getNewPeople } from "@/api/map/people"; |
| | | |
| | | import peoplePng from "@/assets/img/people.png"; |
| | | export default { |
| | |
| | | }, |
| | | |
| | | positionClick (val) { |
| | | getPosition({ type: 1, workerId: val.id }).then((result) => { |
| | | |
| | | // getNewPeople().then(res => { |
| | | |
| | | // if (JSON.stringify(res.data) != "{}") { |
| | | // var arr = res.data.sort(function (a, b) { |
| | | // return a['date'] < b['date'] ? 1 : -1 |
| | | // }) |
| | | |
| | | // this.$refs.modalForm.addEntitys( |
| | | // { |
| | | // LGTD: arr[0].gis_jd, |
| | | // LTTD: arr[0].gis_wd, |
| | | // name: "人员位置", |
| | | // }, |
| | | // peoplePng, |
| | | // 0.5, |
| | | // "peoplelayer", |
| | | // "peopleAddlayer" |
| | | // ); |
| | | // } |
| | | // }) |
| | | |
| | | |
| | | getNewPeople({ type: 1, workerId: val.id }).then((result) => { |
| | | var res = result.data.data; |
| | | if (JSON.stringify(res) != "{}") { |
| | | this.$refs.modalForm.addEntitys( |
| | |
| | | "peopleAddlayer" |
| | | ); |
| | | } |
| | | |
| | | }); |
| | | |
| | | }, |
| | | |
| | | detailsClick (row) { |
| | |
| | | getTrack({ |
| | | workerId: this.detailObj.id, |
| | | type: 1, |
| | | startTime: start, |
| | | beginTime: start, |
| | | endTime: end, |
| | | }).then((res) => { |
| | | |
| | | // getNewTark().then(res => { |
| | | |
| | | // if (JSON.stringify(res.data.track) != "{}") { |
| | | |
| | | // if (res.data.track.length > 1) { |
| | | // let arr = []; |
| | | |
| | | // res.data.track.forEach((item) => { |
| | | // arr.push([Number(item.gis_jd), Number(item.gis_wd)]); |
| | | // }); |
| | | |
| | | // this.$refs.modalForm.addLines(arr); |
| | | // } |
| | | |
| | | // } |
| | | |
| | | // }) |
| | | |
| | | var result = res.data.data; |
| | | if (result.length > 1) { |
| | | let arr = []; |