修改在线监测数据问题

This commit is contained in:
guanj
2026-01-12 13:56:49 +08:00
parent bfafb6dc5b
commit 68ea43c42b
4 changed files with 10 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ export const uploadFile = (file: any, path: string) => {
data: form
}).then(res => {
if (res.code == `A0000`) {
ElMessage.success('上传成功!')
ElMessage.success('文件上传成功!')
return res
}
})

View File

@@ -1,5 +1,6 @@
<template>
<div class="default-main" style="position: relative">
<el-tabs v-model="activeName" type="border-card" class="demo-tabs">
<el-tab-pane label="导航" name="1" :style="height" lazy>
<Navigation @changeTab="changeTab" ref="navigationRef" />
@@ -65,7 +66,8 @@ watch(
})
}
)
const changeTab = (e: string) => {
const changeTab = (e: string,) => {
activeName.value = e
}
</script>

View File

@@ -65,6 +65,7 @@ onMounted(() => {
})
const handleNodeClick = (data: any, node: any) => {
console.log("🚀 ~ handleNodeClick ~ data:", data)
if (data.level === 6) {
if (window.localStorage.getItem('BMAP_SECKEY') == null) {
flag.value = false
@@ -72,6 +73,8 @@ const handleNodeClick = (data: any, node: any) => {
monitoringPoint.setValue('lineId', data.id)
monitoringPoint.setValue('lineName', data.alias)
}
setTimeout(() => {
flag.value = true

View File

@@ -37,7 +37,7 @@
<span>无暂降</span>
</div>
</div>
<!-- v-if="hackReset" -->
<!-- v-if="hackReset" -->
<baidu-map
class="bm-view"
v-if="hackReset"
@@ -269,7 +269,9 @@ const syncCenterAndZoom = (e: any) => {
zoom.value = e.target.getZoom()
}
const markerClick = (e: any) => {
console.log("🚀 ~ markerClick ~ e:", e)
infoWindowPoint.value = e
monitoringPoint.setValue('lineId', e.lineId)
infoWindowPoint.value.show = true
}
const changeTab = (e: string) => {