zhengpz
2021-11-24 3a4e92acaa231be90348ebf2ff79956b47f884c5
src/views/map/peopleGps.vue
@@ -2,7 +2,7 @@
 * @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>
@@ -131,8 +131,7 @@
</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 {
@@ -148,14 +147,10 @@
            loading: true,
            trackTime: [],
            detailObj: {},
            newAxios: null
        };
    },
    created () {
        this.newAxios = axios.create({
            baseURL: 'http://s16s652780.51mypc.cn',
            timeout: 600000 // request timeout
        })
    },
    mounted () {
@@ -194,10 +189,8 @@
        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) {
@@ -217,6 +210,8 @@
                        );
                    }
                })
                // var res = result.data.data;
                // if (JSON.stringify(res) != "{}") {
                //     this.$refs.modalForm.addEntitys(
@@ -289,10 +284,7 @@
                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) != "{}") {