From 31b028f962e1cfe4c1ef91c706a90fd3aa983533 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 07 Jan 2026 18:03:12 +0800
Subject: [PATCH] feat:数据驾驶舱基础页面搭建

---
 applications/drone-command/src/views/dataCockpit/components/CenterContainer.vue |  188 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 187 insertions(+), 1 deletions(-)

diff --git a/applications/drone-command/src/views/dataCockpit/components/CenterContainer.vue b/applications/drone-command/src/views/dataCockpit/components/CenterContainer.vue
index f59947f..3545362 100644
--- a/applications/drone-command/src/views/dataCockpit/components/CenterContainer.vue
+++ b/applications/drone-command/src/views/dataCockpit/components/CenterContainer.vue
@@ -1,13 +1,199 @@
 <template>
-	<div>
+	<div class="center-container">
+		<div class="left-box">
+			<div class="logo">
+				<img :src="warningLogo" alt="">
+			</div>
 
+			<div class="list">
+				<div class="item" v-for="item, ind in warningList" :key="ind">
+					<div class="val" @click="warningTypeClick(item.type)">
+						{{ item.value }}
+					</div>
+
+					<div class="name">
+						{{ item.title }}
+					</div>
+				</div>
+			</div>
+		</div>
+
+		<div class="right-box">
+			<div class="logo">
+				<img :src="equipmentLogo" alt="">
+			</div>
+
+			<div class="list">
+				<div class="item" v-for="item, ind in equipmentList" :key="ind">
+					<div class="val" :class="{highlight: item.isHighlight}" @click="equipmentClick(item.isHighlight)">
+						{{ item.value }}
+					</div>
+
+					<div class="name">
+						{{ item.title }}
+					</div>
+				</div>
+			</div>
+		</div>
 	</div>
 </template>
 
 <script setup>
+import warningLogo from '@/assets/images/dataCockpit/warning.png'
+import equipmentLogo from '@/assets/images/dataCockpit/equipment.png'
 
+
+let warningList = ref([
+	{
+		title: '实时告警',
+		value: 56,
+		type: 1
+	},
+	{
+		title: '设备告警',
+		value: 127,
+		type: 2
+	},
+	{
+		title: '历史告警',
+		value: 619,
+		type: 3
+	},
+])
+
+let equipmentList = ref([
+	{
+		title: '设备统计',
+		value: 18,
+		isHighlight: true,
+	},
+	{
+		title: '无线电',
+		value: 9,
+	},
+	{
+		title: '光电',
+		value: 6,
+	},
+	{
+		title: '雷达',
+		value: 3,
+	}
+])
+
+const warningTypeClick = (type) => {
+	console.log('点击了告警类型:', type);
+}
+
+const equipmentClick = (isHighlight) => {
+	if (isHighlight) {
+		console.log('点击了设备统计');
+	}
+}
 </script>
 
 <style lang="scss" scoped>
+.center-container {
+	display: flex;
+	position: absolute;
+	top: 75px;
+	left: 465px;
+	z-index: 9;
+	pointer-events: none;
 
+	.left-box {
+		width: 356px;
+
+		.list {
+			.item {
+				.val {
+					color: #FF4444;
+					cursor: pointer;
+				}
+			}
+		}
+	}
+
+	.right-box {
+		margin-left: 20px;
+		width: 455px;
+
+		.list {
+			.item {
+				.val.highlight {
+					color: #6382FF;
+					cursor: pointer;
+				}
+			}
+		}
+	}
+
+	.left-box,
+	.right-box {
+		padding: 17px 20px;
+		display: flex;
+		align-items: center;
+		height: 100px;
+		background: #05050F;
+		box-sizing: border-box;
+		border-radius: 16px 16px 16px 16px;
+		pointer-events: auto;
+
+		.logo {
+			img {
+				width: 40px;
+				height: 40px;
+			}
+		}
+
+		.list {
+			width: 0;
+			flex: 1;
+			height: 100%;
+			display: flex;
+
+			.item {
+				width: 0;
+				flex: 1;
+				position: relative;
+				padding-left: 20px;
+				color: #fff;
+
+				.name {
+					font-family: Open Sans, Open Sans;
+					font-weight: 400;
+					font-size: 14px;
+					color: #FFFFFF;
+					text-align: left;
+					font-style: normal;
+					text-transform: none;
+				}
+
+				.val {
+					font-family: Source Han Sans CN, Source Han Sans CN;
+					font-weight: bold;
+					font-size: 30px;
+					text-align: left;
+					font-style: normal;
+					text-transform: none;
+				}
+
+				&::after {
+					content: '';
+					position: absolute;
+					top: 0;
+					right: 0;
+					width: 1px;
+					height: 100%;
+					width: 1px;
+					background: #333355;
+				}
+
+				&:last-child::after {
+					display: none;
+				}
+			}
+		}
+	}
+}
 </style>
\ No newline at end of file

--
Gitblit v1.9.3