You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1636 lines
50 KiB
HTML
1636 lines
50 KiB
HTML
|
2 weeks ago
|
<!DOCTYPE html>
|
||
|
|
<html lang="zh-CN">
|
||
|
|
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>海洋观测平台场景</title>
|
||
|
|
<script src="/models/chart.umd.min.js"></script>
|
||
|
|
<link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
||
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@6.15.1/ol.css">
|
||
|
|
<script src="https://cdn.jsdelivr.net/npm/ol@6.15.1/dist/ol.js"></script>
|
||
|
|
|
||
|
|
<style>
|
||
|
|
body {
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
overflow: hidden;
|
||
|
|
background: #000;
|
||
|
|
font-family: Arial, sans-serif;
|
||
|
|
}
|
||
|
|
|
||
|
|
#container {
|
||
|
|
width: 100vw;
|
||
|
|
height: 100vh;
|
||
|
|
position: relative;
|
||
|
|
background: #000;
|
||
|
|
}
|
||
|
|
|
||
|
|
#info {
|
||
|
|
position: absolute;
|
||
|
|
top: 10px;
|
||
|
|
left: 10px;
|
||
|
|
color: white;
|
||
|
|
background: rgba(0, 0, 0, 0.5);
|
||
|
|
padding: 10px;
|
||
|
|
border-radius: 5px;
|
||
|
|
font-size: 14px;
|
||
|
|
z-index: 100;
|
||
|
|
}
|
||
|
|
|
||
|
|
#loading {
|
||
|
|
position: absolute;
|
||
|
|
top: 50%;
|
||
|
|
left: 50%;
|
||
|
|
transform: translate(-50%, -50%);
|
||
|
|
color: white;
|
||
|
|
font-size: 18px;
|
||
|
|
z-index: 200;
|
||
|
|
}
|
||
|
|
|
||
|
|
.hidden {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
<style>
|
||
|
|
/* 面板基础样式修改 */
|
||
|
|
.panel {
|
||
|
|
position: absolute;
|
||
|
|
top: 20px;
|
||
|
|
width: 320px;
|
||
|
|
color: #e0f0ff;
|
||
|
|
z-index: 10;
|
||
|
|
height: calc(100vh - 40px);
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
.left-panel {
|
||
|
|
left: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.right-panel {
|
||
|
|
right: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.panel-header {
|
||
|
|
border-bottom: 1px solid rgba(64, 156, 255, 0.4);
|
||
|
|
padding-bottom: 15px;
|
||
|
|
margin-bottom: 10px;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.panel-header h3 {
|
||
|
|
margin: 0;
|
||
|
|
font-size: 22px;
|
||
|
|
font-weight: 600;
|
||
|
|
background: linear-gradient(90deg, #4fc3f7, #4abdf3);
|
||
|
|
-webkit-background-clip: text;
|
||
|
|
-webkit-text-fill-color: transparent;
|
||
|
|
text-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.panel-content {
|
||
|
|
height: 100%;
|
||
|
|
overflow-y: auto;
|
||
|
|
padding-right: 5px;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
.panel-content::-webkit-scrollbar {
|
||
|
|
width: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.panel-content::-webkit-scrollbar-thumb {
|
||
|
|
background: rgba(64, 156, 255, 0.5);
|
||
|
|
border-radius: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.panel-content::-webkit-scrollbar-track {
|
||
|
|
background: rgba(0, 0, 0, 0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.info-section,
|
||
|
|
.realtime-indicators,
|
||
|
|
.unit-status,
|
||
|
|
.environment-stats,
|
||
|
|
.power-generation,
|
||
|
|
.alert-stats {
|
||
|
|
margin-bottom: 25px;
|
||
|
|
background: rgba(25, 55, 95, 0.3);
|
||
|
|
border-radius: 10px;
|
||
|
|
padding: 15px;
|
||
|
|
border: 1px solid rgba(64, 156, 255, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.info-section h4,
|
||
|
|
.realtime-indicators h4,
|
||
|
|
.unit-status h4,
|
||
|
|
.environment-stats h4,
|
||
|
|
.power-generation h4,
|
||
|
|
.alert-stats h4 {
|
||
|
|
margin: 0 0 15px 0;
|
||
|
|
font-size: 18px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #4fc3f7;
|
||
|
|
text-align: center;
|
||
|
|
position: relative;
|
||
|
|
padding-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.info-section h4::after,
|
||
|
|
.realtime-indicators h4::after,
|
||
|
|
.unit-status h4::after,
|
||
|
|
.environment-stats h4::after,
|
||
|
|
.power-generation h4::after,
|
||
|
|
.alert-stats h4::after {
|
||
|
|
content: '';
|
||
|
|
position: absolute;
|
||
|
|
bottom: 0;
|
||
|
|
left: 50%;
|
||
|
|
transform: translateX(-50%);
|
||
|
|
width: 50px;
|
||
|
|
height: 2px;
|
||
|
|
background: linear-gradient(90deg, transparent, #4fc3f7, transparent);
|
||
|
|
}
|
||
|
|
|
||
|
|
.info-item,
|
||
|
|
.indicator-item,
|
||
|
|
.status-item,
|
||
|
|
.env-item,
|
||
|
|
.gen-item,
|
||
|
|
.alert-item {
|
||
|
|
display: flex;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
margin-bottom: 15px;
|
||
|
|
padding-bottom: 15px;
|
||
|
|
border-bottom: 1px solid rgba(64, 156, 255, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.info-item:last-child,
|
||
|
|
.indicator-item:last-child,
|
||
|
|
.status-item:last-child,
|
||
|
|
.env-item:last-child,
|
||
|
|
.gen-item:last-child,
|
||
|
|
.alert-item:last-child {
|
||
|
|
margin-bottom: 0;
|
||
|
|
padding-bottom: 0;
|
||
|
|
border-bottom: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.info-item label,
|
||
|
|
.indicator-item label,
|
||
|
|
.status-item label,
|
||
|
|
.env-item label,
|
||
|
|
.gen-item label,
|
||
|
|
.alert-item label {
|
||
|
|
flex: 1;
|
||
|
|
font-size: 15px;
|
||
|
|
color: #cce0ff;
|
||
|
|
font-weight: 400;
|
||
|
|
}
|
||
|
|
|
||
|
|
.info-item .value,
|
||
|
|
.indicator-item .value,
|
||
|
|
.status-item .value,
|
||
|
|
.env-item .value,
|
||
|
|
.gen-item .value,
|
||
|
|
.alert-item .value {
|
||
|
|
font-weight: 700;
|
||
|
|
font-size: 16px;
|
||
|
|
text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.value.warning {
|
||
|
|
color: #ff9800;
|
||
|
|
text-shadow: 0 0 8px rgba(255, 152, 0, 0.7);
|
||
|
|
}
|
||
|
|
|
||
|
|
.value.critical {
|
||
|
|
color: #f44336;
|
||
|
|
text-shadow: 0 0 8px rgba(244, 67, 54, 0.7);
|
||
|
|
}
|
||
|
|
|
||
|
|
.value.normal {
|
||
|
|
color: #66bb6a;
|
||
|
|
text-shadow: 0 0 8px rgba(102, 187, 106, 0.7);
|
||
|
|
}
|
||
|
|
|
||
|
|
.progress-bar {
|
||
|
|
width: 100%;
|
||
|
|
height: 10px;
|
||
|
|
background: rgba(0, 0, 0, 0.3);
|
||
|
|
border-radius: 5px;
|
||
|
|
margin-top: 8px;
|
||
|
|
overflow: hidden;
|
||
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.progress-fill {
|
||
|
|
height: 100%;
|
||
|
|
border-radius: 5px;
|
||
|
|
transition: width 1s ease-in-out;
|
||
|
|
box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-grid {
|
||
|
|
background: linear-gradient(90deg, #00B42A, #66bb6a);
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-stopped {
|
||
|
|
background: linear-gradient(90deg, #86909C, #b0bec5);
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-standby {
|
||
|
|
background: linear-gradient(90deg, #1890ff, #4fc3f7);
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-maintenance {
|
||
|
|
background: linear-gradient(90deg, #FF7D00, #ffa726);
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-offline {
|
||
|
|
background: linear-gradient(90deg, #faad14, #ffca28);
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-fault {
|
||
|
|
background: linear-gradient(90deg, #F53F3F, #ef5350);
|
||
|
|
}
|
||
|
|
|
||
|
|
.chart-placeholder {
|
||
|
|
margin-top: 20px;
|
||
|
|
background: rgba(25, 55, 95, 0.3);
|
||
|
|
border-radius: 10px;
|
||
|
|
padding: 15px;
|
||
|
|
border: 1px solid rgba(64, 156, 255, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.chart-placeholder h4 {
|
||
|
|
margin: 0 0 15px 0;
|
||
|
|
font-size: 18px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #4fc3f7;
|
||
|
|
text-align: center;
|
||
|
|
position: relative;
|
||
|
|
padding-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chart-placeholder h4::after {
|
||
|
|
content: '';
|
||
|
|
position: absolute;
|
||
|
|
bottom: 0;
|
||
|
|
left: 50%;
|
||
|
|
transform: translateX(-50%);
|
||
|
|
width: 50px;
|
||
|
|
height: 2px;
|
||
|
|
background: linear-gradient(90deg, transparent, #4fc3f7, transparent);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
/* 数值卡片样式 */
|
||
|
|
.value-card {
|
||
|
|
background: rgba(25, 55, 95, 0.4);
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 12px;
|
||
|
|
margin-bottom: 15px;
|
||
|
|
border: 1px solid rgba(64, 156, 255, 0.3);
|
||
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.value-card:hover {
|
||
|
|
transform: translateY(-3px);
|
||
|
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
|
||
|
|
border-color: rgba(64, 156, 255, 0.6);
|
||
|
|
}
|
||
|
|
|
||
|
|
.value-card .label {
|
||
|
|
font-size: 14px;
|
||
|
|
color: #a0d2ff;
|
||
|
|
margin-bottom: 5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.value-card .value {
|
||
|
|
font-size: 24px;
|
||
|
|
font-weight: 700;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 状态指示器 */
|
||
|
|
.status-indicator {
|
||
|
|
display: inline-block;
|
||
|
|
width: 12px;
|
||
|
|
height: 12px;
|
||
|
|
border-radius: 50%;
|
||
|
|
margin-right: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-indicator.grid {
|
||
|
|
background: #00B42A;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-indicator.stopped {
|
||
|
|
background: #86909C;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-indicator.standby {
|
||
|
|
background: #1890ff;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-indicator.maintenance {
|
||
|
|
background: #FF7D00;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-indicator.offline {
|
||
|
|
background: #faad14;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-indicator.fault {
|
||
|
|
background: #F53F3F;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
<style>
|
||
|
|
/* 修改关键指标网格布局 */
|
||
|
|
.key-indicators-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr 1fr;
|
||
|
|
gap: 10px;
|
||
|
|
margin-bottom: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.indicator-card {
|
||
|
|
background-image: url(/assets/img/caidan-160_128.png);
|
||
|
|
background-size: 100% 100%;
|
||
|
|
/* background: rgba(25, 55, 95, 0.6);
|
||
|
|
border-radius: 8px; */
|
||
|
|
padding: 15px;
|
||
|
|
/* border: 1px solid rgba(64, 156, 255, 0.3); */
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
/* background-image: url('/assets/img/common/a.png');
|
||
|
|
background-size: 100% 100%; */
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-icon {
|
||
|
|
width: 40px;
|
||
|
|
height: 40px;
|
||
|
|
border-radius: 8px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
/* margin-right: 12px; */
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-info {
|
||
|
|
flex: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-label {
|
||
|
|
font-size: 12px;
|
||
|
|
color: #a0d2ff;
|
||
|
|
margin: 0 0 5px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-value {
|
||
|
|
font-size: 18px;
|
||
|
|
font-weight: bold;
|
||
|
|
color: #4fc3f7;
|
||
|
|
margin: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 修改图表区域样式 */
|
||
|
|
.chart-section {
|
||
|
|
margin-bottom: 10px;
|
||
|
|
background: rgba(25, 55, 95, 0.6);
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 15px;
|
||
|
|
border: 1px solid rgba(64, 156, 255, 0.3);
|
||
|
|
/* flex-shrink: 0; */
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chart-section h4 {
|
||
|
|
margin: 0 0 15px 0;
|
||
|
|
font-size: 16px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #4fc3f7;
|
||
|
|
text-align: center;
|
||
|
|
padding-bottom: 8px;
|
||
|
|
border-bottom: 1px solid rgba(64, 156, 255, 0.3);
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chart-container {
|
||
|
|
/* height: 120px; */
|
||
|
|
position: relative;
|
||
|
|
flex: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 环境参数网格 */
|
||
|
|
.environment-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr 1fr;
|
||
|
|
gap: 10px;
|
||
|
|
margin-bottom: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.env-card {
|
||
|
|
background: rgba(25, 55, 95, 0.6);
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 15px;
|
||
|
|
border: 1px solid rgba(64, 156, 255, 0.3);
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.env-label {
|
||
|
|
font-size: 12px;
|
||
|
|
color: #a0d2ff;
|
||
|
|
margin: 0 0 5px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.env-value {
|
||
|
|
font-size: 18px;
|
||
|
|
font-weight: bold;
|
||
|
|
color: #4fc3f7;
|
||
|
|
margin: 0 0 5px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.env-status {
|
||
|
|
font-size: 12px;
|
||
|
|
margin: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.text-success {
|
||
|
|
color: #66bb6a;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 统计数据网格 */
|
||
|
|
.stats-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr 1fr;
|
||
|
|
gap: 15px;
|
||
|
|
margin-bottom: 25px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-item {
|
||
|
|
/* background: rgba(25, 55, 95, 0.6); */
|
||
|
|
/* border-radius: 8px; */
|
||
|
|
padding: 18px;
|
||
|
|
/* border: 1px solid rgba(64, 156, 255, 0.3); */
|
||
|
|
text-align: center;
|
||
|
|
/* background-image: url('/assets/img/icon/dz.png'); */
|
||
|
|
background-image: url('/assets/img/flood/base-active.png');
|
||
|
|
background-size: 100% 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-label {
|
||
|
|
font-size: 12px;
|
||
|
|
color: #a0d2ff;
|
||
|
|
margin: 0 0 5px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-value {
|
||
|
|
font-size: 18px;
|
||
|
|
font-weight: bold;
|
||
|
|
color: #4fc3f7;
|
||
|
|
margin: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 预警统计 */
|
||
|
|
.alert-summary {
|
||
|
|
background: rgba(25, 55, 95, 0.6);
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 15px;
|
||
|
|
border: 1px solid rgba(64, 156, 255, 0.3);
|
||
|
|
margin-bottom: 10px;
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-summary h4 {
|
||
|
|
margin: 0 0 15px 0;
|
||
|
|
font-size: 16px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #4fc3f7;
|
||
|
|
text-align: center;
|
||
|
|
padding-bottom: 8px;
|
||
|
|
border-bottom: 1px solid rgba(64, 156, 255, 0.3);
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-stats-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr 1fr 1fr;
|
||
|
|
gap: 10px;
|
||
|
|
flex-shrink: 0;
|
||
|
|
margin-top: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-stat {
|
||
|
|
text-align: center;
|
||
|
|
background-image: url('/assets/img/common/bottomItemBg.png');
|
||
|
|
background-size: 100% 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-count {
|
||
|
|
font-size: 24px;
|
||
|
|
font-weight: bold;
|
||
|
|
margin: 15px 0 5px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-count.critical {
|
||
|
|
color: #f44336;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-count.warning {
|
||
|
|
color: #ff9800;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-count.normal {
|
||
|
|
color: #66bb6a;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-type {
|
||
|
|
font-size: 12px;
|
||
|
|
color: #fffa18;
|
||
|
|
margin: 20px;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
<style>
|
||
|
|
/* 运行统计区域 */
|
||
|
|
.stats-section {
|
||
|
|
margin-bottom: 25px;
|
||
|
|
background: rgba(25, 55, 95, 0.6);
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 15px;
|
||
|
|
border: 1px solid rgba(64, 156, 255, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.stats-section h4 {
|
||
|
|
margin: 0 0 15px 0;
|
||
|
|
font-size: 16px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #4fc3f7;
|
||
|
|
text-align: center;
|
||
|
|
padding-bottom: 8px;
|
||
|
|
border-bottom: 1px solid rgba(64, 156, 255, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.stats-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr 1fr;
|
||
|
|
gap: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-card {
|
||
|
|
background: rgba(16, 36, 62, 0.4);
|
||
|
|
border-radius: 6px;
|
||
|
|
padding: 12px;
|
||
|
|
text-align: center;
|
||
|
|
border: 1px solid rgba(64, 156, 255, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-title {
|
||
|
|
font-size: 12px;
|
||
|
|
color: #a0d2ff;
|
||
|
|
margin: 0 0 5px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-number {
|
||
|
|
font-size: 20px;
|
||
|
|
font-weight: bold;
|
||
|
|
color: #4fc3f7;
|
||
|
|
margin: 0 0 3px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-unit {
|
||
|
|
font-size: 14px;
|
||
|
|
color: #81d4fa;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-desc {
|
||
|
|
font-size: 11px;
|
||
|
|
color: #81d4fa;
|
||
|
|
margin: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 图表统计信息 */
|
||
|
|
.chart-stats {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-around;
|
||
|
|
margin-top: 15px;
|
||
|
|
padding-top: 12px;
|
||
|
|
border-top: 1px solid rgba(64, 156, 255, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.chart-stats .stat-item {
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chart-stats .stat-label {
|
||
|
|
font-size: 12px;
|
||
|
|
color: #a0d2ff;
|
||
|
|
display: block;
|
||
|
|
margin-bottom: 5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chart-stats .stat-value {
|
||
|
|
font-size: 16px;
|
||
|
|
font-weight: bold;
|
||
|
|
color: #e8ffdc;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 状态详情 */
|
||
|
|
.status-details {
|
||
|
|
margin-top: 15px;
|
||
|
|
padding-top: 12px;
|
||
|
|
border-top: 1px solid rgba(64, 156, 255, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-item {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-item:last-child {
|
||
|
|
margin-bottom: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-label {
|
||
|
|
font-size: 13px;
|
||
|
|
color: #cce0ff;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-dot {
|
||
|
|
display: inline-block;
|
||
|
|
width: 10px;
|
||
|
|
height: 10px;
|
||
|
|
border-radius: 50%;
|
||
|
|
margin-right: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-value {
|
||
|
|
font-size: 13px;
|
||
|
|
font-weight: bold;
|
||
|
|
color: #4fc3f7;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
|
||
|
|
<style>
|
||
|
|
/* 预警统计详情 */
|
||
|
|
.alert-details {
|
||
|
|
/* margin-top: 20px; */
|
||
|
|
padding-top: 15px;
|
||
|
|
border-top: 1px solid rgba(64, 156, 255, 0.2);
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-details h5 {
|
||
|
|
font-size: 14px;
|
||
|
|
color: #4fc3f7;
|
||
|
|
margin: 0 0 12px 0;
|
||
|
|
text-align: center;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-list {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
padding-right: 5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 隐藏滚动条但保持滚动功能 */
|
||
|
|
.alert-list::-webkit-scrollbar {
|
||
|
|
width: 0;
|
||
|
|
background: transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-list::-webkit-scrollbar-thumb {
|
||
|
|
background: transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Firefox */
|
||
|
|
.alert-list {
|
||
|
|
scrollbar-width: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* IE/Edge */
|
||
|
|
.alert-list {
|
||
|
|
-ms-overflow-style: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-item {
|
||
|
|
background: rgba(16, 36, 62, 0.4);
|
||
|
|
border-radius: 6px;
|
||
|
|
padding: 10px;
|
||
|
|
margin-bottom: 10px;
|
||
|
|
border-left: 3px solid;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-item:last-child {
|
||
|
|
margin-bottom: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-item.critical {
|
||
|
|
border-left-color: #f44336;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-item.warning {
|
||
|
|
border-left-color: #ff9800;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-item.normal {
|
||
|
|
border-left-color: #66bb6a;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
margin-bottom: 5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-icon {
|
||
|
|
font-size: 14px;
|
||
|
|
margin-right: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-item.critical .alert-icon {
|
||
|
|
color: #f44336;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-item.warning .alert-icon {
|
||
|
|
color: #ff9800;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-item.normal .alert-icon {
|
||
|
|
color: #66bb6a;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-title {
|
||
|
|
flex: 1;
|
||
|
|
font-size: 13px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #e0f0ff;
|
||
|
|
white-space: nowrap;
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-time {
|
||
|
|
font-size: 11px;
|
||
|
|
color: #81d4fa;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-content {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-desc {
|
||
|
|
font-size: 12px;
|
||
|
|
color: #a0d2ff;
|
||
|
|
flex: 1;
|
||
|
|
margin: 0 10px 0 0;
|
||
|
|
white-space: nowrap;
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-status {
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-tag {
|
||
|
|
font-size: 10px;
|
||
|
|
padding: 2px 6px;
|
||
|
|
border-radius: 10px;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-tag.critical {
|
||
|
|
background: rgba(244, 67, 54, 0.2);
|
||
|
|
color: #f44336;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-tag.warning {
|
||
|
|
background: rgba(255, 152, 0, 0.2);
|
||
|
|
color: #ff9800;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-tag.normal {
|
||
|
|
background: rgba(102, 187, 106, 0.2);
|
||
|
|
color: #66bb6a;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert-footer {
|
||
|
|
text-align: center;
|
||
|
|
margin-top: 12px;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.view-all-alerts {
|
||
|
|
font-size: 12px;
|
||
|
|
color: #4fc3f7;
|
||
|
|
text-decoration: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.view-all-alerts:hover {
|
||
|
|
text-decoration: underline;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
<style>
|
||
|
|
.chart_title {
|
||
|
|
height: 5vh;
|
||
|
|
background: url('./assets/img/common/homeTitle.png') no-repeat;
|
||
|
|
background-position: center;
|
||
|
|
background-position-x: center;
|
||
|
|
background-position-y: center;
|
||
|
|
background-size: 108% 120%;
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chart_title .title span {
|
||
|
|
font-size: 2.4vh;
|
||
|
|
letter-spacing: 0.2vh;
|
||
|
|
font-family: YouSheBiaoTiHei;
|
||
|
|
font-weight: 400;
|
||
|
|
color: #ffffff;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tourButton {
|
||
|
|
background-image: url('./assets/img/common/b.png');
|
||
|
|
background-size: 100% 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* 风机详情面板样式 */
|
||
|
|
.detail-panel {
|
||
|
|
position: absolute;
|
||
|
|
top: 20px;
|
||
|
|
left: 50%;
|
||
|
|
transform: translateX(-50%);
|
||
|
|
width: 350px;
|
||
|
|
background: rgba(25, 55, 95, 0.85);
|
||
|
|
border: 1px solid rgba(64, 156, 255, 0.6);
|
||
|
|
border-radius: 10px;
|
||
|
|
color: #e0f0ff;
|
||
|
|
z-index: 1000;
|
||
|
|
backdrop-filter: blur(5px);
|
||
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
||
|
|
padding: 15px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-panel.hidden {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-header {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
padding-bottom: 10px;
|
||
|
|
border-bottom: 1px solid rgba(64, 156, 255, 0.4);
|
||
|
|
margin-bottom: 15px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-header h3 {
|
||
|
|
margin: 0;
|
||
|
|
font-size: 18px;
|
||
|
|
color: #4fc3f7;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.close-btn {
|
||
|
|
background: none;
|
||
|
|
border: none;
|
||
|
|
color: #a0d2ff;
|
||
|
|
font-size: 20px;
|
||
|
|
cursor: pointer;
|
||
|
|
padding: 0;
|
||
|
|
width: 25px;
|
||
|
|
height: 25px;
|
||
|
|
border-radius: 50%;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.close-btn:hover {
|
||
|
|
background: rgba(244, 67, 54, 0.2);
|
||
|
|
color: #f44336;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-content {
|
||
|
|
padding: 5px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-item {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
margin-bottom: 12px;
|
||
|
|
padding: 8px 10px;
|
||
|
|
background: rgba(16, 36, 62, 0.5);
|
||
|
|
border-radius: 6px;
|
||
|
|
border: 1px solid rgba(64, 156, 255, 0.15);
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-item:last-child {
|
||
|
|
margin-bottom: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-item label {
|
||
|
|
font-size: 13px;
|
||
|
|
color: #cce0ff;
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-item .value {
|
||
|
|
font-size: 15px;
|
||
|
|
font-weight: 700;
|
||
|
|
color: #4fc3f7;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 状态颜色 */
|
||
|
|
.status-grid {
|
||
|
|
color: #00B42A;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-stopped {
|
||
|
|
color: #86909C;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-standby {
|
||
|
|
color: #1890ff;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-maintenance {
|
||
|
|
color: #FF7D00;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-fault {
|
||
|
|
color: #F53F3F;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 响应式设计 */
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.detail-panel {
|
||
|
|
width: 300px;
|
||
|
|
left: 50%;
|
||
|
|
right: auto;
|
||
|
|
transform: translateX(-50%);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
|
||
|
|
<body>
|
||
|
|
<div id="container">
|
||
|
|
<div id="loading">正在加载海上风电机组场景...</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 左侧面板 - 核心气象参数 -->
|
||
|
|
<div id="left-panel" class="panel left-panel">
|
||
|
|
<div class="panel-content">
|
||
|
|
<!-- 核心气象指标 -->
|
||
|
|
<div class="chart-section">
|
||
|
|
<div class="chart_title">
|
||
|
|
<span>核心气象参数</span>
|
||
|
|
</div>
|
||
|
|
<div class="key-indicators-grid">
|
||
|
|
<div class="indicator-card">
|
||
|
|
<div class="card-icon">
|
||
|
|
<i class="fa fa-thermometer-half" style="color: #ff6b6b;"></i>
|
||
|
|
</div>
|
||
|
|
<div class="card-info">
|
||
|
|
<p class="card-label">温度</p>
|
||
|
|
<p class="card-value" style="color: #e48527;">23.5 °C</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="indicator-card">
|
||
|
|
<div class="card-icon">
|
||
|
|
<i class="fa fa-tint" style="color: #1afa29;"></i>
|
||
|
|
</div>
|
||
|
|
<div class="card-info">
|
||
|
|
<p class="card-label">湿度</p>
|
||
|
|
<p class="card-value" style="color: #1afa29;">65 %</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="key-indicators-grid">
|
||
|
|
<div class="indicator-card">
|
||
|
|
<div class="card-icon">
|
||
|
|
<i class="fa fa-dashboard" style="color: #f4ea2a;"></i>
|
||
|
|
</div>
|
||
|
|
<div class="card-info">
|
||
|
|
<p class="card-label">大气压力</p>
|
||
|
|
<p class="card-value" style="color: #f4ea2a;">1013.2 hPa</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="indicator-card">
|
||
|
|
<div class="card-icon">
|
||
|
|
<i class="fa fa-flag" style="color: #ff9800;"></i>
|
||
|
|
</div>
|
||
|
|
<div class="card-info">
|
||
|
|
<p class="card-label">风速</p>
|
||
|
|
<p class="card-value" style="color: #e48527;">5.2 m/s</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 温度湿度趋势图 -->
|
||
|
|
<div class="chart-section">
|
||
|
|
<div class="chart_title">
|
||
|
|
<span>温湿度趋势</span>
|
||
|
|
</div>
|
||
|
|
<div class="chart-container">
|
||
|
|
<canvas id="tempHumidityChart"></canvas>
|
||
|
|
</div>
|
||
|
|
<div class="chart-stats">
|
||
|
|
<div class="stat-item">
|
||
|
|
<span class="stat-label">今日最高</span>
|
||
|
|
<span class="stat-value">25.8 °C</span>
|
||
|
|
</div>
|
||
|
|
<div class="stat-item">
|
||
|
|
<span class="stat-label">今日最低</span>
|
||
|
|
<span class="stat-value">18.2 °C</span>
|
||
|
|
</div>
|
||
|
|
<div class="stat-item">
|
||
|
|
<span class="stat-label">平均湿度</span>
|
||
|
|
<span class="stat-value">68%</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 设备状态 -->
|
||
|
|
<div class="chart-section">
|
||
|
|
<div class="chart_title">
|
||
|
|
<span>设备状态监控</span>
|
||
|
|
</div>
|
||
|
|
<div class="status-details">
|
||
|
|
<div class="status-item">
|
||
|
|
<span class="status-label">
|
||
|
|
<span class="status-dot dot-normal"></span>
|
||
|
|
通信状态
|
||
|
|
</span>
|
||
|
|
<span class="status-value status-normal">在线</span>
|
||
|
|
</div>
|
||
|
|
<div class="status-item">
|
||
|
|
<span class="status-label">
|
||
|
|
<span class="status-dot dot-normal"></span>
|
||
|
|
电池电压
|
||
|
|
</span>
|
||
|
|
<span class="status-value">12.6 V</span>
|
||
|
|
</div>
|
||
|
|
<div class="status-item">
|
||
|
|
<span class="status-label">
|
||
|
|
<span class="status-dot dot-normal"></span>
|
||
|
|
太阳能充电
|
||
|
|
</span>
|
||
|
|
<span class="status-value">1.2 A</span>
|
||
|
|
</div>
|
||
|
|
<div class="status-item">
|
||
|
|
<span class="status-label">
|
||
|
|
<span class="status-dot dot-warning"></span>
|
||
|
|
数据完整率
|
||
|
|
</span>
|
||
|
|
<span class="status-value status-warning">96.5%</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 气压趋势 -->
|
||
|
|
<div class="chart-section">
|
||
|
|
<div class="chart_title">
|
||
|
|
<span>气压变化趋势</span>
|
||
|
|
</div>
|
||
|
|
<div class="chart-container">
|
||
|
|
<canvas id="pressureChart"></canvas>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 右侧面板 - 风参数和预警 -->
|
||
|
|
<div id="right-panel" class="panel right-panel">
|
||
|
|
<div class="panel-content">
|
||
|
|
<!-- 风参数 -->
|
||
|
|
<div class="chart-section">
|
||
|
|
<div class="chart_title">
|
||
|
|
<span>风参数监测</span>
|
||
|
|
</div>
|
||
|
|
<div class="key-indicators-grid">
|
||
|
|
<div class="indicator-card">
|
||
|
|
<div class="card-icon">
|
||
|
|
<i class="fa fa-arrow-up wind-direction" style="color: #00ffde;"></i>
|
||
|
|
</div>
|
||
|
|
<div class="card-info">
|
||
|
|
<p class="card-label">风向</p>
|
||
|
|
<p class="card-value" style="color: #00ffde;">NE 45°</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="indicator-card">
|
||
|
|
<div class="card-icon">
|
||
|
|
<i class="fa fa-bolt" style="color: #ff9800;"></i>
|
||
|
|
</div>
|
||
|
|
<div class="card-info">
|
||
|
|
<p class="card-label">阵风</p>
|
||
|
|
<p class="card-value" style="color: #e48527;">7.8 m/s</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="key-indicators-grid">
|
||
|
|
<div class="indicator-card">
|
||
|
|
<div class="card-icon">
|
||
|
|
<i class="fa fa-cloud" style="color: #f4ea2a;"></i>
|
||
|
|
</div>
|
||
|
|
<div class="card-info">
|
||
|
|
<p class="card-label">露点温度</p>
|
||
|
|
<p class="card-value" style="color: #f4ea2a;">16.8 °C</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="indicator-card">
|
||
|
|
<div class="card-icon">
|
||
|
|
<i class="fa fa-umbrella" style="color: #1afa29;"></i>
|
||
|
|
</div>
|
||
|
|
<div class="card-info">
|
||
|
|
<p class="card-label">降水量</p>
|
||
|
|
<p class="card-value" style="color: #1afa29;">0 mm</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 风速趋势 -->
|
||
|
|
<div class="chart-section">
|
||
|
|
<div class="chart_title">
|
||
|
|
<span>风速变化趋势</span>
|
||
|
|
</div>
|
||
|
|
<div class="chart-container">
|
||
|
|
<canvas id="windSpeedChart"></canvas>
|
||
|
|
</div>
|
||
|
|
<div class="chart-stats">
|
||
|
|
<div class="stat-item">
|
||
|
|
<span class="stat-label">平均风速</span>
|
||
|
|
<span class="stat-value">5.2 m/s</span>
|
||
|
|
</div>
|
||
|
|
<div class="stat-item">
|
||
|
|
<span class="stat-label">最大阵风</span>
|
||
|
|
<span class="stat-value">9.1 m/s</span>
|
||
|
|
</div>
|
||
|
|
<div class="stat-item">
|
||
|
|
<span class="stat-label">风向稳定性</span>
|
||
|
|
<span class="stat-value">良好</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 环境统计 -->
|
||
|
|
<div class="chart-section">
|
||
|
|
<div class="chart_title">
|
||
|
|
<span>环境统计</span>
|
||
|
|
</div>
|
||
|
|
<div class="status-details">
|
||
|
|
<div class="status-item">
|
||
|
|
<span class="status-label">
|
||
|
|
<span class="status-dot dot-normal"></span>
|
||
|
|
信号强度
|
||
|
|
</span>
|
||
|
|
<span class="status-value">-75 dBm</span>
|
||
|
|
</div>
|
||
|
|
<div class="status-item">
|
||
|
|
<span class="status-label">
|
||
|
|
<span class="status-dot dot-normal"></span>
|
||
|
|
内部温度
|
||
|
|
</span>
|
||
|
|
<span class="status-value">28.3 ℃</span>
|
||
|
|
</div>
|
||
|
|
<div class="status-item">
|
||
|
|
<span class="status-label">
|
||
|
|
<span class="status-dot dot-normal"></span>
|
||
|
|
运行时间
|
||
|
|
</span>
|
||
|
|
<span class="status-value">15 天</span>
|
||
|
|
</div>
|
||
|
|
<div class="status-item">
|
||
|
|
<span class="status-label">
|
||
|
|
<span class="status-dot dot-warning"></span>
|
||
|
|
气压趋势
|
||
|
|
</span>
|
||
|
|
<span class="status-value status-warning">下降 1.2 hPa</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 预警统计 -->
|
||
|
|
<div class="alert-summary">
|
||
|
|
<div class="chart_title">
|
||
|
|
<span>系统预警</span>
|
||
|
|
</div>
|
||
|
|
<div class="alert-stats-grid">
|
||
|
|
<div class="alert-stat">
|
||
|
|
<div class="alert-count critical">1</div>
|
||
|
|
<div class="alert-type">严重预警</div>
|
||
|
|
</div>
|
||
|
|
<div class="alert-stat">
|
||
|
|
<div class="alert-count warning">2</div>
|
||
|
|
<div class="alert-type">一般预警</div>
|
||
|
|
</div>
|
||
|
|
<div class="alert-stat">
|
||
|
|
<div class="alert-count normal">8</div>
|
||
|
|
<div class="alert-type">正常设备</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="alert-details">
|
||
|
|
<div class="alert-list">
|
||
|
|
<div class="alert-item critical">
|
||
|
|
<div class="alert-header">
|
||
|
|
<i class="fa fa-exclamation-triangle alert-icon"></i>
|
||
|
|
<span class="alert-title">气象站 #02 电池低</span>
|
||
|
|
<span class="alert-time">10:23</span>
|
||
|
|
</div>
|
||
|
|
<p class="alert-desc">电池电压低于阈值 11.5V</p>
|
||
|
|
</div>
|
||
|
|
<div class="alert-item warning">
|
||
|
|
<div class="alert-header">
|
||
|
|
<i class="fa fa-exclamation-circle alert-icon"></i>
|
||
|
|
<span class="alert-title">气象站 #05 风速异常</span>
|
||
|
|
<span class="alert-time">09:45</span>
|
||
|
|
</div>
|
||
|
|
<p class="alert-desc">风速传感器数据波动异常</p>
|
||
|
|
</div>
|
||
|
|
<div class="alert-item warning">
|
||
|
|
<div class="alert-header">
|
||
|
|
<i class="fa fa-exclamation-circle alert-icon"></i>
|
||
|
|
<span class="alert-title">气象站 #03 通信延迟</span>
|
||
|
|
<span class="alert-time">08:15</span>
|
||
|
|
</div>
|
||
|
|
<p class="alert-desc">数据传输延迟超过5分钟</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<!-- Three.js 核心库 -->
|
||
|
|
<script src="js/three.min.js"></script>
|
||
|
|
<!-- 引入RGBELoader -->
|
||
|
|
<script src="js/RGBELoader.js"></script>
|
||
|
|
<!-- <script src="https://unpkg.com/three@0.132.2/examples/js/loaders/RGBELoader.js"></script> -->
|
||
|
|
<!-- 本地Three.js扩展库 -->
|
||
|
|
<script src="js/OrbitControls.js"></script>
|
||
|
|
<!-- Water.js 水面效果 -->
|
||
|
|
<script src="js/Water.js"></script>
|
||
|
|
<!-- Sky.js 天空效果 -->
|
||
|
|
<script src="js/Sky.js"></script>
|
||
|
|
<!-- GLTF加载器 -->
|
||
|
|
<script src="js/GLTFLoader.js"></script>
|
||
|
|
<!-- DRACO解码器 - 使用本地版本 -->
|
||
|
|
<script src="js/DRACOLoader.js"></script>
|
||
|
|
<script src="draco/draco_decoder.js"></script>
|
||
|
|
<script src="draco/draco_wasm_wrapper.js"></script>
|
||
|
|
<script src="js/fflate.min.js"></script>
|
||
|
|
<script src="js/FBXLoader.js"></script>
|
||
|
|
<script src="js/echarts.min.js"></script>
|
||
|
|
<!-- 主程序 -->
|
||
|
|
<script src="fubiao_main_a1.js"></script>
|
||
|
|
|
||
|
|
|
||
|
|
<script>
|
||
|
|
// 模拟数据生成
|
||
|
|
function generateTempHumidityData() {
|
||
|
|
const labels = [];
|
||
|
|
const temperatures = [];
|
||
|
|
const humidities = [];
|
||
|
|
|
||
|
|
for (let i = 0; i < 24; i++) {
|
||
|
|
labels.push(i + ':00');
|
||
|
|
// 模拟昼夜温度变化
|
||
|
|
const baseTemp = 20 + 5 * Math.sin(i * Math.PI / 12);
|
||
|
|
temperatures.push(baseTemp + Math.random() * 2);
|
||
|
|
// 模拟湿度变化(与温度负相关)
|
||
|
|
humidities.push(60 + 20 * Math.cos(i * Math.PI / 12) + Math.random() * 10);
|
||
|
|
}
|
||
|
|
|
||
|
|
return { labels, temperatures, humidities };
|
||
|
|
}
|
||
|
|
|
||
|
|
function generatePressureData() {
|
||
|
|
const labels = [];
|
||
|
|
const pressures = [];
|
||
|
|
|
||
|
|
for (let i = 0; i < 12; i++) {
|
||
|
|
labels.push(i * 2 + ':00');
|
||
|
|
// 模拟气压缓慢变化
|
||
|
|
pressures.push(1012 + Math.sin(i * Math.PI / 6) * 3 + Math.random());
|
||
|
|
}
|
||
|
|
|
||
|
|
return { labels, pressures };
|
||
|
|
}
|
||
|
|
|
||
|
|
function generateWindSpeedData() {
|
||
|
|
const labels = [];
|
||
|
|
const speeds = [];
|
||
|
|
const gusts = [];
|
||
|
|
|
||
|
|
for (let i = 0; i < 24; i++) {
|
||
|
|
labels.push(i + ':00');
|
||
|
|
// 模拟风速日变化
|
||
|
|
const baseSpeed = 3 + 2 * Math.sin(i * Math.PI / 12);
|
||
|
|
speeds.push(baseSpeed + Math.random() * 2);
|
||
|
|
gusts.push(baseSpeed + 2 + Math.random() * 3);
|
||
|
|
}
|
||
|
|
|
||
|
|
return { labels, speeds, gusts };
|
||
|
|
}
|
||
|
|
|
||
|
|
// 初始化图表
|
||
|
|
function initCharts() {
|
||
|
|
// 温湿度趋势图
|
||
|
|
const tempHumidityCtx = document.getElementById('tempHumidityChart').getContext('2d');
|
||
|
|
const tempHumidityData = generateTempHumidityData();
|
||
|
|
|
||
|
|
new Chart(tempHumidityCtx, {
|
||
|
|
type: 'line',
|
||
|
|
data: {
|
||
|
|
labels: tempHumidityData.labels,
|
||
|
|
datasets: [
|
||
|
|
{
|
||
|
|
label: '温度',
|
||
|
|
data: tempHumidityData.temperatures,
|
||
|
|
borderColor: '#ff6b6b',
|
||
|
|
backgroundColor: 'rgba(255, 107, 107, 0.1)',
|
||
|
|
borderWidth: 2,
|
||
|
|
pointRadius: 0,
|
||
|
|
fill: true,
|
||
|
|
tension: 0.4,
|
||
|
|
yAxisID: 'y'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
label: '湿度',
|
||
|
|
data: tempHumidityData.humidities,
|
||
|
|
borderColor: '#4fc3f7',
|
||
|
|
backgroundColor: 'rgba(79, 195, 247, 0.1)',
|
||
|
|
borderWidth: 2,
|
||
|
|
pointRadius: 0,
|
||
|
|
fill: true,
|
||
|
|
tension: 0.4,
|
||
|
|
yAxisID: 'y1'
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
options: {
|
||
|
|
responsive: true,
|
||
|
|
maintainAspectRatio: false,
|
||
|
|
plugins: {
|
||
|
|
legend: {
|
||
|
|
labels: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.7)'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
scales: {
|
||
|
|
x: {
|
||
|
|
ticks: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.7)'
|
||
|
|
},
|
||
|
|
grid: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.1)'
|
||
|
|
}
|
||
|
|
},
|
||
|
|
y: {
|
||
|
|
type: 'linear',
|
||
|
|
display: true,
|
||
|
|
position: 'left',
|
||
|
|
title: {
|
||
|
|
display: true,
|
||
|
|
text: '温度 (°C)',
|
||
|
|
color: 'rgba(255, 255, 255, 0.7)'
|
||
|
|
},
|
||
|
|
ticks: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.7)'
|
||
|
|
},
|
||
|
|
grid: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.1)'
|
||
|
|
}
|
||
|
|
},
|
||
|
|
y1: {
|
||
|
|
type: 'linear',
|
||
|
|
display: true,
|
||
|
|
position: 'right',
|
||
|
|
title: {
|
||
|
|
display: true,
|
||
|
|
text: '湿度 (%)',
|
||
|
|
color: 'rgba(255, 255, 255, 0.7)'
|
||
|
|
},
|
||
|
|
ticks: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.7)'
|
||
|
|
},
|
||
|
|
grid: {
|
||
|
|
drawOnChartArea: false,
|
||
|
|
color: 'rgba(255, 255, 255, 0.1)'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
// 气压趋势图
|
||
|
|
const pressureCtx = document.getElementById('pressureChart').getContext('2d');
|
||
|
|
const pressureData = generatePressureData();
|
||
|
|
|
||
|
|
new Chart(pressureCtx, {
|
||
|
|
type: 'line',
|
||
|
|
data: {
|
||
|
|
labels: pressureData.labels,
|
||
|
|
datasets: [{
|
||
|
|
label: '大气压力',
|
||
|
|
data: pressureData.pressures,
|
||
|
|
borderColor: '#66bb6a',
|
||
|
|
backgroundColor: 'rgba(102, 187, 106, 0.1)',
|
||
|
|
borderWidth: 2,
|
||
|
|
pointRadius: 3,
|
||
|
|
pointBackgroundColor: '#66bb6a',
|
||
|
|
pointBorderColor: '#ffffff',
|
||
|
|
pointBorderWidth: 1,
|
||
|
|
fill: true,
|
||
|
|
tension: 0.4
|
||
|
|
}]
|
||
|
|
},
|
||
|
|
options: {
|
||
|
|
responsive: true,
|
||
|
|
maintainAspectRatio: false,
|
||
|
|
plugins: {
|
||
|
|
legend: {
|
||
|
|
display: false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
scales: {
|
||
|
|
x: {
|
||
|
|
ticks: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.7)'
|
||
|
|
},
|
||
|
|
grid: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.1)'
|
||
|
|
}
|
||
|
|
},
|
||
|
|
y: {
|
||
|
|
title: {
|
||
|
|
display: true,
|
||
|
|
text: '气压 (hPa)',
|
||
|
|
color: 'rgba(255, 255, 255, 0.7)'
|
||
|
|
},
|
||
|
|
ticks: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.7)'
|
||
|
|
},
|
||
|
|
grid: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.1)'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
// 风速趋势图
|
||
|
|
const windSpeedCtx = document.getElementById('windSpeedChart').getContext('2d');
|
||
|
|
const windSpeedData = generateWindSpeedData();
|
||
|
|
|
||
|
|
new Chart(windSpeedCtx, {
|
||
|
|
type: 'line',
|
||
|
|
data: {
|
||
|
|
labels: windSpeedData.labels,
|
||
|
|
datasets: [
|
||
|
|
{
|
||
|
|
label: '平均风速',
|
||
|
|
data: windSpeedData.speeds,
|
||
|
|
borderColor: '#4fc3f7',
|
||
|
|
backgroundColor: 'rgba(79, 195, 247, 0.1)',
|
||
|
|
borderWidth: 2,
|
||
|
|
pointRadius: 0,
|
||
|
|
fill: true,
|
||
|
|
tension: 0.4
|
||
|
|
},
|
||
|
|
{
|
||
|
|
label: '阵风',
|
||
|
|
data: windSpeedData.gusts,
|
||
|
|
borderColor: '#ff9800',
|
||
|
|
backgroundColor: 'rgba(255, 152, 0, 0.1)',
|
||
|
|
borderWidth: 1,
|
||
|
|
pointRadius: 0,
|
||
|
|
fill: false,
|
||
|
|
tension: 0.4,
|
||
|
|
borderDash: [5, 5]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
options: {
|
||
|
|
responsive: true,
|
||
|
|
maintainAspectRatio: false,
|
||
|
|
plugins: {
|
||
|
|
legend: {
|
||
|
|
labels: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.7)'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
scales: {
|
||
|
|
x: {
|
||
|
|
ticks: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.7)'
|
||
|
|
},
|
||
|
|
grid: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.1)'
|
||
|
|
}
|
||
|
|
},
|
||
|
|
y: {
|
||
|
|
title: {
|
||
|
|
display: true,
|
||
|
|
text: '风速 (m/s)',
|
||
|
|
color: 'rgba(255, 255, 255, 0.7)'
|
||
|
|
},
|
||
|
|
ticks: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.7)'
|
||
|
|
},
|
||
|
|
grid: {
|
||
|
|
color: 'rgba(255, 255, 255, 0.1)'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
// 更新风向指示器
|
||
|
|
function updateWindDirection() {
|
||
|
|
const directions = ['N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW'];
|
||
|
|
const angles = [0, 22.5, 45, 67.5, 90, 112.5, 135, 157.5, 180, 202.5, 225, 247.5, 270, 292.5, 315, 337.5];
|
||
|
|
|
||
|
|
const randomIndex = Math.floor(Math.random() * directions.length);
|
||
|
|
const direction = directions[randomIndex];
|
||
|
|
const angle = angles[randomIndex];
|
||
|
|
|
||
|
|
document.getElementById('windDirection').textContent = `${direction} ${angle}°`;
|
||
|
|
document.getElementById('windArrow').style.transform = `rotate(${angle}deg)`;
|
||
|
|
}
|
||
|
|
|
||
|
|
// 模拟实时数据更新
|
||
|
|
function updateRealTimeData() {
|
||
|
|
// 更新温度数据
|
||
|
|
const temperature = (20 + Math.random() * 10).toFixed(1);
|
||
|
|
document.querySelectorAll('.card-value')[0].textContent = temperature + ' °C';
|
||
|
|
|
||
|
|
// 更新湿度数据
|
||
|
|
const humidity = (50 + Math.random() * 30).toFixed(0);
|
||
|
|
document.querySelectorAll('.card-value')[1].textContent = humidity + ' %';
|
||
|
|
|
||
|
|
// 更新风速数据
|
||
|
|
const windSpeed = (2 + Math.random() * 8).toFixed(1);
|
||
|
|
document.querySelectorAll('.card-value')[3].textContent = windSpeed + ' m/s';
|
||
|
|
|
||
|
|
// 更新阵风数据
|
||
|
|
const gustSpeed = (parseFloat(windSpeed) + 2 + Math.random() * 3).toFixed(1);
|
||
|
|
document.querySelectorAll('.card-value')[5].textContent = gustSpeed + ' m/s';
|
||
|
|
|
||
|
|
// 更新风向
|
||
|
|
updateWindDirection();
|
||
|
|
|
||
|
|
// 5秒后再次更新
|
||
|
|
//setTimeout(updateRealTimeData, 5000);
|
||
|
|
}
|
||
|
|
|
||
|
|
// 页面加载完成后初始化
|
||
|
|
document.addEventListener('DOMContentLoaded', function () {
|
||
|
|
// 隐藏加载界面
|
||
|
|
document.getElementById('loading').classList.add('hidden');
|
||
|
|
|
||
|
|
// 初始化图表
|
||
|
|
initCharts();
|
||
|
|
|
||
|
|
// 初始化风向
|
||
|
|
updateWindDirection();
|
||
|
|
|
||
|
|
// 开始实时数据更新
|
||
|
|
updateRealTimeData();
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
|
||
|
|
</html>
|