shuishen
2021-11-30 8cbb44a2182a992faeeb0c1fa08e64fb104ae75c
src/views/map/carGps.vue
@@ -2,7 +2,7 @@
 * @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>
@@ -137,7 +137,7 @@
</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";
@@ -173,6 +173,7 @@
            getCarList({
                current: this.page.currentPage,
                size: this.page.pageSize,
                type: 1
            }).then((res) => {
                var data = res.data.data;
                this.tableData = data.records;
@@ -192,7 +193,7 @@
        },
        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(
@@ -258,9 +259,9 @@
                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;