diff --git a/package.json b/package.json
index 2ed93d6..090a24e 100644
--- a/package.json
+++ b/package.json
@@ -52,7 +52,9 @@
"nprogress": "0.2.0",
"quill": "1.3.7",
"screenfull": "5.0.2",
+ "sockjs-client": "^1.6.1",
"sortablejs": "1.10.2",
+ "stompjs": "^2.3.3",
"vue": "2.6.12",
"vue-count-to": "1.0.13",
"vue-cropper": "0.5.5",
diff --git a/src/api/system/car.js b/src/api/system/car.js
index fac54b3..d3d873d 100644
--- a/src/api/system/car.js
+++ b/src/api/system/car.js
@@ -73,3 +73,16 @@ export function findById(carId) {
}
+export function getRealTimeData() {
+ return request({
+ url: '/analyze/realTimeData',
+ method: 'get'
+ })
+}
+
+export function getRealTimeDataTwo(vin) {
+ return request({
+ url: '/analyze/realTimeDataTwo/' +vin,
+ method: 'post'
+ })
+}
diff --git a/src/router/index.js b/src/router/index.js
index bb897e5..d0134c6 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -87,7 +87,22 @@ export const constantRoutes = [
meta: { title: '个人中心', icon: 'user' }
}
]
+ },
+ {
+ path: '/track',
+ component: Layout,
+ hidden: true,
+ redirect: 'track',
+ children: [
+ {
+ path: 'index',
+ component: () => import('@/views/system/track/index'),
+ name: 'track',
+ meta: { title: '实时轨迹' }
+ }
+ ]
}
+
]
// 动态路由,基于用户权限动态去加载
diff --git a/src/views/system/car/index.vue b/src/views/system/car/index.vue
index 6613b12..b167944 100644
--- a/src/views/system/car/index.vue
+++ b/src/views/system/car/index.vue
@@ -160,6 +160,15 @@
@click="handleDelete(scope.row)"
v-hasPermi="['system:car:remove']"
>删除
+ 实时轨迹查询
@@ -218,6 +227,7 @@
@@ -70,4 +101,9 @@ export default {
width: 25%;
height: 250px;
}
+.amap-marker-icon {
+ border: none !important; /* 移除Marker的边框 */
+ box-shadow: none !important; /* 移除Marker的阴影 */
+ }
+