| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-11-24 09:54:16 |
| | | * @Last Modified time: 2021-11-25 13:48:23 |
| | | * menu-name 押运人员定位 |
| | | */ |
| | | <template> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import axios from 'axios' |
| | | import { getPeopleList, getPosition, getTrack, newPeople } from "@/api/map/people"; |
| | | import { getPeopleList, getPosition, getTrack, getNewPeople, getNewTark } from "@/api/map/people"; |
| | | |
| | | import peoplePng from "@/assets/img/people.png"; |
| | | export default { |
| | |
| | | loading: true, |
| | | trackTime: [], |
| | | detailObj: {}, |
| | | newAxios: null |
| | | }; |
| | | }, |
| | | created () { |
| | | this.newAxios = axios.create({ |
| | | baseURL: 'http://s16s652780.51mypc.cn', |
| | | timeout: 600000 // request timeout |
| | | }) |
| | | |
| | | |
| | | }, |
| | | mounted () { |
| | |
| | | |
| | | positionClick (val) { |
| | | getPosition({ type: 1, workerId: val.id }).then((result) => { |
| | | this.newAxios({ |
| | | url: '/Escort/getgis.php?acc=7731', |
| | | method: 'get' |
| | | }).then(res => { |
| | | |
| | | getNewPeople().then(res => { |
| | | |
| | | if (JSON.stringify(res.data) != "{}") { |
| | | var arr = res.data.sort(function (a, b) { |
| | |
| | | ); |
| | | } |
| | | }) |
| | | |
| | | |
| | | // var res = result.data.data; |
| | | // if (JSON.stringify(res) != "{}") { |
| | | // this.$refs.modalForm.addEntitys( |
| | |
| | | endTime: end, |
| | | }).then((result) => { |
| | | |
| | | this.newAxios({ |
| | | url: '/Escort/getgistrack.php?number=7730&acc=7731', |
| | | method: 'get' |
| | | }).then(res => { |
| | | getNewTark().then(res => { |
| | | |
| | | if (JSON.stringify(res.data.track) != "{}") { |
| | | |