提交代码
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
<div class="device_item" v-for="(device, index) in effectiveDeviceList" :key="device.id">
|
<div class="device_item" v-for="(device, index) in effectiveDeviceList" :key="device.id">
|
||||||
<el-checkbox :value="device.id" :model-value="checkedDeviceIds.includes(device.id)"
|
<el-checkbox :value="device.id" :model-value="checkedDeviceIds.includes(device.id)"
|
||||||
@update:model-value="(checked: boolean) => handleCheckboxChange(checked, device.id)"
|
@update:model-value="(checked: boolean) => handleCheckboxChange(checked, device.id)"
|
||||||
class="device_checkbox" :hidden="isSingleDevice"></el-checkbox>
|
class="device_checkbox" :hidden="isSingleDevice" :disabled="device.onlineStatus==0"></el-checkbox>
|
||||||
|
|
||||||
<div class="device_page">
|
<div class="device_page">
|
||||||
<div class="device_info">
|
<div class="device_info">
|
||||||
@ -101,7 +101,7 @@ const initMap = async () => {
|
|||||||
// 创建地图实例(确保容器DOM已渲染)
|
// 创建地图实例(确保容器DOM已渲染)
|
||||||
mapInstance = new AMap.Map(mapRef.value, {
|
mapInstance = new AMap.Map(mapRef.value, {
|
||||||
center: getCenterCoord(),
|
center: getCenterCoord(),
|
||||||
zoom: isSingleDevice.value ? 5 : 5,
|
zoom: isSingleDevice.value ? 8 : 8,
|
||||||
resizeEnable: true
|
resizeEnable: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -216,10 +216,10 @@ const handlePlayPause = (group: any) => {
|
|||||||
return isNaN(lng) || isNaN(lat) ? null : [lng, lat] as [number, number];
|
return isNaN(lng) || isNaN(lat) ? null : [lng, lat] as [number, number];
|
||||||
}).filter((point: any) => point !== null); // 过滤无效点
|
}).filter((point: any) => point !== null); // 过滤无效点
|
||||||
|
|
||||||
if (validTrackPoints.length < 2) {
|
// if (validTrackPoints.length < 2) {
|
||||||
ElMessage.warning('有效轨迹点不足2个,无法播放');
|
// ElMessage.warning('有效轨迹点不足2个,无法播放');
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 3. 重置播放状态并赋值轨迹数据
|
// 3. 重置播放状态并赋值轨迹数据
|
||||||
resetPlayState();
|
resetPlayState();
|
||||||
|
Reference in New Issue
Block a user