SimulationView.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995
  1. <template>
  2. <div class="dashboard">
  3. <div class="background-image"></div>
  4. <div class="top-title"></div>
  5. <div class="system-title">测控平台 - 黑林水文站</div>
  6. <!-- 渐变装饰层(四周暗角) -->
  7. <GradientOverlay />
  8. <!-- 顶部按钮 -->
  9. <div class="sub-title left-1" @click="goBack">
  10. 首页
  11. </div>
  12. <div class="sub-title left-2" @click="goBackToStation">
  13. 测站详情
  14. </div>
  15. <div class="sub-title right-2">
  16. 测控平台
  17. </div>
  18. <div class="sub-title right-3" @click="goToWaterCulture">
  19. 智能巡检
  20. </div>
  21. <!-- 主要内容区域 -->
  22. <div class="main-content">
  23. <!-- 设备状态概览 -->
  24. <div class="status-overview">
  25. <div class="status-card total-devices">
  26. <div class="status-icon total">
  27. <img src="/src/assets/images/Heilin/icon/shebei.png" alt="设备总数" />
  28. </div>
  29. <div class="status-info">
  30. <div class="status-label">接入总数</div>
  31. <div class="status-value">{{ deviceStatus.total }}台</div>
  32. </div>
  33. </div>
  34. <div class="status-card offline-devices">
  35. <div class="status-icon offline">
  36. <img src="/src/assets/images/Heilin/icon/weilianjie.png" alt="离线设备" />
  37. </div>
  38. <div class="status-info">
  39. <div class="status-label">离线数量</div>
  40. <div class="status-value">{{ deviceStatus.offline }}台</div>
  41. </div>
  42. </div>
  43. <div class="status-card online-devices">
  44. <div class="status-icon online">
  45. <img src="/src/assets/images/Heilin/icon/yilianjie.png" alt="在线设备" />
  46. </div>
  47. <div class="status-info">
  48. <div class="status-label">在线数量</div>
  49. <div class="status-value">{{ deviceStatus.online }}台</div>
  50. </div>
  51. </div>
  52. <div class="status-card unconnected-devices">
  53. <div class="status-icon unconnected">
  54. <img src="/src/assets/images/Heilin/icon/wejieru.png" alt="未接入设备" />
  55. </div>
  56. <div class="status-info">
  57. <div class="status-label">未接入</div>
  58. <div class="status-value">{{ deviceStatus.unconnected }}台</div>
  59. </div>
  60. </div>
  61. </div>
  62. <!-- 设备测验内容卡片 -->
  63. <div class="device-cards">
  64. <div
  65. v-for="device in devices"
  66. :key="device.id"
  67. class="device-card"
  68. :class="{ active: selectedDeviceId === device.id }"
  69. @click="handleDeviceClick(device.name)"
  70. >
  71. <div class="device-icon">
  72. <img :src="getDeviceIcon(device.name)" :alt="device.name" />
  73. </div>
  74. <div class="device-name">{{ device.name }}</div>
  75. <div class="device-status" :class="device.statusClass">
  76. {{ device.statusText }}
  77. </div>
  78. </div>
  79. </div>
  80. <!-- 选中设备详情 -->
  81. <div v-if="selectedDevice" class="device-detail">
  82. <div class="detail-header">
  83. <h3>{{ selectedDevice.name }} - 详细信息</h3>
  84. <button class="close-btn" @click="selectedDevice = null">×</button>
  85. </div>
  86. <div class="detail-content">
  87. <div class="detail-item">
  88. <label>设备ID:</label>
  89. <span>{{ selectedDevice.id }}</span>
  90. </div>
  91. <div class="detail-item">
  92. <label>设备类型:</label>
  93. <span>{{ selectedDevice.type }}</span>
  94. </div>
  95. <div class="detail-item">
  96. <label>设备状态:</label>
  97. <span :class="selectedDevice.statusClass">{{ selectedDevice.statusText }}</span>
  98. </div>
  99. <div class="detail-item">
  100. <label>最后在线:</label>
  101. <span>{{ selectedDevice.lastOnline }}</span>
  102. </div>
  103. <div class="detail-item">
  104. <label>测量参数:</label>
  105. <span>{{ selectedDevice.parameters }}</span>
  106. </div>
  107. <div class="detail-item">
  108. <label>设备位置:</label>
  109. <span>{{ selectedDevice.location }}</span>
  110. </div>
  111. </div>
  112. <div class="detail-actions">
  113. <button class="btn-primary" @click="startMeasurement(selectedDevice.id)">
  114. 开始测量
  115. </button>
  116. <button class="btn-secondary" @click="restartDevice(selectedDevice.id)">
  117. 重启设备
  118. </button>
  119. <button class="btn-secondary" @click="updateFirmware(selectedDevice.id)">
  120. 更新固件
  121. </button>
  122. </div>
  123. </div>
  124. </div>
  125. <!-- 渐变装饰层(四周暗角) -->
  126. <GradientOverlay />
  127. <!-- 详情弹窗 -->
  128. <div v-if="showDetailModal" class="modal-overlay" @click="closeModal">
  129. <div class="modal-content" @click.stop>
  130. <div class="modal-header">
  131. <h2>测控平台详细信息</h2>
  132. <span class="close-btn" @click="closeModal">×</span>
  133. </div>
  134. <div class="modal-body">
  135. <!-- 基本信息区域 -->
  136. <div class="station-info-header">
  137. <div class="station-basic">
  138. <h3 class="station-name">测控平台系统</h3>
  139. <p class="station-code">系统版本:v1.0.0</p>
  140. </div>
  141. </div>
  142. <!-- 详细信息区域 -->
  143. <div class="station-info-detail">
  144. <h4>系统功能</h4>
  145. <ul>
  146. <li>设备状态实时监测</li>
  147. <li>远程测量控制</li>
  148. <li>设备固件管理</li>
  149. <li>测量数据分析</li>
  150. <li>异常报警处理</li>
  151. </ul>
  152. <h4>支持设备类型</h4>
  153. <ul>
  154. <li>双轨雷达测速</li>
  155. <li>原扫雷达</li>
  156. <li>缆道测流</li>
  157. <li>视频测流(御)</li>
  158. <li>视频测流(王)</li>
  159. <li>时差法测流</li>
  160. <li>H-ADCP测流</li>
  161. <li>超声波测流</li>
  162. <li>其他测流方式</li>
  163. <li>V-ADCP测流</li>
  164. <li>同步测流</li>
  165. </ul>
  166. </div>
  167. </div>
  168. <div class="modal-footer">
  169. <button class="btn-primary" @click="closeModal">关闭</button>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. </template>
  175. <script>
  176. import GradientOverlay from '../components/gradient-overlay.vue'
  177. export default {
  178. name: 'ControlPlatformView',
  179. components: {
  180. GradientOverlay
  181. },
  182. data() {
  183. return {
  184. showDetailModal: false,
  185. selectedDeviceId: null,
  186. deviceStatus: {
  187. total: 11,
  188. offline: 0,
  189. online: 2,
  190. unconnected: 9
  191. },
  192. devices: [
  193. {
  194. id: 'device-001',
  195. name: '双轨雷达测速',
  196. type: '雷达测速',
  197. status: 100,
  198. statusText: '在线',
  199. statusClass: 'status-normal',
  200. lastOnline: '2026-03-10 14:30:25',
  201. parameters: '流速、流向',
  202. location: '黑林水文站监测点1'
  203. },
  204. {
  205. id: 'device-002',
  206. name: '原扫雷达',
  207. type: '雷达监测',
  208. status: 85,
  209. statusText: '在线',
  210. statusClass: 'status-normal',
  211. lastOnline: '2026-03-10 14:28:12',
  212. parameters: '流速分布',
  213. location: '黑林水文站监测点2'
  214. },
  215. {
  216. id: 'device-003',
  217. name: '缆道测流',
  218. type: '缆道系统',
  219. status: 100,
  220. statusText: '在线',
  221. statusClass: 'status-normal',
  222. lastOnline: '2026-03-10 14:32:45',
  223. parameters: '流量、水位',
  224. location: '黑林水文站监测点3'
  225. },
  226. {
  227. id: 'device-004',
  228. name: '视频测流(御)',
  229. type: '视频监测',
  230. status: 0,
  231. statusText: '离线',
  232. statusClass: 'status-offline',
  233. lastOnline: '2026-03-09 18:45:30',
  234. parameters: '水面流速',
  235. location: '黑林水文站监测点4'
  236. },
  237. {
  238. id: 'device-005',
  239. name: '地下水',
  240. type: '视频监测',
  241. status: 0,
  242. statusText: '离线',
  243. statusClass: 'status-offline',
  244. lastOnline: '2026-03-09 17:20:15',
  245. parameters: '水面流速',
  246. location: '黑林水文站监测点5'
  247. },
  248. {
  249. id: 'device-006',
  250. name: '时差法测流',
  251. type: '声学测流',
  252. status: 100,
  253. statusText: '在线',
  254. statusClass: 'status-normal',
  255. lastOnline: '2026-03-09 16:10:45',
  256. parameters: '流速、流量',
  257. location: '黑林水文站监测点6'
  258. },
  259. {
  260. id: 'device-007',
  261. name: 'H-ADCP测流',
  262. type: '声学多普勒',
  263. status: 100,
  264. statusText: '在线',
  265. statusClass: 'status-normal',
  266. lastOnline: '2026-03-09 15:30:20',
  267. parameters: '流速剖面',
  268. location: '黑林水文站监测点7'
  269. },
  270. {
  271. id: 'device-008',
  272. name: '量水堰',
  273. type: '超声波',
  274. status: 100,
  275. statusText: '在线',
  276. statusClass: 'status-normal',
  277. lastOnline: '2026-03-09 14:25:10',
  278. parameters: '流速',
  279. location: '黑林水文站监测点8'
  280. },
  281. {
  282. id: 'device-009',
  283. name: '水土保持',
  284. type: '其他',
  285. status: 0,
  286. statusText: '离线',
  287. statusClass: 'status-offline',
  288. lastOnline: '2026-03-09 13:15:40',
  289. parameters: '自定义',
  290. location: '黑林水文站监测点9'
  291. },
  292. {
  293. id: 'device-010',
  294. name: 'V-ADCP测流',
  295. type: '声学多普勒',
  296. status: 100,
  297. statusText: '在线',
  298. statusClass: 'status-normal',
  299. lastOnline: '2026-03-09 12:45:25',
  300. parameters: '垂直流速剖面',
  301. location: '黑林水文站监测点10'
  302. },
  303. {
  304. id: 'device-011',
  305. name: '蒸发量',
  306. type: '同步系统',
  307. status: 0,
  308. statusText: '离线',
  309. statusClass: 'status-offline',
  310. lastOnline: '2026-03-09 11:30:15',
  311. parameters: '多参数同步',
  312. location: '黑林水文站监测点11'
  313. }
  314. ]
  315. }
  316. },
  317. computed: {
  318. selectedDevice() {
  319. return this.devices.find(device => device.id === this.selectedDeviceId)
  320. }
  321. },
  322. methods: {
  323. goBack() {
  324. this.$router.push('/')
  325. },
  326. goBackToStation() {
  327. this.$router.push('/heilin-station')
  328. },
  329. goToWaterCulture() {
  330. this.$router.push('/water-culture')
  331. },
  332. showDetail() {
  333. this.showDetailModal = true
  334. },
  335. closeModal() {
  336. this.showDetailModal = false
  337. },
  338. selectDevice(deviceId) {
  339. this.selectedDeviceId = deviceId
  340. },
  341. handleDeviceClick(deviceName) {
  342. if (deviceName === '量水堰') {
  343. this.$router.push('/liangshuiyan')
  344. } else {
  345. this.selectedDeviceId = null
  346. }
  347. },
  348. getDeviceIcon(name) {
  349. const iconMap = {
  350. '双轨雷达测速': '/src/assets/images/Heilin/icon/cap/雷达.png',
  351. '原扫雷达': '/src/assets/images/Heilin/icon/cap/雷达.png',
  352. '缆道测流': '/src/assets/images/Heilin/icon/cap/缆道.png',
  353. '视频测流(御)': '/src/assets/images/Heilin/icon/cap/视频.png',
  354. '地下水': '/src/assets/images/Heilin/icon/cap/地下水.png',
  355. '时差法测流': '/src/assets/images/Heilin/icon/cap/ADCP.png',
  356. 'H-ADCP测流': '/src/assets/images/Heilin/icon/cap/H-adcp.png',
  357. '量水堰': '/src/assets/images/Heilin/icon/cap/量水堰.png',
  358. '水土保持': '/src/assets/images/Heilin/icon/cap/水土保持.png',
  359. 'V-ADCP测流': '/src/assets/images/Heilin/icon/cap/ADCP.png',
  360. '蒸发量': '/src/assets/images/Heilin/icon/cap/蒸发量.png'
  361. }
  362. return iconMap[name] || '/src/assets/images/Heilin/icon/cap/雷达.png'
  363. },
  364. startMeasurement(deviceId) {
  365. // 模拟开始测量
  366. console.log('开始测量设备:', deviceId)
  367. this.$message({
  368. message: '测量已开始',
  369. type: 'success'
  370. })
  371. },
  372. restartDevice(deviceId) {
  373. // 模拟重启设备
  374. console.log('重启设备:', deviceId)
  375. this.$message({
  376. message: '设备重启中...',
  377. type: 'info'
  378. })
  379. },
  380. updateFirmware(deviceId) {
  381. // 模拟更新固件
  382. console.log('更新固件:', deviceId)
  383. this.$message({
  384. message: '固件更新中...',
  385. type: 'info'
  386. })
  387. }
  388. }
  389. }
  390. </script>
  391. <style scoped>
  392. .dashboard {
  393. width: 100%;
  394. height: 100%;
  395. overflow: hidden;
  396. position: relative;
  397. background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 40, 80, 0.8));
  398. z-index: 2;
  399. }
  400. .background-image {
  401. position: absolute;
  402. top: 0;
  403. left: 0;
  404. width: 100%;
  405. height: 100%;
  406. background: url('/src/assets/images/Heilin/背景图3.jpg') no-repeat center center;
  407. background-size: cover;
  408. opacity: 0.3;
  409. pointer-events: none;
  410. z-index: 1;
  411. }
  412. .top-title {
  413. position: absolute;
  414. top: 0;
  415. left: 0;
  416. width: 100%;
  417. height: 100%;
  418. background-image: url('/src/assets/images/顶部大标题1.png');
  419. background-size: 100% 100%;
  420. background-position: center;
  421. background-repeat: no-repeat;
  422. pointer-events: none;
  423. z-index: 3;
  424. opacity: 0.9;
  425. }
  426. .system-title {
  427. position: absolute;
  428. top: 20px;
  429. left: 50%;
  430. transform: translateX(-50%);
  431. font-size: 36px;
  432. font-weight: bold;
  433. background: linear-gradient(to bottom, #ffffff 50%, #00d5ff 100%);
  434. -webkit-background-clip: text;
  435. background-clip: text;
  436. color: transparent;
  437. text-shadow: 0 0 1px rgba(2, 217, 255, 0.205);
  438. z-index: 4;
  439. pointer-events: none;
  440. }
  441. .sub-title {
  442. position: absolute;
  443. top: 30px;
  444. width: 151px;
  445. height: 63px;
  446. background-image: url('/src/assets/images/顶部小标题.png');
  447. background-size: 100% 100%;
  448. background-position: center;
  449. background-repeat: no-repeat;
  450. display: flex;
  451. align-items: flex-start;
  452. padding-top: 10px;
  453. justify-content: center;
  454. font-size: 16px;
  455. font-weight: bold;
  456. color: #e0fcff;
  457. text-shadow: 0 0 5px rgba(0, 212, 255, 0.8);
  458. z-index: 4;
  459. cursor: pointer;
  460. transition: transform 0.3s ease;
  461. }
  462. .sub-title:hover {
  463. transform: scale(1.05);
  464. }
  465. .sub-title.left-1 {
  466. left: 180px;
  467. }
  468. .sub-title.left-2 {
  469. left: 400px;
  470. }
  471. .sub-title.right-2 {
  472. right: 400px;
  473. }
  474. .sub-title.right-3 {
  475. right: 200px;
  476. }
  477. .main-content {
  478. position: relative;
  479. display: flex;
  480. flex-direction: column;
  481. height: calc(100% - 120px);
  482. margin-top: 120px;
  483. padding: 20px;
  484. z-index: 3;
  485. gap: 30px;
  486. }
  487. /* 设备状态概览 */
  488. .status-overview {
  489. display: grid;
  490. grid-template-columns: repeat(4, 1fr);
  491. gap: 20px;
  492. margin-bottom: 20px;
  493. }
  494. .status-card {
  495. background: rgba(0, 40, 80, 0.6);
  496. border: 1px solid rgba(0, 213, 255, 0.3);
  497. border-radius: 12px;
  498. padding: 20px;
  499. display: flex;
  500. align-items: center;
  501. gap: 20px;
  502. backdrop-filter: blur(10px);
  503. transition: all 0.3s ease;
  504. }
  505. .status-card:hover {
  506. border-color: rgba(0, 213, 255, 0.8);
  507. box-shadow: 0 0 20px rgba(0, 213, 255, 0.4);
  508. transform: translateY(-2px);
  509. }
  510. .status-icon {
  511. width: 80px;
  512. height: 80px;
  513. display: flex;
  514. align-items: center;
  515. justify-content: center;
  516. }
  517. .status-icon img {
  518. width: 100px;
  519. height: 100px;
  520. object-fit: contain;
  521. }
  522. .status-info {
  523. flex: 1;
  524. }
  525. .status-label {
  526. font-size: 14px;
  527. color: #e0fcff;
  528. margin-bottom: 5px;
  529. }
  530. .status-value {
  531. font-size: 24px;
  532. font-weight: bold;
  533. color: #00ffff;
  534. text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  535. }
  536. /* 设备测验内容卡片 */
  537. .device-cards {
  538. display: grid;
  539. grid-template-columns: repeat(6, 1fr);
  540. gap: 30px;
  541. flex: 1;
  542. overflow-y: auto;
  543. padding-right: 10px;
  544. max-height: 100%;
  545. }
  546. .device-card {
  547. background: rgba(0, 40, 80, 0.6);
  548. border: 1px solid rgba(0, 213, 255, 0.3);
  549. border-radius: 4px;
  550. width: 250px;
  551. height: 300px;
  552. padding: 10px;
  553. display: flex;
  554. flex-direction: column;
  555. align-items: center;
  556. justify-content: center;
  557. gap: 15px;
  558. backdrop-filter: blur(10px);
  559. cursor: pointer;
  560. transition: all 0.3s ease;
  561. position: relative;
  562. overflow: hidden;
  563. }
  564. .device-card::before {
  565. content: '';
  566. position: absolute;
  567. top: 0;
  568. left: 0;
  569. right: 0;
  570. height: 3px;
  571. background: linear-gradient(90deg, #00d5ff, #62f6fb);
  572. transform: scaleX(0);
  573. transition: transform 0.3s ease;
  574. }
  575. .device-card:hover {
  576. border-color: rgba(0, 213, 255, 0.8);
  577. box-shadow: 0 0 20px rgba(0, 213, 255, 0.4);
  578. transform: translateY(-2px);
  579. }
  580. .device-card:hover::before {
  581. transform: scaleX(1);
  582. }
  583. .device-card.active {
  584. border-color: rgba(0, 213, 255, 0.8);
  585. box-shadow: 0 0 20px rgba(0, 213, 255, 0.6);
  586. }
  587. .device-card.active::before {
  588. transform: scaleX(1);
  589. }
  590. .device-icon {
  591. width: 150px;
  592. height: 150px;
  593. display: flex;
  594. align-items: center;
  595. justify-content: center;
  596. z-index: 1;
  597. }
  598. .device-icon img {
  599. width: 150px;
  600. height: 150px;
  601. object-fit: contain;
  602. }
  603. .device-name {
  604. font-size: 32px;
  605. font-weight: bold;
  606. color: #ffffff;
  607. text-align: center;
  608. z-index: 1;
  609. word-break: break-all;
  610. text-overflow: ellipsis;
  611. overflow: hidden;
  612. display: -webkit-box;
  613. -webkit-line-clamp: 2;
  614. -webkit-box-orient: vertical;
  615. }
  616. .device-status {
  617. font-size: 18px;
  618. font-weight: bold;
  619. padding: 6px 12px;
  620. border-radius: 4px;
  621. z-index: 1;
  622. }
  623. .status-normal {
  624. color: #00ff88;
  625. background: rgba(0, 255, 136, 0.2);
  626. border: 1px solid rgba(0, 255, 136, 0.4);
  627. }
  628. .status-offline {
  629. color: #ff6b6b;
  630. background: rgba(255, 107, 107, 0.2);
  631. border: 1px solid rgba(255, 107, 107, 0.4);
  632. }
  633. .status-warning {
  634. color: #ffa502;
  635. background: rgba(255, 165, 2, 0.2);
  636. border: 1px solid rgba(255, 165, 2, 0.4);
  637. }
  638. /* 设备详情 */
  639. .device-detail {
  640. position: fixed;
  641. top: 50%;
  642. left: 50%;
  643. transform: translate(-50%, -50%);
  644. background: rgba(0, 30, 60, 0.95);
  645. border: 1px solid rgba(0, 213, 255, 0.5);
  646. border-radius: 12px;
  647. box-shadow: 0 0 30px rgba(0, 213, 255, 0.4);
  648. width: 600px;
  649. max-width: 90vw;
  650. max-height: 80vh;
  651. overflow-y: auto;
  652. z-index: 1000;
  653. }
  654. .detail-header {
  655. background: linear-gradient(90deg, rgba(0, 60, 120, 0.9), rgba(0, 100, 150, 0.7));
  656. padding: 15px 20px;
  657. border-bottom: 1px solid rgba(0, 213, 255, 0.4);
  658. display: flex;
  659. justify-content: space-between;
  660. align-items: center;
  661. }
  662. .detail-header h3 {
  663. font-size: 18px;
  664. font-weight: bold;
  665. color: #00ffff;
  666. margin: 0;
  667. text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  668. }
  669. .close-btn {
  670. font-size: 24px;
  671. color: #7bbef6;
  672. cursor: pointer;
  673. background: none;
  674. border: none;
  675. padding: 0;
  676. transition: color 0.3s;
  677. }
  678. .close-btn:hover {
  679. color: #ffffff;
  680. }
  681. .detail-content {
  682. padding: 20px;
  683. display: flex;
  684. flex-direction: column;
  685. gap: 15px;
  686. }
  687. .detail-item {
  688. display: flex;
  689. align-items: center;
  690. gap: 15px;
  691. }
  692. .detail-item label {
  693. font-size: 14px;
  694. color: #62f6fb;
  695. font-weight: bold;
  696. width: 100px;
  697. flex-shrink: 0;
  698. }
  699. .detail-item span {
  700. font-size: 14px;
  701. color: #e0fcff;
  702. flex: 1;
  703. }
  704. .detail-actions {
  705. padding: 20px;
  706. border-top: 1px solid rgba(0, 213, 255, 0.3);
  707. display: flex;
  708. gap: 10px;
  709. justify-content: flex-end;
  710. }
  711. .btn-primary {
  712. background: linear-gradient(90deg, rgba(0, 100, 200, 0.8), rgba(0, 150, 255, 0.6));
  713. border: 1px solid rgba(0, 213, 255, 0.5);
  714. border-radius: 4px;
  715. color: #ffffff;
  716. padding: 10px 20px;
  717. font-size: 14px;
  718. font-weight: bold;
  719. cursor: pointer;
  720. transition: all 0.3s ease;
  721. }
  722. .btn-primary:hover {
  723. background: linear-gradient(90deg, rgba(0, 120, 255, 0.9), rgba(0, 180, 255, 0.7));
  724. box-shadow: 0 0 10px rgba(0, 213, 255, 0.6);
  725. }
  726. .btn-secondary {
  727. background: rgba(0, 60, 120, 0.6);
  728. border: 1px solid rgba(0, 213, 255, 0.3);
  729. border-radius: 4px;
  730. color: #e0fcff;
  731. padding: 10px 20px;
  732. font-size: 14px;
  733. cursor: pointer;
  734. transition: all 0.3s ease;
  735. }
  736. .btn-secondary:hover {
  737. background: rgba(0, 80, 160, 0.8);
  738. border-color: rgba(0, 213, 255, 0.6);
  739. }
  740. /* 详情弹窗样式 */
  741. .modal-overlay {
  742. position: fixed;
  743. top: 0;
  744. left: 0;
  745. right: 0;
  746. bottom: 0;
  747. background: rgba(0, 20, 40, 0.8);
  748. backdrop-filter: blur(5px);
  749. display: flex;
  750. justify-content: center;
  751. align-items: center;
  752. z-index: 1000;
  753. }
  754. .modal-content {
  755. background: rgba(0, 30, 60, 0.95);
  756. border: 1px solid rgba(0, 213, 255, 0.5);
  757. border-radius: 8px;
  758. box-shadow: 0 0 30px rgba(0, 213, 255, 0.4);
  759. width: 800px;
  760. max-width: 90vw;
  761. max-height: 80vh;
  762. overflow-y: auto;
  763. z-index: 1001;
  764. }
  765. .modal-header {
  766. background: linear-gradient(90deg, rgba(0, 60, 120, 0.9), rgba(0, 100, 150, 0.7));
  767. padding: 15px 20px;
  768. border-bottom: 1px solid rgba(0, 213, 255, 0.4);
  769. display: flex;
  770. justify-content: space-between;
  771. align-items: center;
  772. }
  773. .modal-header h2 {
  774. font-size: 18px;
  775. font-weight: bold;
  776. color: #00ffff;
  777. margin: 0;
  778. text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  779. }
  780. .modal-body {
  781. padding: 20px;
  782. }
  783. .station-info-header {
  784. margin-bottom: 20px;
  785. padding-bottom: 15px;
  786. border-bottom: 1px solid rgba(0, 213, 255, 0.3);
  787. }
  788. .station-basic {
  789. text-align: center;
  790. }
  791. .station-name {
  792. font-size: 24px;
  793. font-weight: bold;
  794. color: #00ffff;
  795. margin: 0 0 10px 0;
  796. text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  797. }
  798. .station-code {
  799. font-size: 14px;
  800. color: #e0fcff;
  801. margin: 0;
  802. }
  803. .station-info-detail {
  804. display: flex;
  805. flex-direction: column;
  806. gap: 20px;
  807. }
  808. .station-info-detail h4 {
  809. font-size: 16px;
  810. font-weight: bold;
  811. color: #62f6fb;
  812. margin: 0 0 10px 0;
  813. text-shadow: 0 0 3px rgba(0, 212, 255, 0.5);
  814. }
  815. .station-info-detail ul {
  816. list-style: none;
  817. padding: 0;
  818. margin: 0;
  819. display: flex;
  820. flex-direction: column;
  821. gap: 5px;
  822. }
  823. .station-info-detail li {
  824. font-size: 14px;
  825. color: #e0fcff;
  826. padding-left: 20px;
  827. position: relative;
  828. }
  829. .station-info-detail li::before {
  830. content: '•';
  831. position: absolute;
  832. left: 0;
  833. color: #00d5ff;
  834. font-weight: bold;
  835. }
  836. .modal-footer {
  837. padding: 15px 20px;
  838. border-top: 1px solid rgba(0, 213, 255, 0.3);
  839. display: flex;
  840. justify-content: center;
  841. }
  842. /* 响应式设计 */
  843. @media (max-width: 1200px) {
  844. .status-overview {
  845. grid-template-columns: repeat(2, 1fr);
  846. }
  847. .device-cards {
  848. grid-template-columns: repeat(6, 1fr);
  849. }
  850. }
  851. @media (max-width: 768px) {
  852. .sub-title {
  853. width: 120px;
  854. height: 50px;
  855. font-size: 14px;
  856. }
  857. .sub-title.left-1 {
  858. left: 100px;
  859. }
  860. .sub-title.left-2 {
  861. left: 230px;
  862. }
  863. .sub-title.right-2 {
  864. right: 150px;
  865. }
  866. .sub-title.right-3 {
  867. right: 20px;
  868. }
  869. .system-title {
  870. font-size: 24px;
  871. }
  872. .status-overview {
  873. grid-template-columns: 1fr;
  874. }
  875. .device-cards {
  876. grid-template-columns: repeat(6, 1fr);
  877. }
  878. .device-detail {
  879. width: 95vw;
  880. }
  881. }
  882. /* 滚动条样式 */
  883. .device-cards::-webkit-scrollbar {
  884. width: 8px;
  885. }
  886. .device-cards::-webkit-scrollbar-track {
  887. background: rgba(0, 60, 120, 0.3);
  888. border-radius: 4px;
  889. }
  890. .device-cards::-webkit-scrollbar-thumb {
  891. background: rgba(0, 213, 255, 0.5);
  892. border-radius: 4px;
  893. }
  894. .device-cards::-webkit-scrollbar-thumb:hover {
  895. background: rgba(0, 213, 255, 0.8);
  896. }
  897. </style>