修改在线监测数据问题
This commit is contained in:
@@ -31,7 +31,7 @@ export const uploadFile = (file: any, path: string) => {
|
|||||||
data: form
|
data: form
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == `A0000`) {
|
if (res.code == `A0000`) {
|
||||||
ElMessage.success('上传成功!')
|
ElMessage.success('文件上传成功!')
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main" style="position: relative">
|
<div class="default-main" style="position: relative">
|
||||||
|
|
||||||
<el-tabs v-model="activeName" type="border-card" class="demo-tabs">
|
<el-tabs v-model="activeName" type="border-card" class="demo-tabs">
|
||||||
<el-tab-pane label="导航" name="1" :style="height" lazy>
|
<el-tab-pane label="导航" name="1" :style="height" lazy>
|
||||||
<Navigation @changeTab="changeTab" ref="navigationRef" />
|
<Navigation @changeTab="changeTab" ref="navigationRef" />
|
||||||
@@ -65,7 +66,8 @@ watch(
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
const changeTab = (e: string) => {
|
const changeTab = (e: string,) => {
|
||||||
|
|
||||||
activeName.value = e
|
activeName.value = e
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ onMounted(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const handleNodeClick = (data: any, node: any) => {
|
const handleNodeClick = (data: any, node: any) => {
|
||||||
|
console.log("🚀 ~ handleNodeClick ~ data:", data)
|
||||||
if (data.level === 6) {
|
if (data.level === 6) {
|
||||||
if (window.localStorage.getItem('BMAP_SECKEY') == null) {
|
if (window.localStorage.getItem('BMAP_SECKEY') == null) {
|
||||||
flag.value = false
|
flag.value = false
|
||||||
@@ -72,6 +73,8 @@ const handleNodeClick = (data: any, node: any) => {
|
|||||||
|
|
||||||
monitoringPoint.setValue('lineId', data.id)
|
monitoringPoint.setValue('lineId', data.id)
|
||||||
monitoringPoint.setValue('lineName', data.alias)
|
monitoringPoint.setValue('lineName', data.alias)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
flag.value = true
|
flag.value = true
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
<span>无暂降</span>
|
<span>无暂降</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- v-if="hackReset" -->
|
<!-- v-if="hackReset" -->
|
||||||
<baidu-map
|
<baidu-map
|
||||||
class="bm-view"
|
class="bm-view"
|
||||||
v-if="hackReset"
|
v-if="hackReset"
|
||||||
@@ -269,7 +269,9 @@ const syncCenterAndZoom = (e: any) => {
|
|||||||
zoom.value = e.target.getZoom()
|
zoom.value = e.target.getZoom()
|
||||||
}
|
}
|
||||||
const markerClick = (e: any) => {
|
const markerClick = (e: any) => {
|
||||||
|
console.log("🚀 ~ markerClick ~ e:", e)
|
||||||
infoWindowPoint.value = e
|
infoWindowPoint.value = e
|
||||||
|
monitoringPoint.setValue('lineId', e.lineId)
|
||||||
infoWindowPoint.value.show = true
|
infoWindowPoint.value.show = true
|
||||||
}
|
}
|
||||||
const changeTab = (e: string) => {
|
const changeTab = (e: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user