From 09f49269f00a1fa70bbf9d52476b01bf917c948e Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 16 十二月 2025 19:57:39 +0800
Subject: [PATCH] 代码调整5

---
 src/views/index.vue |  934 ++++++++++++++++++++--------------------------------------
 1 files changed, 326 insertions(+), 608 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index dfd56e3..e9453f2 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -1,674 +1,392 @@
 <template>
-  <div class="dashboard">
-    <!-- 椤堕儴妯悜涓ゆ爮 -->
-    <div class="dashboard-top">
-      <!-- 宸︼細绯荤粺姒傝+鏁版嵁鍗$墖 -->
-      <div class="top-left">
-        <div class="system-info">
-          <div class="section-title">鎵垮寘鍟嗙鐞嗙郴缁�</div>
-          <div style="display: flex; align-items: center; gap: 20px">
-            <div class="system-card">
-              <div class="system-name">鎵垮寘鍟嗙鐞嗙郴缁�</div>
-              <div class="system-meta">璧勮川瀹℃牳 路 鍚堝悓绠$悊 路 缁╂晥璇勪及</div>
-            </div>
-            <div style="display: flex; align-items: center; gap: 8px">
-              <el-icon color="#5053B5" size="22"><Clock /></el-icon>
-              <span>褰撳墠鏃堕棿锛歿{ currentTime }}</span>
+  <div class="dashboard-container">
+    <!-- 缁熻鍗$墖 -->
+    <el-row :gutter="20">
+      <el-col :span="6">
+        <el-card class="statistics-card" shadow="hover">
+          <div class="card-content">
+            <div class="card-title">璁惧鍦ㄧ嚎鐜�</div>
+            <div class="card-value">{{ onlineRate }}%</div>
+            <div class="card-desc">
+              褰撳墠鍦ㄧ嚎璁惧鏁帮細{{ onlineCount }} / {{ totalDevices }}
             </div>
           </div>
+        </el-card>
+      </el-col>
+      <el-col :span="6">
+        <el-card class="statistics-card" shadow="hover">
+          <div class="card-content">
+            <div class="card-title">鏁呴殰棰勮鏁�</div>
+            <div class="card-value">{{ warningCount }}</div>
+            <div class="card-desc">
+              楂橀闄╋細{{ highRiskCount }} | 涓闄╋細{{ mediumRiskCount }} |
+              浣庨闄╋細{{ lowRiskCount }}
+            </div>
+          </div>
+        </el-card>
+      </el-col>
+      <el-col :span="6">
+        <el-card class="statistics-card" shadow="hover">
+          <div class="card-content">
+            <div class="card-title">寰呭鐞嗙淮淇崟</div>
+            <div class="card-value">{{ pendingOrders }}</div>
+            <div class="card-desc">
+              澶勭悊涓細{{ processingOrders }} | 宸插畬鎴愶細{{ completedOrders }}
+            </div>
+          </div>
+        </el-card>
+      </el-col>
+      <el-col :span="6">
+        <el-card class="statistics-card" shadow="hover">
+          <div class="card-content">
+            <div class="card-title">閲嶇偣璁惧杩愯鐘舵��</div>
+            <div class="card-value">{{ normalDevices }} 姝e父</div>
+            <div class="card-desc">
+              寮傚父锛歿{ abnormalDevices }} | 鏁呴殰锛歿{ faultDevices }}
+            </div>
+          </div>
+        </el-card>
+      </el-col>
+    </el-row>
+
+    <!-- 鍥捐〃鍖哄煙 -->
+    <el-row :gutter="20" style="margin-top: 20px">
+      <!-- 璁惧鍋ュ悍搴﹁秼鍔垮浘 -->
+      <el-col :span="12">
+        <el-card shadow="hover">
+          <template #header>
+            <div class="card-header">
+              <span>璁惧鍋ュ悍搴﹁秼鍔垮浘</span>
+            </div>
+          </template>
+          <div ref="healthChartRef" class="chart-container"></div>
+        </el-card>
+      </el-col>
+      <!-- 杩�7鏃ユ晠闅滅被鍨嬬粺璁� -->
+      <el-col :span="12">
+        <el-card shadow="hover">
+          <template #header>
+            <div class="card-header">
+              <span>杩�7鏃ユ晠闅滅被鍨嬬粺璁�</span>
+            </div>
+          </template>
+          <div ref="faultChartRef" class="chart-container"></div>
+        </el-card>
+      </el-col>
+    </el-row>
+
+    <!-- 閲嶇偣璁惧杩愯鐘舵�佸崱鐗� -->
+    <el-card shadow="hover" style="margin-top: 20px">
+      <template #header>
+        <div class="card-header">
+          <span>閲嶇偣璁惧杩愯鐘舵��</span>
         </div>
