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.
436 lines
13 KiB
HTML
436 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>科考任务综合管理系统</title>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: 'Microsoft YaHei', Arial, sans-serif;
|
|
}
|
|
|
|
body {
|
|
background: linear-gradient(135deg, #1a2a6c, #2a3c7c);
|
|
color: #fff;
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px 0;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.logo i {
|
|
font-size: 32px;
|
|
margin-right: 10px;
|
|
color: #4fc3f7;
|
|
}
|
|
|
|
.logo h1 {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.user-info img {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
margin-right: 10px;
|
|
border: 2px solid #4fc3f7;
|
|
}
|
|
|
|
.dashboard {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.card {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
|
transition: transform 0.3s, box-shadow 0.3s;
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
height: 200px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
|
|
background: rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
.card i {
|
|
font-size: 48px;
|
|
margin-bottom: 15px;
|
|
color: #4fc3f7;
|
|
}
|
|
|
|
.card h3 {
|
|
font-size: 20px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.card p {
|
|
color: rgba(255, 255, 255, 0.7);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.multi-display {
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.multi-display h2 {
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.multi-display h2 i {
|
|
margin-right: 10px;
|
|
color: #4fc3f7;
|
|
}
|
|
|
|
.display-controls {
|
|
display: flex;
|
|
gap: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.display-btn {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: none;
|
|
color: white;
|
|
padding: 10px 20px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: background 0.3s;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.display-btn i {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.display-btn:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.display-btn.active {
|
|
background: #4fc3f7;
|
|
color: #1a2a6c;
|
|
}
|
|
|
|
.display-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 15px;
|
|
}
|
|
|
|
.display-item {
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
height: 150px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.display-item i {
|
|
font-size: 36px;
|
|
margin-bottom: 10px;
|
|
color: #4fc3f7;
|
|
}
|
|
|
|
.status {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.status-item {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
flex: 1;
|
|
margin: 0 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.status-item:first-child {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.status-item:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.status-item i {
|
|
font-size: 32px;
|
|
margin-bottom: 10px;
|
|
color: #4fc3f7;
|
|
}
|
|
|
|
.status-value {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.status-label {
|
|
font-size: 14px;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
footer {
|
|
margin-top: 40px;
|
|
text-align: center;
|
|
padding: 20px;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-size: 14px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.dashboard {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.display-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.status {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.status-item {
|
|
margin: 10px 0;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<div class="logo">
|
|
<i class="fas fa-ship"></i>
|
|
<h1>科考任务综合管理系统</h1>
|
|
</div>
|
|
<div class="user-info">
|
|
<img src="https://i.pravatar.cc/150?img=12" alt="用户头像">
|
|
<span>科考队长 | 张海洋</span>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="dashboard">
|
|
<div class="card" onclick="openPage('home')">
|
|
<i class="fas fa-home"></i>
|
|
<h3>系统主页</h3>
|
|
<p>查看科考任务概览和关键指标</p>
|
|
</div>
|
|
|
|
<div class="card" onclick="openPage('map')">
|
|
<i class="fas fa-map-marked-alt"></i>
|
|
<h3>地图监控</h3>
|
|
<p>实时监控科考船位置和航线</p>
|
|
</div>
|
|
|
|
<div class="card" onclick="openPage('ship')">
|
|
<i class="fas fa-ship"></i>
|
|
<h3>科考船状态</h3>
|
|
<p>查看船舶运行状态和性能数据</p>
|
|
</div>
|
|
|
|
<div class="card" onclick="openPage('equipment')">
|
|
<i class="fas fa-toolbox"></i>
|
|
<h3>科考设备状态</h3>
|
|
<p>监控海洋科考调查设备运行状态</p>
|
|
</div>
|
|
|
|
<div class="card" onclick="openPage('deployed')">
|
|
<i class="fas fa-water"></i>
|
|
<h3>布放设备状态</h3>
|
|
<p>监控海上布放设备的工作状态</p>
|
|
</div>
|
|
|
|
<div class="card" onclick="openPage('data')">
|
|
<i class="fas fa-chart-bar"></i>
|
|
<h3>数据分析</h3>
|
|
<p>查看科考数据分析和可视化结果</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="multi-display">
|
|
<h2><i class="fas fa-desktop"></i> 多显示器控制中心</h2>
|
|
|
|
<div class="display-controls">
|
|
<button class="display-btn active" onclick="setDisplayMode('single')">
|
|
<i class="fas fa-desktop"></i> 单屏模式
|
|
</button>
|
|
<button class="display-btn" onclick="setDisplayMode('dual')">
|
|
<i class="fas fa-desktop"></i><i class="fas fa-desktop"></i> 双屏模式
|
|
</button>
|
|
<button class="display-btn" onclick="setDisplayMode('triple')">
|
|
<i class="fas fa-desktop"></i><i class="fas fa-desktop"></i><i class="fas fa-desktop"></i> 三屏模式
|
|
</button>
|
|
<button class="display-btn" onclick="setDisplayMode('quad')">
|
|
<i class="fas fa-desktop"></i><i class="fas fa-desktop"></i><i class="fas fa-desktop"></i><i class="fas fa-desktop"></i> 四屏模式
|
|
</button>
|
|
</div>
|
|
|
|
<div class="display-grid">
|
|
<div class="display-item">
|
|
<i class="fas fa-home"></i>
|
|
<h4>主页显示器</h4>
|
|
<p>显示系统概览和关键指标</p>
|
|
</div>
|
|
<div class="display-item">
|
|
<i class="fas fa-map-marked-alt"></i>
|
|
<h4>地图监控显示器</h4>
|
|
<p>实时显示科考船位置和航线</p>
|
|
</div>
|
|
<div class="display-item">
|
|
<i class="fas fa-ship"></i>
|
|
<h4>科考船状态显示器</h4>
|
|
<p>显示船舶运行状态和性能数据</p>
|
|
</div>
|
|
<div class="display-item">
|
|
<i class="fas fa-toolbox"></i>
|
|
<h4>设备状态显示器</h4>
|
|
<p>监控科考设备和布放设备状态</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="status">
|
|
<div class="status-item">
|
|
<i class="fas fa-broadcast-tower"></i>
|
|
<div class="status-value">98%</div>
|
|
<div class="status-label">系统运行正常</div>
|
|
</div>
|
|
<div class="status-item">
|
|
<i class="fas fa-ship"></i>
|
|
<div class="status-value">24</div>
|
|
<div class="status-label">科考任务天数</div>
|
|
</div>
|
|
<div class="status-item">
|
|
<i class="fas fa-tachometer-alt"></i>
|
|
<div class="status-value">15.2节</div>
|
|
<div class="status-label">平均航速</div>
|
|
</div>
|
|
<div class="status-item">
|
|
<i class="fas fa-thermometer-half"></i>
|
|
<div class="status-value">18.5°C</div>
|
|
<div class="status-label">海水表面温度</div>
|
|
</div>
|
|
</div>
|
|
|
|
<footer>
|
|
<p>科考任务综合管理系统 © 2023 国家海洋科学考察中心 | 当前版本: v2.5.1</p>
|
|
</footer>
|
|
</div>
|
|
|
|
<script>
|
|
// 设置显示模式
|
|
function setDisplayMode(mode) {
|
|
const buttons = document.querySelectorAll('.display-btn');
|
|
buttons.forEach(btn => btn.classList.remove('active'));
|
|
|
|
event.target.classList.add('active');
|
|
|
|
// 在实际应用中,这里会控制多个显示器的显示内容
|
|
alert(`已切换到${getModeName(mode)}模式`);
|
|
}
|
|
|
|
function getModeName(mode) {
|
|
switch(mode) {
|
|
case 'single': return '单屏';
|
|
case 'dual': return '双屏';
|
|
case 'triple': return '三屏';
|
|
case 'quad': return '四屏';
|
|
default: return '单屏';
|
|
}
|
|
}
|
|
|
|
// 打开页面
|
|
function openPage(page) {
|
|
// 在实际应用中,这里会导航到对应的页面
|
|
alert(`正在打开${getPageName(page)}页面`);
|
|
}
|
|
|
|
function getPageName(page) {
|
|
switch(page) {
|
|
case 'home': return '系统主页';
|
|
case 'map': return '地图监控';
|
|
case 'ship': return '科考船状态';
|
|
case 'equipment': return '科考设备状态';
|
|
case 'deployed': return '布放设备状态';
|
|
case 'data': return '数据分析';
|
|
default: return '未知页面';
|
|
}
|
|
}
|
|
|
|
// 模拟实时数据更新
|
|
setInterval(() => {
|
|
const statusValue = document.querySelectorAll('.status-value');
|
|
if(statusValue[1]) {
|
|
const days = parseInt(statusValue[1].textContent);
|
|
statusValue[1].textContent = (days + 1) + '';
|
|
}
|
|
|
|
if(statusValue[2]) {
|
|
const speed = (15 + Math.random() * 0.4).toFixed(1);
|
|
statusValue[2].textContent = speed + '节';
|
|
}
|
|
|
|
if(statusValue[3]) {
|
|
const temp = (18 + Math.random() * 1.5).toFixed(1);
|
|
statusValue[3].textContent = temp + '°C';
|
|
}
|
|
}, 5000);
|
|
</script>
|
|
</body>
|
|
</html> |