iot地图标点页面完成

This commit is contained in:
BianLzhaoMin 2024-08-06 14:37:24 +08:00
parent 9cecab50bd
commit 7144398a5c
2 changed files with 16 additions and 13 deletions

View File

@ -176,6 +176,8 @@ export default {
],
count: 0,
trackAni: null, //
}
},
@ -186,6 +188,7 @@ export default {
},
beforeDestroy() {
console.log(this.trackAni, '轨迹实例--')
this.map.clearOverlays()
this.map.destroy()
this.map = null
@ -209,13 +212,13 @@ export default {
// 线
polyline.setStrokeColor('#EA3323') // 线 #EA3323
// polyline.setStrokeWeight(2) // 线
let trackAni = new BMapGLLib.TrackAnimation(this.map, polyline, {
this.trackAni = new BMapGLLib.TrackAnimation(this.map, polyline, {
overallView: true, //
tilt: 30, // 55
duration: 5000, // 10000ms
delay: 2000, // 0ms
})
trackAni.start()
this.trackAni.start()
//
this.triggerMovement()
},

View File

@ -135,6 +135,7 @@
<el-table
v-loading="loading"
:data="devicesList"
border
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
@ -151,13 +152,13 @@
label="设备类型"
align="center"
prop="deviceType"
:show-overflow-tooltip="true"
show-overflow-tooltip
/>
<el-table-column
label="规格型号"
align="center"
prop="specificationType"
:show-overflow-tooltip="true"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
@ -235,14 +236,10 @@
<!-- <span>{{ parseTime(scope.row.createTime) }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column
label="操作"
align="center"
width="150"
class-name="small-padding fixed-width"
>
<el-table-column label="操作" align="center" width="150">
<template slot-scope="scope">
<el-button
style="padding: 6px 10px"
size="mini"
type="primary"
icon="el-icon-edit"
@ -251,6 +248,7 @@
>编辑</el-button
>
<el-button
style="padding: 6px 10px"
size="mini"
type="danger"
icon="el-icon-delete"
@ -863,8 +861,10 @@ export default {
margin-top: 15px;
font-size: 18px;
}
::v-deep.el-table .fixed-width .el-button--mini {
width: 60px !important;
margin-bottom: 10px;
.location-icon {
font-size: 20px;
cursor: pointer;
color: #409eff;
}
</style>