From ecdffd165cf73c0e3c051c69d1dfdc71ba9331c8 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 26 Nov 2024 01:18:01 +0800
Subject: [PATCH] 突发事件模拟调整
---
src/views/companyInfo/components/box/dataContent.vue | 42 +++++++++++++++++++++++-------------------
1 files changed, 23 insertions(+), 19 deletions(-)
diff --git a/src/views/companyInfo/components/box/dataContent.vue b/src/views/companyInfo/components/box/dataContent.vue
index 4f048bf..96711aa 100644
--- a/src/views/companyInfo/components/box/dataContent.vue
+++ b/src/views/companyInfo/components/box/dataContent.vue
@@ -4,30 +4,37 @@
* @LastEditors: shuishen 1109946754@qq.com
* @LastEditTime: 2024-11-12 18:10:32
* @FilePath: \bigScreen\src\views\space\components\leftContainer.vue
- * @Description:
- *
- * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
+ * @Description:
+ *
+ * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
-->
<script setup>
import { getFacilityList } from "@/api/facility"
import { onUnmounted, reactive } from 'vue'
+const { VITE_APP_BASE } = import.meta.env
const resData = reactive({
data: [{
label: '防线一',
value: '1',
type: 1,
- remark: '防火提及配套设置、装置围堰、罐区围堰'
+ remark: '防火提及配套设置、装置围堰、罐区围堰',
+ showPanel: false,
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/wy.png'
}, {
label: '防线二',
value: '2',
type: 2,
- remark: '雨污水排口一体化闸阀、车间收集池、雨污管阀'
+ remark: '雨污水排口一体化闸阀、车间收集池、雨污管阀',
+ showPanel: false,
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/ysf.png'
},
{
label: '防线三',
value: '3',
type: 3,
- remark: '事故应急池、雨水收集池'
+ remark: '事故应急池、雨水收集池',
+ showPanel: false,
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/yjc.png'
}
]
})
@@ -52,21 +59,17 @@
if ('showPanel' in item && item.showPanel == false) {
if (item.backgroundIcon) {
iconEl = `
- <div class="map-name">${i[item.showParams] || i.name}</div>
- <div class="map-icon">
- <img src="${item.backgroundIcon}">
- </div>
- `
+ <div class="map-name">${i[item.showParams] || i.name}</div>
+ <div class="map-icon">
+ <img src="${item.backgroundIcon}">
+ </div>
+ `
}
} else {
- iconEl = `<div class="marsBlueGradientPnl">
- <div>${i.name}</div> </div>`
+ iconEl = `<div class="marsBlueGradientPnl"> <div>${i.name}</div> </div>`
}
let divIcon = new DC.DivIcon(
- new DC.Position(i.lng, i.lat, 0),
- `<div class="public-map-popup">
- ${iconEl}
- </div>`
+ new DC.Position(i.lng, i.lat, 64), `<div class="public-map-popup ${'yjc-box'}"> ${iconEl} </div>`
)
divIcon.attrParams = i
@@ -152,9 +155,10 @@
&.on {
position: relative;
- color: #75b1ff;
+ // color: #75b1ff;
+ box-shadow: inset 0 0 100px #2a8ef1;
}
}
}
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3