修改百度地图AK

This commit is contained in:
xuqiuyun
2025-11-04 09:38:19 +08:00
parent 4b6d14a6ec
commit eacb0453dd
52 changed files with 3865 additions and 65 deletions

View File

@@ -8,11 +8,13 @@
<el-table-column prop="licensePlate" label="车牌号" />
<el-table-column label="车身照片" prop="" width="160">
<template #default="scope">
<!-- 车头照片 -->
<el-image
v-if="scope.row.carFrontPhoto"
style="width: 50px; height: 50px; margin-right: 10px"
:src="scope.row.carFrontPhoto ? scope.row.carFrontPhoto : ''"
:src="scope.row.carFrontPhoto"
fit="cover"
:preview-src-list="[scope.row.carFrontPhoto] ? [scope.row.carFrontPhoto] : []"
:preview-src-list="[scope.row.carFrontPhoto]"
preview-teleported
>
<template #error>
@@ -24,11 +26,19 @@
</div>
</template>
</el-image>
<div
v-else
style="width: 50px; height: 50px; margin-right: 10px; display: inline-flex; justify-content: center; align-items: center; background: #f5f7fa; border-radius: 4px; color: #909399"
>
<el-icon style="font-size: 30px"><Picture /></el-icon>
</div>
<!-- 车尾照片 -->
<el-image
v-if="scope.row.carBehindPhoto"
style="width: 50px; height: 50px; margin-right: 10px"
:src="scope.row.carBehindPhoto ? scope.row.carBehindPhoto : ''"
:src="scope.row.carBehindPhoto"
fit="cover"
:preview-src-list="[scope.row.carBehindPhoto] ? [scope.row.carBehindPhoto] : []"
:preview-src-list="[scope.row.carBehindPhoto]"
preview-teleported
>
<template #error>
@@ -40,6 +50,12 @@
</div>
</template>
</el-image>
<div
v-else
style="width: 50px; height: 50px; margin-right: 10px; display: inline-flex; justify-content: center; align-items: center; background: #f5f7fa; border-radius: 4px; color: #909399"
>
<el-icon style="font-size: 30px"><Picture /></el-icon>
</div>
</template>
</el-table-column>
<el-table-column prop="startLocation" label="起始地" />

View File

@@ -518,7 +518,7 @@ const loadDeviceLogs = async (deviceId, deviceType, deliveryId) => {
const initMap = async () => {
try {
// 使用百度地图 API Key
const BMapGL = await BMPGL('SOawZTeQbxdgrKYYx0o2hn34G0DyU2uo');
const BMapGL = await BMPGL('fLz8UwJSM3ayYl6dtsWYp7TQ8993R6kC');
const lat = parseFloat(warningData.latitude);
const lon = parseFloat(warningData.longitude);