-        <div class="data-cards">
-          <div class="data-card total">
-            <div class="data-title">鎬绘壙鍖呭晢鏁�</div>
-            <div class="data-value">{{ contractorStats.total }}</div>
-            <div class="data-desc">
-              宸插鏍� {{ contractorStats.approved }} | 寰呭鏍�
-              {{ contractorStats.pending }}
-            </div>
-          </div>
-          <div class="data-card pending">
-            <div class="data-title">寰呭鏍告壙鍖呭晢</div>
-            <div class="data-value">{{ contractorStats.pending }}</div>
-            <div class="data-desc">
-              A绾� {{ contractorStats.aPending }} | B绾�
-              {{ contractorStats.bPending }} | C绾�
-              {{ contractorStats.cPending }}
-            </div>
-          </div>
-          <div class="data-card today">
-            <div class="data-title">鏈湀鏂板</div>
-            <div class="data-value">{{ contractorStats.monthly }}</div>
-            <div class="data-desc">
-              鍚屾瘮 {{ contractorStats.monthly鍚屾瘮 }}% | 鐜瘮
-              {{ contractorStats.monthly鐜瘮 }}%
-            </div>
-          </div>
-        </div>
-      </div>
-      <!-- 鍙筹細寰呭鐞嗘姤璀﹀垪琛� -->
-      <div class="alarm-panel">
-        <div class="section-title">寰呭鏍告壙鍖呭晢</div>
-        <ul class="alarm-list" v-if="pendingContractors.length > 0">
-          <li v-for="item in pendingContractors" :key="item.id">
-            <div
-              style="
-                display: flex;
-                flex-direction: column;
-                justify-content: space-between;
-                width: 100%;
-                gap: 10px;
+      </template>
+      <el-table :data="keyDevices" stripe style="width: 100%">
+        <el-table-column
+          prop="name"
+          label="璁惧鍚嶇О"
+          width="180"
+        ></el-table-column>
+        <el-table-column
+          prop="model"
+          label="鍨嬪彿"
+          width="120"
+        ></el-table-column>
+        <el-table-column prop="ip" label="IP鍦板潃" width="150"></el-table-column>
+        <el-table-column prop="status" label="鐘舵��" width="100">
+          <template #default="scope">
+            <el-tag
+              :type="
+                scope.row.status === 'online'
+                  ? 'success'
+                  : scope.row.status === 'warning'
+                  ? 'warning'
+                  : 'danger'
               "
             >
