diff --git a/src/views/client/car/index.vue b/src/views/client/car/index.vue
index 4ea7738..65cb52d 100644
--- a/src/views/client/car/index.vue
+++ b/src/views/client/car/index.vue
@@ -288,8 +288,8 @@ export default {
fence(carId) {
this.$router.push({path: '/client/sever/fence',query:{carId:carId}})
},
- realTime(vim) {
- this.$router.push({path: '/client/sever/random',query:{vim:vim}})
+ realTime(vin) {
+ this.$router.push({path: '/client/sever/random',query:{vin:vin}})
},
/** 查询车辆信息列表 */
diff --git a/src/views/client/sever/fence/index.vue b/src/views/client/sever/fence/index.vue
index 1b296bf..7260717 100644
--- a/src/views/client/sever/fence/index.vue
+++ b/src/views/client/sever/fence/index.vue
@@ -1,7 +1,6 @@
- {{fenceGroups.groupsName}}下属围栏
- 增加围栏
+ 增加围栏组
@@ -31,6 +30,18 @@
+
+
+
+
+
+
+
+
+
@@ -46,7 +57,13 @@ export default {
// 这里存放数据"
return {
carId: this.$route.query.carId,
- fenceGroups: {}
+ groups: {
+ carId: this.$route.query.carId,
+ groupsName: ''
+ },
+ fenceGroups: {},
+ dialogFormVisible: false,
+ formLabelWidth: '120px'
}
},
// 计算属性 类似于data概念",
@@ -69,9 +86,11 @@ export default {
this.getInfo()
})
},
+ // 添加
+ addGroups() {},
//前往地图增加围栏
add(groupsId) {
- this.$router.push({path:'/client/sever/map',query:{groupsId:groupsId}})
+ // this.$router.push({path:'/client/sever/map',query:{groupsId:groupsId}})
},
//修改围栏状态
query(fenceId) {
diff --git a/src/views/client/sever/map/MapContainer.vue b/src/views/client/sever/map/MapContainer.vue
index a1a9261..9385e91 100644
--- a/src/views/client/sever/map/MapContainer.vue
+++ b/src/views/client/sever/map/MapContainer.vue
@@ -3,9 +3,8 @@
绘制多边形
编辑多边形
删除多边形
- 查看
+ 将电子围栏上传
-
@@ -27,7 +26,6 @@ export default {
polygonItem: [], // 地图上绘制所有的多边形对象
polyEditors: [], //所有编辑对象的数组
pences:{
- groupsId: this.$route.query.groupsId,
list: []
} //传输
}
@@ -39,15 +37,7 @@ export default {
// 方法集合",
methods: {
sel() {// 获取坐标传输给电子围栏
- const jsonData = JSON.stringify(this.polygonItem[0].w.path)
- const jsonPare = JSON.parse(jsonData)
- jsonPare.forEach(res => {
- // console.log(res)
- })
this.pences.list = this.polygonItem[0].w.path;
- console.log(this.groupsId)
- console.log(this.groupsId)
- console.log(this.$route)
getSel(this.pences).then(res => {
console.log(res.data)
})
diff --git a/src/views/client/sever/random/index.vue b/src/views/client/sever/random/index.vue
index f2aeef0..8c278e0 100644
--- a/src/views/client/sever/random/index.vue
+++ b/src/views/client/sever/random/index.vue
@@ -1,6 +1,10 @@
-
+
+
+
{{VehicleInfo.vin}}
{{VehicleInfo.time}}
{{VehicleInfo.longitude}}
@@ -51,21 +55,25 @@
- {{vim}}
-
diff --git a/src/views/client/sever/route/index.vue b/src/views/client/sever/route/index.vue
index 5ea3ef8..85d84ea 100644
--- a/src/views/client/sever/route/index.vue
+++ b/src/views/client/sever/route/index.vue
@@ -1,116 +1,113 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
+-->
+ },
+ },
+ beforeDestroy() {
+ // 组件销毁前清理资源
+ if (this.carPath) {
+ this.carPath.setMap(null); // 如果 carPath 是 Polyline 实例,则移除它
+ }
+ if (this.carMarker) {
+ this.carMarker.setMap(null); // 移除车辆标记
+ }
+ if (this.map) {
+ this.map.destroy(); // 销毁地图实例
+ }
+ if (this.polyline) {
+ this.polyline.setMap(null); // 移除轨迹线
+ }
+ },
+};
+