同步电网一张图代码
This commit is contained in:
@@ -76,7 +76,7 @@ const dictData = useDictData()
|
||||
const datePickerRef = ref()
|
||||
const form: any = ref({})
|
||||
const colorKey = ref('')
|
||||
const PopKey = ref(0)
|
||||
const PopKey = ref(2)
|
||||
const assessList: any = ref([])
|
||||
const linList: any = ref([])
|
||||
const QueryList: any = ref([])
|
||||
@@ -781,10 +781,9 @@ const radiusPop = (k?: number) => {
|
||||
}
|
||||
|
||||
mapList.value.forEach((item: any, i: number) => {
|
||||
console.log('🚀 ~ mapList.value.forEach ~ item:', item.LngLat)
|
||||
let infoText = ''
|
||||
|
||||
if (PopKey.value == 0) {
|
||||
if (PopKey.value == 2) {
|
||||
// 监测点
|
||||
infoText = `<img src="${new URL(`@/assets/img/JCD-ZS.png`, import.meta.url)}" />
|
||||
<div class="infoBox">
|
||||
@@ -798,7 +797,7 @@ const radiusPop = (k?: number) => {
|
||||
item.alarmList
|
||||
}" data-key="1" data-LngLat="${item.LngLat}">告警<br/>${item.alarm}</div>
|
||||
</div>`
|
||||
} else if (PopKey.value == 1) {
|
||||
} else if (PopKey.value == 0) {
|
||||
// 变电站
|
||||
infoText = `<img src="${new URL(`@/assets/img/BDZ-ZS.png`, import.meta.url)}" />
|
||||
<div class="infoBox">
|
||||
@@ -809,7 +808,7 @@ const radiusPop = (k?: number) => {
|
||||
item.alarmSubList
|
||||
}" data-key="1" data-LngLat="${item.LngLat}">告警<br/>${item.alarmSubNum}</div>
|
||||
</div>`
|
||||
} else if (PopKey.value == 2) {
|
||||
} else if (PopKey.value == 1) {
|
||||
// 终端
|
||||
infoText = `<img src="${new URL(`@/assets/img/ZD-ZS.png`, import.meta.url)}" />
|
||||
<div class="infoBox">
|
||||
|
||||
Reference in New Issue
Block a user