deviceApicture.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. <!--监测设备一张图-->
  2. <template>
  3. <div class="gis-monitor-dashboard">
  4. <!-- 顶部导航栏 -->
  5. <div class="dashboard-header">
  6. <div class="header-actions">
  7. <el-badge :value="onlineCount" type="primary">
  8. <el-button type="primary" plain :icon="Connection">在线设备</el-button>
  9. </el-badge>
  10. <el-badge :value="alertCount" type="danger">
  11. <el-button type="danger" plain :icon="WarningFilled">告警设备</el-button>
  12. </el-badge>
  13. </div>
  14. </div>
  15. <!-- 主体区域:左侧设备列表 + 右侧百度地图 -->
  16. <div class="main-layout">
  17. <!-- 左侧:设备列表 & 筛选 -->
  18. <div class="device-panel">
  19. <div class="panel-header">
  20. <span>监测设备列表</span>
  21. <el-input
  22. v-model="searchKeyword"
  23. placeholder="搜索设备名称/编号"
  24. clearable
  25. :prefix-icon="Search"
  26. size="small"
  27. @keyup.enter="handleSearch"
  28. @clear="handleSearch"
  29. />
  30. </div>
  31. <div class="filter-tabs">
  32. <el-radio-group v-model="typeFilter" size="small" @change="handleSearch">
  33. <el-radio-button label="all">全部</el-radio-button>
  34. <el-radio-button label="5">供水窨井</el-radio-button>
  35. <el-radio-button label="9">排水窨井</el-radio-button>
  36. <el-radio-button label="10">燃气窨井</el-radio-button>
  37. </el-radio-group>
  38. </div>
  39. <div class="device-list-scroll" v-loading="listLoading">
  40. <div
  41. v-for="device in devices"
  42. :key="device.id"
  43. class="device-item"
  44. :class="{ active: selectedDevice?.id === device.id }"
  45. @click="selectDevice(device)"
  46. >
  47. <div class="device-status-dot">
  48. <div class="status-icon" :style="{ backgroundColor: getStatusColor(device.status) }"></div>
  49. </div>
  50. <div class="device-info">
  51. <div class="device-name">{{ device.name }}</div>
  52. <div class="device-location">
  53. <el-icon><Location /></el-icon> {{ device.location || '未知位置' }}
  54. </div>
  55. <div class="device-meta">
  56. <el-tag size="small" :type="getStatusTag(device.status)">{{ getStatusText(device.status) }}</el-tag>
  57. <span class="device-time">{{ device.typeName }}</span>
  58. </div>
  59. </div>
  60. </div>
  61. <el-empty v-if="!listLoading && devices.length === 0" description="暂无设备数据" :image-size="80" />
  62. <!-- 分页 -->
  63. <div class="pagination-area">
  64. <el-pagination
  65. small
  66. background
  67. layout="prev, pager, next"
  68. :total="total"
  69. :page-size="pageSize"
  70. v-model:current-page="currentPage"
  71. @current-change="loadDevices"
  72. />
  73. </div>
  74. </div>
  75. </div>
  76. <!-- 右侧:百度地图展示区 -->
  77. <div class="gis-container">
  78. <div class="map-toolbar">
  79. <div class="tool-group">
  80. <span class="map-title">沅陵县窨井设备分布</span>
  81. </div>
  82. <div class="legend">
  83. <span><i class="legend-dot online"></i> 在线</span>
  84. <span><i class="legend-dot alert"></i> 告警</span>
  85. <span><i class="legend-dot offline"></i> 离线</span>
  86. <span><i class="legend-dot selected"></i> 选中设备</span>
  87. </div>
  88. </div>
  89. <!-- 百度地图容器 -->
  90. <div class="map-area">
  91. <div id="deviceApictureMap" class="bmap-container"></div>
  92. </div>
  93. <!-- 右下角 选中设备详情卡片 -->
  94. <transition name="slide-fade">
  95. <div v-if="selectedDevice" class="detail-card">
  96. <div class="card-header">
  97. <strong>设备详情</strong>
  98. <el-icon class="close-icon" @click="clearSelected"><Close /></el-icon>
  99. </div>
  100. <div class="card-body">
  101. <el-descriptions :column="1" border size="small">
  102. <el-descriptions-item label="设备编号">{{ selectedDevice.code }}</el-descriptions-item>
  103. <el-descriptions-item label="设备名称">{{ selectedDevice.name }}</el-descriptions-item>
  104. <el-descriptions-item label="设备类型">{{ selectedDevice.typeName }}</el-descriptions-item>
  105. <el-descriptions-item label="运维状态">
  106. <el-tag :type="getStatusTag(selectedDevice.status)" size="small">{{ getStatusText(selectedDevice.status) }}</el-tag>
  107. </el-descriptions-item>
  108. <el-descriptions-item label="经纬度" v-if="selectedDevice.lng">{{ selectedDevice.lng }}, {{ selectedDevice.lat }}</el-descriptions-item>
  109. <el-descriptions-item label="详细地址">{{ selectedDevice.location }}</el-descriptions-item>
  110. <el-descriptions-item label="最后通讯">{{ selectedDevice.lastTime }}</el-descriptions-item>
  111. <el-descriptions-item label="电池电量" v-if="selectedDevice.battery !== null && selectedDevice.battery !== undefined">{{ selectedDevice.battery }}%</el-descriptions-item>
  112. </el-descriptions>
  113. </div>
  114. </div>
  115. </transition>
  116. </div>
  117. </div>
  118. </div>
  119. </template>
  120. <script setup>
  121. import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue'
  122. import { Location, Connection, WarningFilled, Search, Close } from '@element-plus/icons-vue'
  123. import { getManholeDevicePage, getManholeAlarmDeviceList } from '@/api/pipeNetwork/basic'
  124. import locationIcon from '@/assets/images/location.png'
  125. import { ElMessage } from 'element-plus'
  126. // 台账存 WGS84,百度地图是 BD-09,不转换会偏约 1 公里
  127. import { convertCoord } from '@/utils/coordTransform'
  128. // ==================== 分页查询(接口数据) ====================
  129. const searchKeyword = ref('')
  130. const typeFilter = ref('all')
  131. const currentPage = ref(1)
  132. const pageSize = 8
  133. const devices = ref([])
  134. const total = ref(0)
  135. const listLoading = ref(false)
  136. // 顶部统计:在线设备数 / 告警设备数
  137. const onlineCount = ref(0)
  138. const alertCount = ref(0)
  139. // 加载分页设备列表(同时重建地图标记)
  140. async function loadDevices() {
  141. listLoading.value = true
  142. try {
  143. const res = await getManholeDevicePage({
  144. pageNum: currentPage.value,
  145. pageSize,
  146. deviceName: searchKeyword.value.trim() || null,
  147. equipmentTypeId: typeFilter.value === 'all' ? null : typeFilter.value,
  148. isQueryManholeData: true
  149. })
  150. const rows = res.data?.records || []
  151. devices.value = rows.map(d => {
  152. const manholeData = d.manholeData || {}
  153. const isAlert = Number(d.equipmentStatus?.alarmStatus) === 1 ||
  154. Number(manholeData.alarmStatus) === 1 ||
  155. Number(manholeData.waterInfiltrationAlarmStatus) === 1 ||
  156. Number(manholeData.waterLevelAlarmStatus) === 1
  157. return {
  158. id: d.equipmentId,
  159. code: d.equipmentCode,
  160. name: d.equipmentName,
  161. equipmentTypeId: d.equipmentTypeId,
  162. typeName: d.equipmentTypeName,
  163. location: d.equipmentLocation,
  164. status: isAlert ? 'alert' : Number(d.equipmentStatus?.onlineStatus) === 1 ? 'online' : 'offline',
  165. lng: d.longitude != null ? Number(d.longitude) : null,
  166. lat: d.latitude != null ? Number(d.latitude) : null,
  167. battery: d.manholeData?.batteryLevel ?? null,
  168. lastTime: d.manholeData?.uploadTime || d.manholeData?.createTime || '-'
  169. }
  170. })
  171. total.value = res.data?.total || rows.length
  172. refreshMarkers()
  173. } catch (e) {
  174. ElMessage.error('设备列表加载失败')
  175. } finally {
  176. listLoading.value = false
  177. }
  178. }
  179. // 顶部统计:全量在线数 + 待处理告警设备数
  180. async function loadOverview() {
  181. try {
  182. const [onlineRes, alarmRes] = await Promise.all([
  183. getManholeDevicePage({ pageNum: 1, pageSize: 1000, isQueryManholeData: false }),
  184. getManholeAlarmDeviceList({ alarmStatus: 1, isQueryManholeData: true })
  185. ])
  186. const rows = onlineRes.data?.records || []
  187. onlineCount.value = rows.filter(d => Number(d.equipmentStatus?.onlineStatus) === 1).length
  188. alertCount.value = alarmRes.data?.records?.length || 0
  189. } catch (e) {
  190. onlineCount.value = 0
  191. alertCount.value = 0
  192. }
  193. }
  194. const handleSearch = () => {
  195. currentPage.value = 1
  196. loadDevices()
  197. }
  198. // ==================== 选中设备 ====================
  199. const selectedDevice = ref(null)
  200. function selectDevice(device) {
  201. selectedDevice.value = device
  202. // 地图中心定位到该设备(无坐标则不移动)
  203. if (mapInstance && device.lng && device.lat) {
  204. mapInstance.centerAndZoom(toBdPoint(device.lng, device.lat), 16)
  205. }
  206. highlightMarker(device.id)
  207. }
  208. function clearSelected() {
  209. selectedDevice.value = null
  210. clearMarkerHighlight()
  211. }
  212. // ==================== 百度地图(BMapGL,中心定位沅陵县) ====================
  213. let mapInstance = null
  214. const markerMap = new Map()
  215. // 沅陵县中心坐标(WGS84,展示前统一转 BD-09)
  216. const YUANLING_CENTER = { lng: 110.393, lat: 28.452 }
  217. /** 业务坐标(WGS84)→ 百度坐标点 */
  218. function toBdPoint(lng, lat) {
  219. const [bdLng, bdLat] = convertCoord(Number(lng), Number(lat))
  220. return new BMapGL.Point(bdLng, bdLat)
  221. }
  222. function initMap() {
  223. const container = document.getElementById('deviceApictureMap')
  224. if (!container || typeof BMapGL === 'undefined') {
  225. console.warn('BMapGL 未加载或容器不存在')
  226. return
  227. }
  228. try {
  229. mapInstance = new BMapGL.Map('deviceApictureMap')
  230. mapInstance.centerAndZoom(toBdPoint(YUANLING_CENTER.lng, YUANLING_CENTER.lat), 13)
  231. mapInstance.enableScrollWheelZoom(true)
  232. } catch (e) {
  233. console.error('百度地图初始化失败:', e)
  234. }
  235. }
  236. function getStatusColor(status) {
  237. if (status === 'alert') return '#E64545'
  238. if (status === 'online') return '#67C23A'
  239. if (status === 'offline') return '#E67E22'
  240. return '#E6A23C'
  241. }
  242. // 添加设备地图标记(状态色名称气泡 + 定位图标)
  243. function addMapMarker(device) {
  244. if (!mapInstance || device.lng == null || device.lat == null) return
  245. const color = getStatusColor(device.status)
  246. const bPoint = toBdPoint(device.lng, device.lat)
  247. const isAttention = device.status === 'alert' || device.status === 'offline'
  248. const attentionText = device.status === 'alert' ? '告警' : '离线'
  249. const html = isAttention
  250. ? `<div class="device-map-attention-marker device-map-${device.status}" title="${attentionText}设备:${device.name}">
  251. <div class="device-map-attention-badge">${attentionText} - ${device.name}</div>
  252. <div class="device-map-attention-pin">
  253. <i class="device-map-attention-ring"></i>
  254. <img src="${locationIcon}" alt="" />
  255. </div>
  256. </div>`
  257. : `<div style="text-align:center;cursor:pointer;">
  258. <div style="color:#fff;background:${color};border-radius:4px;padding:2px 8px;font-size:11px;white-space:nowrap;display:inline-block;margin-bottom:2px;box-shadow:0 1px 4px rgba(0,0,0,0.3);">
  259. ${device.name}
  260. </div>
  261. <div><img src="${locationIcon}" alt="" style="width:28px;height:28px;display:block;margin:0 auto;"/></div>
  262. </div>`
  263. const label = new BMapGL.Label(html, {
  264. position: bPoint,
  265. offset: new BMapGL.Size(isAttention ? -62 : -30, isAttention ? -68 : -50)
  266. })
  267. label.setStyle({
  268. border: 'none',
  269. background: 'transparent',
  270. padding: '0',
  271. zIndex: isAttention ? '20' : '10'
  272. })
  273. label.addEventListener('click', function () {
  274. selectDevice(device)
  275. })
  276. mapInstance.addOverlay(label)
  277. markerMap.set(device.id, label)
  278. }
  279. // 重建地图标记(跟随分页/筛选/搜索结果)
  280. function refreshMarkers() {
  281. if (!mapInstance) return
  282. markerMap.forEach(label => mapInstance.removeOverlay(label))
  283. markerMap.clear()
  284. devices.value.forEach(device => addMapMarker(device))
  285. }
  286. // 高亮选中标记(放大地图标记气泡)
  287. function highlightMarker(id) {
  288. markerMap.forEach((label, key) => {
  289. const dom = label.getContentContainer ? label.getContentContainer() : null
  290. if (dom) {
  291. const isSelected = key === id
  292. const attentionMarker = dom.querySelector('.device-map-attention-marker')
  293. dom.style.zIndex = isSelected ? '999' : attentionMarker ? '20' : '10'
  294. const title = attentionMarker || dom.querySelector('div')
  295. if (title) {
  296. title.style.transform = isSelected ? 'scale(1.15)' : 'scale(1)'
  297. title.style.transition = 'transform 0.2s'
  298. title.style.boxShadow = isSelected ? '0 0 0 2px #409eff' : '0 1px 4px rgba(0,0,0,0.3)'
  299. }
  300. }
  301. })
  302. }
  303. function clearMarkerHighlight() {
  304. markerMap.forEach((label, key) => {
  305. const dom = label.getContentContainer ? label.getContentContainer() : null
  306. if (dom) {
  307. const attentionMarker = dom.querySelector('.device-map-attention-marker')
  308. dom.style.zIndex = attentionMarker ? '20' : '10'
  309. const title = attentionMarker || dom.querySelector('div')
  310. if (title) {
  311. title.style.transform = 'scale(1)'
  312. title.style.boxShadow = '0 1px 4px rgba(0,0,0,0.3)'
  313. }
  314. }
  315. })
  316. }
  317. // 地图自适应窗口变化
  318. const handleResize = () => {
  319. mapInstance && mapInstance.resize && mapInstance.resize()
  320. }
  321. // ==================== 状态文案 ====================
  322. function getStatusText(status) {
  323. const map = { online: '在线', alert: '告警', offline: '离线' }
  324. return map[status] || status
  325. }
  326. function getStatusTag(status) {
  327. const map = { online: 'success', alert: 'danger', offline: 'warning' }
  328. return map[status] || ''
  329. }
  330. // ==================== 生命周期 ====================
  331. onMounted(async () => {
  332. await nextTick()
  333. initMap()
  334. window.addEventListener('resize', handleResize)
  335. loadOverview()
  336. loadDevices()
  337. })
  338. onBeforeUnmount(() => {
  339. window.removeEventListener('resize', handleResize)
  340. if (mapInstance) {
  341. mapInstance.clearOverlays && mapInstance.clearOverlays()
  342. mapInstance = null
  343. }
  344. markerMap.clear()
  345. })
  346. </script>
  347. <style scoped>
  348. * {
  349. box-sizing: border-box;
  350. }
  351. .gis-monitor-dashboard {
  352. background: #f0f2f6;
  353. height: 100vh;
  354. display: flex;
  355. flex-direction: column;
  356. overflow: hidden;
  357. font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  358. }
  359. .dashboard-header {
  360. display: flex;
  361. justify-content: flex-end;
  362. align-items: center;
  363. background: white;
  364. padding: 8px 24px;
  365. box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  366. z-index: 10;
  367. }
  368. .header-actions {
  369. display: flex;
  370. gap: 16px;
  371. align-items: center;
  372. }
  373. .main-layout {
  374. flex: 1;
  375. display: flex;
  376. gap: 16px;
  377. padding: 16px;
  378. overflow: hidden;
  379. }
  380. .device-panel {
  381. width: 320px;
  382. background: white;
  383. border-radius: 16px;
  384. box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  385. display: flex;
  386. flex-direction: column;
  387. overflow: hidden;
  388. flex-shrink: 0;
  389. }
  390. .panel-header {
  391. padding: 14px 16px;
  392. border-bottom: 1px solid #eaeef2;
  393. font-weight: 600;
  394. display: flex;
  395. justify-content: space-between;
  396. align-items: center;
  397. gap: 10px;
  398. }
  399. .filter-tabs {
  400. padding: 10px 12px;
  401. border-bottom: 1px solid #eceef5;
  402. }
  403. .device-list-scroll {
  404. flex: 1;
  405. overflow-y: auto;
  406. padding: 8px;
  407. }
  408. .device-item {
  409. display: flex;
  410. align-items: flex-start;
  411. gap: 10px;
  412. padding: 12px;
  413. margin-bottom: 8px;
  414. background: #fafbfc;
  415. border-radius: 12px;
  416. transition: all 0.2s;
  417. cursor: pointer;
  418. border: 1px solid transparent;
  419. }
  420. .device-item.active {
  421. background: #ecf5ff;
  422. border-color: #409eff;
  423. box-shadow: 0 2px 6px rgba(64,158,255,0.2);
  424. }
  425. .device-status-dot .status-icon {
  426. width: 12px;
  427. height: 12px;
  428. border-radius: 50%;
  429. margin-top: 6px;
  430. }
  431. .device-info {
  432. flex: 1;
  433. min-width: 0;
  434. }
  435. .device-name {
  436. font-weight: 600;
  437. margin-bottom: 4px;
  438. white-space: nowrap;
  439. overflow: hidden;
  440. text-overflow: ellipsis;
  441. }
  442. .device-location {
  443. font-size: 12px;
  444. color: #606266;
  445. display: flex;
  446. align-items: center;
  447. gap: 4px;
  448. white-space: nowrap;
  449. overflow: hidden;
  450. text-overflow: ellipsis;
  451. }
  452. .device-meta {
  453. display: flex;
  454. justify-content: space-between;
  455. align-items: center;
  456. margin-top: 6px;
  457. font-size: 11px;
  458. color: #909399;
  459. }
  460. .gis-container {
  461. flex: 1;
  462. background: #fff;
  463. border-radius: 20px;
  464. box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  465. display: flex;
  466. flex-direction: column;
  467. overflow: hidden;
  468. position: relative;
  469. }
  470. .map-toolbar {
  471. padding: 10px 16px;
  472. display: flex;
  473. justify-content: space-between;
  474. border-bottom: 1px solid #efefef;
  475. background: white;
  476. z-index: 2;
  477. }
  478. .map-title {
  479. font-weight: 600;
  480. color: #303133;
  481. font-size: 14px;
  482. }
  483. .legend {
  484. display: flex;
  485. gap: 16px;
  486. font-size: 12px;
  487. align-items: center;
  488. }
  489. .legend-dot {
  490. display: inline-block;
  491. width: 10px;
  492. height: 10px;
  493. border-radius: 10px;
  494. margin-right: 4px;
  495. }
  496. .legend-dot.online { background-color: #67C23A; }
  497. .legend-dot.alert { background-color: #E64545; }
  498. .legend-dot.offline { background-color: #E67E22; }
  499. .legend-dot.selected { background-color: #409eff; box-shadow: 0 0 0 2px rgba(64,158,255,0.4); }
  500. .map-area {
  501. flex: 1;
  502. position: relative;
  503. min-height: 0;
  504. }
  505. .bmap-container {
  506. width: 100%;
  507. height: 100%;
  508. }
  509. .detail-card {
  510. position: absolute;
  511. bottom: 20px;
  512. right: 20px;
  513. width: 280px;
  514. background: white;
  515. border-radius: 16px;
  516. box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  517. z-index: 20;
  518. backdrop-filter: blur(2px);
  519. border: 1px solid #e0e4e8;
  520. overflow: hidden;
  521. }
  522. .card-header {
  523. display: flex;
  524. justify-content: space-between;
  525. padding: 12px 16px;
  526. background: #f8fafc;
  527. border-bottom: 1px solid #e9edf2;
  528. font-weight: 600;
  529. }
  530. .close-icon {
  531. cursor: pointer;
  532. }
  533. .card-body {
  534. padding: 12px;
  535. }
  536. .slide-fade-enter-active {
  537. transition: all 0.3s ease-out;
  538. }
  539. .slide-fade-leave-active {
  540. transition: all 0.2s cubic-bezier(1, 0.5, 0.8, 1);
  541. }
  542. .slide-fade-enter-from, .slide-fade-leave-to {
  543. transform: translateX(20px);
  544. opacity: 0;
  545. }
  546. .pagination-area {
  547. padding: 8px 0 4px;
  548. display: flex;
  549. justify-content: center;
  550. }
  551. </style>
  552. <style>
  553. /* 百度 Label 注入的 DOM 不带 scoped 属性,因此动画样式需要保持全局 */
  554. .device-map-attention-marker {
  555. position: relative;
  556. width: 124px;
  557. height: 70px;
  558. cursor: pointer;
  559. text-align: center;
  560. }
  561. .device-map-attention-badge {
  562. position: relative;
  563. z-index: 2;
  564. display: inline-block;
  565. max-width: 118px;
  566. overflow: hidden;
  567. padding: 2px 7px;
  568. border: 1px solid rgba(255, 255, 255, 0.72);
  569. border-radius: 4px;
  570. color: #fff;
  571. box-shadow: 0 2px 8px rgba(152, 23, 23, 0.55);
  572. font-size: 10px;
  573. line-height: 16px;
  574. text-overflow: ellipsis;
  575. white-space: nowrap;
  576. }
  577. .device-map-attention-pin {
  578. position: absolute;
  579. left: 50%;
  580. top: 27px;
  581. width: 28px;
  582. height: 34px;
  583. transform: translateX(-50%);
  584. animation: deviceMapAttentionBounce 1.1s ease-in-out infinite;
  585. }
  586. .device-map-attention-pin img {
  587. position: relative;
  588. z-index: 2;
  589. display: block;
  590. width: 28px;
  591. height: 28px;
  592. }
  593. .device-map-attention-ring {
  594. position: absolute;
  595. z-index: 1;
  596. left: 50%;
  597. top: 12px;
  598. width: 18px;
  599. height: 18px;
  600. border-radius: 50%;
  601. transform: translate(-50%, -50%);
  602. animation: deviceMapAttentionPulse 1.5s ease-out infinite;
  603. }
  604. .device-map-alert .device-map-attention-badge { background: #E64545; }
  605. .device-map-alert .device-map-attention-ring { border: 2px solid rgba(255, 75, 75, 0.95); }
  606. .device-map-offline .device-map-attention-badge { background: #E67E22; }
  607. .device-map-offline .device-map-attention-ring { border: 2px solid rgba(255, 166, 77, 0.95); }
  608. @keyframes deviceMapAttentionBounce {
  609. 0%, 100% { transform: translate(-50%, 0); }
  610. 50% { transform: translate(-50%, -8px); }
  611. }
  612. @keyframes deviceMapAttentionPulse {
  613. 0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.7); }
  614. 70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); }
  615. }
  616. </style>