| | |
| | | * @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; |