修改百度地图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

@@ -98,7 +98,7 @@ app.use(JsonViewer);
app.use(BaiduMap, {
// ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
ak: 'SOawZTeQbxdgrKYYx0o2hn34G0DyU2uo', //
ak: 'fLz8UwJSM3ayYl6dtsWYp7TQ8993R6kC', //
// v: '2.0', // 默认使用3.0
// type: 'WebGL' // ||API 默认API (使用此模式 BMap=BMapGL)
// type: 'WebGL', // ||API 默认API (使用此模式 BMap=BMapGL)

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);

View File

@@ -15,11 +15,13 @@
<el-table-column label="车牌号" prop="licensePlate"> </el-table-column>
<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>
@@ -31,11 +33,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>
@@ -47,6 +57,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 label="起始地" prop="startLocation"> </el-table-column>

View File

@@ -932,10 +932,22 @@ const fillFormWithEditData = (editData) => {
formData.endLat = delivery.endLat || '';
formData.endLon = delivery.endLon || '';
// 时间(需要处理)
// estimatedDeliveryTime 对应 estimatedArrivalTime
// 时间字段映射
// estimatedDepartureTime预计出发时间
if (delivery.estimatedDepartureTime) {
formData.estimatedDepartureTime = delivery.estimatedDepartureTime;
} else if (delivery.createTime) {
// 如果没有预计出发时间,使用创建时间作为默认值
formData.estimatedDepartureTime = delivery.createTime;
} else {
formData.estimatedDepartureTime = '';
}
// estimatedDeliveryTime 对应 estimatedArrivalTime预计送达时间
if (delivery.estimatedDeliveryTime) {
formData.estimatedArrivalTime = delivery.estimatedDeliveryTime;
} else {
formData.estimatedArrivalTime = '';
}
// 重量信息