-              <div
-                style="
-                  display: flex;
-                  justify-content: space-between;
-                  align-items: center;
-                "
-              >
-                <div class="alarm-title">{{ item.name }} - {{ item.type }}</div>
-                <el-tag :type="getContractorLevelType(item.level)"
-                  >{{ item.level }}绾�</el-tag
-                >
-              </div>
-              <div
-                style="
-                  display: flex;
-                  justify-content: space-between;
-                  align-items: center;
-                "
-              >
-                <div class="alarm-value">
-                  鑱旂郴浜�: {{ item.contact }} | 娉ㄥ唽鏃堕棿: {{ item.registerDate }}
-                </div>
-                <div class="alarm-time">{{ item.applyDate }}</div>
-              </div>
-            </div>
-          </li>
-        </ul>
-        <div v-else style="text-align: center; color: #909399; padding: 20px">
-          鏆傛棤寰呭鏍告壙鍖呭晢
-        </div>
-      </div>
-    </div>
-
-    <!-- 涓儴妯悜涓ゆ爮 -->
-    <div class="dashboard-row">
-      <div class="main-panel">
-        <div class="section-title">鎵垮寘鍟嗗闀胯秼鍔�</div>
-        <Echarts
-          ref="chart"
-          :chartStyle="chartStyle"
-          :grid="grid"
-          :legend="lineLegend"
-          :series="lineSeries"
-          :tooltip="tooltipLine"
-          :xAxis="xAxis"
-          :yAxis="yAxis"
-          style="height: 300px"
-        ></Echarts>
-      </div>
-      <div class="main-panel">
-        <div class="section-title">鎵垮寘鍟嗚祫璐ㄥ垎甯�</div>
-        <div
-          style="
-            display: flex;
-            align-items: center;
-            gap: 20px;
-            justify-content: space-evenly;
-            height: 300px;
-          "
-        >
-          <div style="width: 50%">
-            <Echarts
-              ref="chart"
-              :legend="pieLegend"
-              :chartStyle="chartStylePie"
-              :series="levelPieSeries"
-              :tooltip="pieTooltip"
-            ></Echarts>
-          </div>
-          <ul class="level-list" style="width: 50%">
-            <li v-for="item in levelPieSeries[0].data" :key="item.name">
-              <div
-                style="
-                  display: flex;
-                  align-items: center;
-                  justify-content: space-between;
-                  width: 100%;
-                "
-              >
-                <div class="line" :style="{ color: item.itemStyle.color }">
-                  鈼弡{ item.name }}
-                </div>
-                <div style="width: 60px">{{ item.value }}瀹�</div>
-                <div style="width: 60px">{{ item.rate }}%</div>
-              </div>
-            </li>
-          </ul>
-        </div>
-      </div>
-    </div>
-
-    <!-- 搴曢儴妯悜涓ゆ爮 -->
-    <div class="dashboard-row">
-      <div class="main-panel">
-        <div class="section-title">鎵垮寘鍟嗙被鍨嬪垎甯�</div>
-        <Echarts
-          ref="chart"
-          :color="barColors"
-          :chartStyle="chartStyle"
-          :grid="grid"
-          :series="equipmentBarSeries"
-          :tooltip="tooltip"
-          :xAxis="equipmentXAxis"
-          :yAxis="yAxis"
-          style="height: 300px"
-        ></Echarts>
-      </div>
-      <div class="main-panel">
-        <div class="section-title">鎵垮寘鍟嗗鏍告椂鏁�</div>
-        <Echarts
-          ref="chart"
-          :color="barColors"
-          :chartStyle="chartStyle"
-          :grid="grid"
-          :series="handlingTimeSeries"
-          :tooltip="tooltip"
-          :xAxis="handlingTimeXAxis"
-          :yAxis="yAxis"
-          style="height: 300px"
-        ></Echarts>
-      </div>
-    </div>
+              {{
+                scope.row.status === "online"
+                  ? "鍦ㄧ嚎"
+                  : scope.row.status === "warning"
+                  ? "棰勮"
+                  : "鏁呴殰"
+              }}
+            </el-tag>
+          </template>
+        </el-table-column>
+        <el-table-column
+          prop="temperature"
+          label="娓╁害(鈩�)"
+          width="100"
+        ></el-table-column>
+        <el-table-column
+          prop="pressure"
+          label="鍘嬪姏(MPa)"
+          width="100"
+        ></el-table-column>
+        <el-table-column
+          prop="speed"
+          label="杞��(rpm)"
+          width="100"
+        ></el-table-column>
+        <el-table-column prop="health" label="鍋ュ悍搴�" width="120">
+          <template #default="scope">
+            <el-progress
+              :percentage="scope.row.health"
+              :stroke-width="10"
+            ></el-progress>
+          </template>
+        </el-table-column>
+      </el-table>
+    </el-card>
   </div>
 </template>
 
 <script setup>
-import { ref, onMounted, reactive, computed } from "vue";
-import Echarts from "@/components/Echarts/echarts.vue";
-import { Clock } from "@element-plus/icons-vue";
+import { ref, onMounted, onUnmounted } from "vue";
+import * as echarts from "echarts";
 
-// 褰撳墠鏃堕棿
-const currentTime = computed(() => {
-  const now = new Date();
-  return now.toLocaleString("zh-CN");
-});
+// 缁熻鏁版嵁
+const onlineRate = ref(85);
+const onlineCount = ref(170);
+const totalDevices = ref(200);
+const warningCount = ref(23);
+const highRiskCount = ref(5);
+const mediumRiskCount = ref(12);
+const lowRiskCount = ref(6);
+const pendingOrders = ref(15);
+const processingOrders = ref(8);
+const completedOrders = ref(45);
+const normalDevices = ref(162);
+const abnormalDevices = ref(18);
+const faultDevices = ref(10);
 
