From 3a4e92acaa231be90348ebf2ff79956b47f884c5 Mon Sep 17 00:00:00 2001
From: zhengpz <1838927346@qq.com>
Date: Thu, 25 Nov 2021 15:34:59 +0800
Subject: [PATCH] 取消表格滚动条

---
 src/views/map/peopleGps.vue |   24 ++++++++----------------
 1 files changed, 8 insertions(+), 16 deletions(-)

diff --git a/src/views/map/peopleGps.vue b/src/views/map/peopleGps.vue
index 0e484d2..dc43f21 100644
--- a/src/views/map/peopleGps.vue
+++ b/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) != "{}") {
 

--
Gitblit v1.9.3