-// 鎵垮寘鍟嗙粺璁℃暟鎹�
-const contractorStats = reactive({
-  total: 156,
-  approved: 132,
-  pending: 24,
-  aPending: 8,
-  bPending: 12,
-  cPending: 4,
-  monthly: 28,
-  monthly鍚屾瘮: "+18.5",
-  monthly鐜瘮: "+5.2",
-});
-
-// 寰呭鏍告壙鍖呭晢鍒楄〃
-const pendingContractors = ref([
+// 閲嶇偣璁惧鍒楄〃
+const keyDevices = ref([
   {
-    id: 1,
-    name: "寤虹瓚宸ョ▼鏈夐檺鍏徃",
-    type: "寤虹瓚鏂藉伐",
-    contact: "寮犱笁",
-    registerDate: "2025-01-15",
-    applyDate: "2025-12-16 14:30:23",
-    level: "A",
+    name: "绌哄帇鏈篈-001",
+    model: "KA-200",
+    ip: "192.168.1.101",
+    status: "online",
+    temperature: 42,
+    pressure: 0.8,
+    speed: 1450,
+    health: 92,
   },
   {
-    id: 2,
-    name: "鏈虹數瀹夎宸ョ▼鍏徃",
-    type: "鏈虹數瀹夎",
-    contact: "鏉庡洓",
-    registerDate: "2025-03-20",
-    applyDate: "2025-12-16 14:28:15",
-    level: "B",
+    name: "鍐峰嵈濉擝-002",
+    model: "CT-300",
+    ip: "192.168.1.102",
+    status: "warning",
+    temperature: 58,
+    pressure: 0.6,
+    speed: 980,
+    health: 75,
   },
   {
-    id: 3,
-    name: "瑁呴グ瑁呬慨宸ョ▼鍏徃",
-    type: "瑁呴グ瑁呬慨",
-    contact: "鐜嬩簲",
-    registerDate: "2025-05-10",
-    applyDate: "2025-12-16 14:22:18",
-    level: "B",
+    name: "姘存车C-003",
+    model: "WP-150",
+    ip: "192.168.1.103",
+    status: "online",
+    temperature: 38,
+    pressure: 1.2,
+    speed: 1200,
+    health: 88,
   },
   {
-    id: 4,
-    name: "缁垮寲宸ョ▼鏈夐檺鍏徃",
-    type: "鍥灄缁垮寲",
-    contact: "璧靛叚",
-    registerDate: "2025-08-05",
-    applyDate: "2025-12-16 14:18:55",
-    level: "C",
+    name: "鍙戠數鏈篋-004",
+    model: "GE-500",
+    ip: "192.168.1.104",
+    status: "danger",
+    temperature: 75,
+    pressure: 0.5,
+    speed: 1500,
+    health: 60,
+  },
+  {
+    name: "鍙樺帇鍣‥-005",
+    model: "TR-1000",
+    ip: "192.168.1.105",
+    status: "online",
+    temperature: 45,
+    pressure: 0,
+    speed: 0,
+    health: 95,
   },
 ]);
 
-// 鍥捐〃鏍峰紡
-const chartStyle = {
-  width: "100%",
-  height: "100%",
+// 鍥捐〃寮曠敤
+const healthChartRef = ref(null);
+const faultChartRef = ref(null);
+let healthChart = null;
+let faultChart = null;
+
+// 鍋ュ悍搴﹁秼鍔挎暟鎹�
+const healthTrendData = {
+  dates: ["12-10", "12-11", "12-12", "12-13", "12-14", "12-15", "12-16"],
+  values: [88, 90, 85, 87, 92, 91, 93],
 };
 
-const chartStylePie = {
-  width: "100%",
-  height: "100%",
+// 鏁呴殰绫诲瀷缁熻鏁版嵁
+const faultTypeData = {
+  types: ["娓╁害寮傚父", "鍘嬪姏瓒呮爣", "杞�熷紓甯�", "鎸姩杩囧ぇ", "鍏朵粬"],
+  values: [15, 8, 12, 6, 3],
 };
 
-const grid = {
-  left: "3%",
-  right: "4%",
-  bottom: "3%",
-  containLabel: true,
-};
-
-// 鎵垮寘鍟嗗闀胯秼鍔� - 鎶樼嚎鍥�
-const lineLegend = {
-  show: true,
-  data: ["A绾�", "B绾�", "C绾�"],
-};
-
-const tooltipLine = {
-  trigger: "axis",
-  axisPointer: {
-    type: "cross",
-  },
-};
-
-const xAxis = ref({
-  type: "category",
-  data: ["12-01", "12-02", "12-03", "12-04", "12-05", "12-06", "12-07"],
-});
-
-const yAxis = ref({
-  type: "value",
-  name: "鎵垮寘鍟嗘暟閲�",
-});
-
-const lineSeries = ref([
-  {
-    name: "A绾�",
-    type: "line",
-    data: [15, 18, 20, 22, 25, 28, 30],
-    itemStyle: {
-      color: "#f56c6c",
-    },
-    lineStyle: {
-      width: 2,
-    },
-    showSymbol: true,
-  },
-  {
-    name: "B绾�",
-    type: "line",
-    data: [45, 52, 58, 65, 70, 75, 80],
-    itemStyle: {
-      color: "#e6a23c",
-    },
-    lineStyle: {
-      width: 2,
-    },
-    showSymbol: true,
-  },
-  {
-    name: "C绾�",
-    type: "line",
-    data: [30, 35, 40, 45, 50, 55, 60],
-    itemStyle: {
-      color: "#67c23a",
-    },
-    lineStyle: {
-      width: 2,
-    },
-    showSymbol: true,
-  },
-]);
-
-// 鎵垮寘鍟嗚祫璐ㄥ垎甯� - 楗煎浘
-const pieLegend = {
-  show: false,
-};
-
-const pieTooltip = {
-  trigger: "item",
-  formatter: "{b}: {c}瀹� ({d}%)",
-};
-
-const levelPieSeries = ref([
-  {
-    type: "pie",
-    radius: ["60%", "80%"],
-    avoidLabelOverlap: false,
-    itemStyle: {
-      borderColor: "#fff",
-      borderWidth: 2,
-    },
-    label: {
-      show: false,
-    },
-    data: [
-      {
-        name: "A绾�",
-        value: 45,
-        rate: 28.85,
-        itemStyle: { color: "#f56c6c" },
+// 鍒濆鍖栧仴搴峰害瓒嬪娍鍥�
+const initHealthChart = () => {
+  if (healthChartRef.value) {
+    healthChart = echarts.init(healthChartRef.value);
+    const option = {
+      tooltip: {
+        trigger: "axis",
+        axisPointer: {
+          type: "cross",
+          label: {
+            backgroundColor: "#6a7985",
+          },
+        },
       },
-      {
-        name: "B绾�",
-        value: 70,
-        rate: 44.87,
-        itemStyle: { color: "#e6a23c" },
+      grid: {
+        left: "3%",
+        right: "4%",
+        bottom: "3%",
+        containLabel: true,
       },
-      {
-        name: "C绾�",
-        value: 41,
-        rate: 26.28,
-        itemStyle: { color: "#67c23a" },
+      xAxis: {
+        type: "category",
+        boundaryGap: false,
+        data: healthTrendData.dates,
       },
-    ],
-  },
-]);
-
-// 鎵垮寘鍟嗙被鍨嬪垎甯� - 鏌辩姸鍥�
-const barColors = ["#409eff", "#67c23a", "#e6a23c", "#f56c6c", "#909399"];
-
-const tooltip = {
-  trigger: "axis",
-  axisPointer: {
-    type: "shadow",
-  },
-};
-
-const equipmentXAxis = ref({
-  type: "category",
-  data: ["寤虹瓚鏂藉伐", "鏈虹數瀹夎", "瑁呴グ瑁呬慨", "鍥灄缁垮寲", "鍏朵粬"],
-});
-
-const equipmentBarSeries = ref([
-  {
-    name: "鎵垮寘鍟嗘暟閲�",
-    type: "bar",
-    data: [45, 35, 25, 20, 31],
-    itemStyle: {
-      color: function (params) {
-        return barColors[params.dataIndex % barColors.length];
+      yAxis: {
+        type: "value",
+        min: 70,
+        max: 100,
+        name: "鍋ュ悍搴�(%)",
       },
-    },
-    label: {
-      show: true,
-      position: "top",
-    },
-  },
-]);
-
-// 鎵垮寘鍟嗗鏍告椂鏁堝垎鏋� - 鏌辩姸鍥�
-const handlingTimeXAxis = ref({
-  type: "category",
-  data: ["0-1澶�", "1-3澶�", "3-7澶�", "7澶╀互涓�"],
-});
-
-const handlingTimeSeries = ref([
-  {
-    name: "瀹℃牳鏁伴噺",
-    type: "bar",
-    data: [85, 45, 20, 10],
-    itemStyle: {
-      color: function (params) {
-        return barColors[params.dataIndex % barColors.length];
-      },
-    },
-    label: {
-      show: true,
-      position: "top",
-    },
-  },
-]);
-
-// 鑾峰彇鎵垮寘鍟嗙骇鍒牱寮�
-const getContractorLevelType = (level) => {
-  switch (level) {
-    case "A":
-      return "danger";
-    case "B":
-      return "warning";
-    case "C":
-      return "info";
-    default:
-      return "info";
+      series: [
+        {
+          name: "鍋ュ悍搴�",
+          type: "line",
+          stack: "鎬婚噺",
+          areaStyle: {},
+          emphasis: {
+            focus: "series",
+          },
+          data: healthTrendData.values,
+          itemStyle: {
+            color: "#67c23a",
+          },
+          lineStyle: {
+            width: 3,
+          },
+        },
+      ],
+    };
+    healthChart.setOption(option);
   }
 };
 
+// 鍒濆鍖栨晠闅滅被鍨嬬粺璁¢ゼ鍥�
+const initFaultChart = () => {
+  if (faultChartRef.value) {
+    faultChart = echarts.init(faultChartRef.value);
+    const option = {
+      tooltip: {
+        trigger: "item",
+      },
+      legend: {
+        orient: "vertical",
+        left: "left",
+      },
+      series: [
+        {
+          name: "鏁呴殰绫诲瀷",
+          type: "pie",
+          radius: "50%",
+          data: faultTypeData.types.map((type, index) => ({
+            name: type,
+            value: faultTypeData.values[index],
+          })),
+          emphasis: {
+            itemStyle: {
+              shadowBlur: 10,
+              shadowOffsetX: 0,
+              shadowColor: "rgba(0, 0, 0, 0.5)",
+            },
+          },
+        },
+      ],
+    };
+    faultChart.setOption(option);
+  }
+};
+
+// 鐩戝惉绐楀彛澶у皬鍙樺寲锛岃皟鏁村浘琛ㄥぇ灏�
+const handleResize = () => {
+  healthChart?.resize();
+  faultChart?.resize();
+};
+
 onMounted(() => {
-  // 椤甸潰鍔犺浇瀹屾垚鍚庣殑鍒濆鍖栨搷浣�
+  initHealthChart();
+  initFaultChart();
+  window.addEventListener("resize", handleResize);
+});
+
+onUnmounted(() => {
+  window.removeEventListener("resize", handleResize);
+  healthChart?.dispose();
+  faultChart?.dispose();
 });
 </script>
 
 <style scoped>
-.dashboard {
-  background: #f5f7fa;
+.dashboard-container {
+  padding: 20px;
+  background-color: #f5f7fa;
   min-height: 100vh;
-  padding: 20px;
-  box-sizing: border-box;
 }
 
-.dashboard-top {
-  display: flex;
-  gap: 20px;
-  margin-bottom: 20px;
+.statistics-card {
+  height: 180px;
 }
 
-.system-info {
+.card-content {
   display: flex;
   flex-direction: column;
-  gap: 8px;
-  padding: 20px;
-  min-width: 0;
-  background-color: #eff2fb;
-  border-radius: 12px;
-  height: 138px;
-}
-
-.system-card {
-  display: flex;
-  flex-direction: column;
-  gap: 10px;
-  position: relative;
-  padding-right: 15px;
-}
-
-.system-name {
-  font-weight: 600;
-  font-size: 18px;
-  color: #161a9a;
-}
-
-.system-meta {
-  font-weight: 400;
-  font-size: 12px;
-  color: #818185;
-}
-
-.data-cards {
-  display: flex;
-  gap: 16px;
-  justify-content: flex-start;
-  background: #ffffff;
-  border-radius: 12px;
-  padding: 20px;
-}
-
-.data-card {
-  background: #fff;
-  border-radius: 12px;
-  padding: 16px;
-  min-width: 160px;
-  box-shadow: 0 2px 8px #eee;
-  display: flex;
-  flex-direction: column;
-  align-items: center;
+  height: 100%;
   justify-content: center;
-  width: 32%;
-  height: 140px;
-  transition: all 0.3s ease;
+  align-items: center;
 }
 
-.data-card:hover {
-  transform: translateY(-2px);
-  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
-}
-
-.data-card.total {
-  background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
-  color: #fff;
-}
-
-.data-card.pending {
-  background: linear-gradient(135deg, #f56c6c 0%, #f78989 100%);
-  color: #fff;
-}
-
-.data-card.today {
-  background: linear-gradient(135deg, #67c23a 0%, #85ce61 100%);
-  color: #fff;
-}
-
-.data-title {
-  font-weight: 600;
+.card-title {
   font-size: 16px;
-  margin-bottom: 12px;
+  color: #606266;
+  margin-bottom: 10px;
 }
 
-.data-value {
+.card-value {
   font-size: 32px;
   font-weight: bold;
+  color: #303133;
   margin-bottom: 8px;
 }
 
-.data-desc {
-  font-size: 12px;
-  opacity: 0.9;
-}
-
-.top-left {
-  display: flex;
-  flex-direction: column;
-  gap: 20px;
-  width: 60%;
-}
-
-.alarm-panel {
-  background: #fff;
-  border-radius: 12px;
-  padding: 20px;
-  width: 40%;
-}
-
-.alarm-list {
-  list-style: none;
-  padding: 0;
-  margin: 0;
+.card-desc {
   font-size: 14px;
-  overflow-y: auto;
-  height: 260px;
-}
-
-.alarm-list li {
-  border-radius: 8px;
-  margin-bottom: 12px;
-  padding: 12px 20px;
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-  background: #f8f9fa;
-  border-left: 4px solid #409eff;
-  transition: all 0.3s ease;
-}
-
-.alarm-list li:hover {
-  background: #e9ecef;
-  transform: translateX(4px);
-}
-
-.alarm-title {
-  font-weight: 600;
-  font-size: 14px;
-  color: #303133;
-}
-
-.alarm-value {
-  font-size: 12px;
-  color: #606266;
-}
-
-.alarm-time {
-  font-size: 12px;
   color: #909399;
 }
 
-.dashboard-row {
+.card-header {
   display: flex;
-  gap: 20px;
-  margin-bottom: 20px;
+  justify-content: space-between;
+  align-items: center;
 }
 
-.main-panel {
-  background: #fff;
-  border-radius: 12px;
-  padding: 20px;
-  flex: 1;
-  min-width: 0;
-  display: flex;
-  flex-direction: column;
-}
-
-.section-title {
-  position: relative;
-  font-size: 18px;
-  color: #333;
-  padding-left: 10px;
-  margin-bottom: 20px;
-  font-weight: 700;
-}
-
-.section-title::before {
-  position: absolute;
-  left: 0;
-  top: 4px;
-  content: "";
-  width: 4px;
-  height: 18px;
-  background-color: #409eff;
-  border-radius: 2px;
-}
-
-.level-list {
-  margin: 0;
-  padding: 0;
-  list-style: none;
-  height: 200px;
-  overflow-y: auto;
+.chart-container {
   width: 100%;
-}
-
-.level-list li {
-  margin-bottom: 15px;
-  padding: 10px;
-  background: #f8f9fa;
-  border-radius: 6px;
-  transition: all 0.3s ease;
-}
-
-.level-list li:hover {
-  background: #e9ecef;
-}
-
-.line {
-  position: relative;
-  width: 80px;
-  font-weight: 500;
+  height: 350px;
 }
 </style>

--
Gitblit v1.9.3