Pārlūkot izejas kodu

新增主题及大唐健康评估、风资源尾流页面,定制Ai生成代码规范

liujiejie 5 mēneši atpakaļ
vecāks
revīzija
438c68f420
70 mainītis faili ar 11201 papildinājumiem un 1735 dzēšanām
  1. 17 0
      .cursor/rules/backend-rules.mdc
  2. 17 0
      .cursor/rules/frontend-rules.mdc
  3. 16 0
      .cursor/rules/project-rules.mdc
  4. 1 1
      .env.dev
  5. 4 2
      .env.dt
  6. 116 0
      docs/AI_SPECS.md
  7. 14 0
      src/components/HeaderCom.vue
  8. 25 2
      src/components/map/index.vue
  9. 11 0
      src/components/selecttree.vue
  10. 1 1
      src/icons/svg/WindPower2.svg
  11. 7 1
      src/main.js
  12. 13 12
      src/styles/base.css
  13. 37 31
      src/styles/global.scss
  14. 3 1
      src/styles/index.scss
  15. 471 0
      src/styles/legacy-theme.scss
  16. 1662 0
      src/styles/tech-theme.scss
  17. 11 2
      src/themes/blue.scss
  18. 12 2
      src/themes/dark.scss
  19. 14 4
      src/themes/green.scss
  20. 13 4
      src/themes/light.scss
  21. 77 0
      src/themes/tech-blue.scss
  22. 109 195
      src/views/admin/cockpitManage/Index.vue
  23. 1601 0
      src/views/admin/cockpitManage/cockpit-dashboard.scss
  24. 235 0
      src/views/admin/cockpitManage/component/CockpitAbnormalPanel.vue
  25. 206 0
      src/views/admin/cockpitManage/component/CockpitHealthPanel.vue
  26. 65 0
      src/views/admin/cockpitManage/component/CockpitHealthTable.vue
  27. 96 0
      src/views/admin/cockpitManage/component/CockpitTechTabs.vue
  28. 23 0
      src/views/admin/cockpitManage/component/cockpitHealthData.js
  29. 6 0
      src/views/admin/cockpitManage/component/cockpitTableMetrics.js
  30. 238 108
      src/views/admin/cockpitManage/component/leftdata.vue
  31. 206 167
      src/views/admin/cockpitManage/component/rightdata.vue
  32. 80 34
      src/views/admin/cockpitManage/component/tabroll.vue
  33. 223 0
      src/views/health/components/health/HealthHeader.vue
  34. 417 0
      src/views/health/components/health/HealthRankingPanel.vue
  35. 196 0
      src/views/health/components/health/HealthScorePanel.vue
  36. 167 0
      src/views/health/components/health/HealthSubsystemPanel.vue
  37. 327 0
      src/views/health/components/health/HealthUnitCard.vue
  38. 565 0
      src/views/health/components/health/HealthUnitDetailDrawer.vue
  39. 132 0
      src/views/health/components/health/dashboardData.js
  40. 132 0
      src/views/health/components/health/health-dashboard.scss
  41. 150 0
      src/views/health/components/health/unitDetailData.js
  42. 94 727
      src/views/health/index.vue
  43. 36 62
      src/views/health/malfunction.vue
  44. 29 18
      src/views/home/Index.vue
  45. 862 0
      src/views/home/components/MenuDt.vue
  46. 51 0
      src/views/ledger/milltype.vue
  47. 9 19
      src/views/login/Index.vue
  48. 52 95
      src/views/overview/components/analysis_information/index.vue
  49. 13 5
      src/views/overview/components/dicCard/index.vue
  50. 8 7
      src/views/overview/components/filterChart/index.vue
  51. 69 74
      src/views/overview/index.vue
  52. 70 15
      src/views/performance/components/analysisEvent.vue
  53. 4 0
      src/views/performance/components/custonAsCom/dragChart/components/chartConfig/form/chartTitle.vue
  54. 29 2
      src/views/performance/components/custonAsCom/dragChart/components/chartsAttributes.vue
  55. 26 12
      src/views/performance/components/custonAsCom/dragChart/components/chartsContent.vue
  56. 23 6
      src/views/performance/components/custonAsCom/dragChart/components/chartsData.vue
  57. 38 26
      src/views/performance/components/custonAsCom/dragChart/index.vue
  58. 33 8
      src/views/performance/customAnalysis.vue
  59. 9 5
      src/views/system/userMag/index.vue
  60. 196 87
      src/views/transition/index.vue
  61. 145 0
      src/views/windResourceWake/components/WrwFilterBar.vue
  62. 110 0
      src/views/windResourceWake/components/WrwOverviewTab.vue
  63. 83 0
      src/views/windResourceWake/components/WrwWakeTab.vue
  64. 142 0
      src/views/windResourceWake/components/WrwWakeTable.vue
  65. 131 0
      src/views/windResourceWake/data/mockData.js
  66. 166 0
      src/views/windResourceWake/index.vue
  67. 455 0
      src/views/windResourceWake/styles/windResourceWake.scss
  68. 320 0
      src/views/windResourceWake/utils/overviewChartOptions.js
  69. 274 0
      src/views/windResourceWake/utils/wakeChartOptions.js
  70. 8 0
      vue.config.js

+ 17 - 0
.cursor/rules/backend-rules.mdc

@@ -0,0 +1,17 @@
+---
+description: Node Express 服务、数据库读取、下载图表服务与后端安全规范
+alwaysApply: true
+---
+
+# Backend Rules
+
+- 后端目录包括 `server/` 和 `downLoadServer/`,均为 Node.js ESM + Express;保持现有模块拆分和 `import/export` 风格。
+- `server/index.js` 使用 `mysql2/promise` 动态连接 MySQL;不得直接硬编码数据库凭据或输出请求中的数据库密码。
+- 动态 SQL 必须校验表名、字段名和输入来源;优先使用反引号保护标识符和参数化查询,避免 SQL 注入。
+- 当前未使用 ORM 或迁移框架;任何数据库结构变更必须先给出迁移 SQL、回滚 SQL、影响范围和兼容方案。
+- `downLoadServer/src/server/server.js` 的路由按 `routes -> controllers -> utils` 组织;新增图表接口应放入对应 route/controller/util。
+- 上传、下载、MinIO、Puppeteer、临时文件、压缩包和图表渲染逻辑必须复用 `utils/chartService`、`uploadService`、`fileManager` 等已有能力。
+- 服务端接口修改必须保持原有路径、方法和响应结构兼容;新增参数必须可选,新增错误信息不得泄漏内部路径、密钥或环境变量。
+- 不得修改 PM2、nginx、部署脚本、生产端口、host 或 `.env` 配置,除非用户明确授权。
+- Express 错误处理应进入现有 `errorHandler` 或局部 `try/catch`;异步任务失败要释放资源并避免进程挂死。
+- 涉及文件系统操作时限制路径范围,避免目录穿越,临时文件应可清理。

+ 17 - 0
.cursor/rules/frontend-rules.mdc

@@ -0,0 +1,17 @@
+---
+description: Vue 2 前端代码、样式、请求、路由、状态和图表规范
+alwaysApply: true
+---
+
+# Frontend Rules
+
+- 前端使用 Vue 2.6、Vue Router 3、Vuex 3、Vue CLI 5、Element UI、SCSS;新增代码保持 Options API 写法。
+- `.vue` 文件保持现有 `template/script/style` 结构;字符串和 import 风格跟随当前文件,不进行无关格式化。
+- API 调用优先放入 `src/api/*.js` 并通过 `@/utils/request`;若所在旧模块已直接使用 `axios`,只做局部兼容修改。
+- 请求必须兼容 `src/utils/request.js` 的 token、`code === 200`、文件流和错误提示处理方式。
+- 路由遵循 `src/router/index.js` 的动态导入和环境变量切换方式;不要破坏 `/home` 子路由和 `resetRouter`。
+- Vuex 修改应放在 `src/store/` 对应模块,保持 sessionStorage 持久化路径和已有命名空间约定。
+- 样式优先使用 SCSS、已有主题变量和 `html[data-theme="..."]`;不要随意引入新的 UI 库或全局 CSS 框架。
+- 驾驶舱相关样式集中维护 `src/views/admin/cockpitManage/cockpit-dashboard.scss`,该文件为全局主题样式,不能改为 scoped。
+- ECharts、Plotly、OpenLayers 功能应复用已有组件、mixin 和配置文件;组件销毁/路由返回时注意清理实例、监听器和定时器。
+- 新增交互必须保持 Element UI 体验一致,并兼容现有权限指令 `v-hasPermi`、主题和环境变量。

+ 16 - 0
.cursor/rules/project-rules.mdc

@@ -0,0 +1,16 @@
+---
+description: 全项目 AI 代码生成规范、复用原则与生产安全底线
+alwaysApply: true
+---
+
+# Project Rules
+
+- AI 必须优先遵守 `docs/AI_SPECS.md`,生成代码前先理解现有目录、技术栈和局部实现风格。
+- 优先复用已有组件、工具函数、API 封装、Vuex 模块、SCSS 变量、图表配置和服务端工具;不要为单个需求创建新的架构方案。
+- 保持现有 JavaScript / Vue 2 Options API 风格,不主动迁移到 TypeScript、Vue 3、Composition API 或其他框架。
+- 修改范围应尽量小、可回滚;不得无理由重构无关文件或格式化大文件。
+- 不得输出、复制或硬编码密钥、token、数据库密码、MinIO 凭据、私有服务口令或 `.env*` 中的敏感值。
+- 禁止修改 PM2 配置、部署脚本、nginx 配置、生产环境变量和代理目标,除非用户明确要求并确认风险。
+- 修改接口必须保持兼容:原 URL、请求方法、字段名、返回结构不破坏;新增字段必须可选并兼容旧数据。
+- 涉及数据库结构或数据迁移时,先生成迁移方案、回滚方案和兼容性说明,不得直接改库。
+- 修改后优先使用项目现有 lint/构建/局部验证方式;无法验证时必须说明风险。

+ 1 - 1
.env.dev

@@ -7,7 +7,7 @@
  # @FilePath: /performance-test/.env.dev
 #这里需要在router/index.js 文件中进行判断cockpitComponent;
 #VUE_APP_HOME_COM="../views/admin/cockpitManage/Index.vue"
-VUE_APP_THEM="green"
+VUE_APP_THEM="tech-blue"
 VUE_APP_ISSHOWHD='default'
 VUE_APP_Helath='dev'
 VUE_APP_TITLE='机组功率曲线异常检测数据分析系统'

+ 4 - 2
.env.dt

@@ -1,8 +1,8 @@
 ###
  # @Author: your name
  # @Date: 2026-03-06 11:19:04
- # @LastEditTime: 2026-03-06 11:19:28
- # @LastEditors: bogon
+ # @LastEditTime: 2026-06-03 15:04:27
+ # @LastEditors: milo-MacBook-Pro.local
  # @Description: In User Settings Edit
  # @FilePath: /performance-test/.env.dt
 ### 
@@ -33,6 +33,8 @@ VUE_APP_UPLOAD="http://192.168.50.235/energy-manage-service/api/check/upload"
 VUE_APP_MAPVIEW=/tiles/{z}/{x}/{y}.png
 VUE_APP_MAP=http://192.168.50.235
 VUE_APP_APIPROXY='http://192.168.50.235:16200'
+#大唐健康评估-异常检测-风机尾流
+VUE_APP_healthAPIPROXY='http://192.168.5.4:16880'
 VUE_APP_WZLAPIPROXY='http://192.168.50.241:9002'
 # VUE_APP_ETLAPIPROXY='http://192.168.50.241:9002'
 VUE_APP_ETLAPIPROXY='http://192.168.50.241:9000/transDataWebProd/'

+ 116 - 0
docs/AI_SPECS.md

@@ -0,0 +1,116 @@
+# AI Specs
+
+本文档用于约束 AI 在本项目中生成、修改和审查代码时的行为。所有 AI 输出应优先保持现有实现方式、目录组织和编码风格一致,避免引入不必要的新架构。
+
+## 项目概览
+
+- 项目名称:风机数据管理平台(`pref-web` / `performance-test`)。
+- 主体是 Vue 2 前端工程,基于 Vue CLI 5 构建。
+- 仓库内包含两个 Node.js 服务:
+  - `server/`:Express + mysql2 的数据库读取服务。
+  - `downLoadServer/`:Express 图表/报告下载服务,包含 ECharts、Plotly、Puppeteer、MinIO、DOCX 等能力。
+- 项目通过多套 `.env.*` 与 `vue.config.js` 代理区分不同环境和客户模式。
+
+## 技术栈
+
+### 前端
+
+- Vue `^2.6.14`
+- Vue Router `^3.5.1`
+- Vuex `^3.6.2`
+- Vue CLI Service `~5.0.0`
+- Element UI `^2.15.14`
+- SCSS / Sass,入口样式位于 `src/styles/index.scss`
+- Tailwind CSS PostCSS 7 兼容版本
+- ECharts `^5.5.1`、ECharts GL `^2.0.9`
+- OpenLayers `ol ^9.2.3`
+- Axios `^1.6.8`
+- DataV、Quill、WangEditor、Vue Virtual Scroller、Vue Draggable Resizable 等
+
+### 服务端
+
+- `server/`:Node.js ESM、Express `^4.21.1`、mysql2 `^3.11.5`
+- `downLoadServer/`:Node.js ESM、Express `^4.19.1`、CORS、dotenv、multer、archiver、docx/docxtemplater、Puppeteer、MinIO、Plotly/ECharts
+
+## 目录结构
+
+- `src/main.js`:Vue 入口,注册 Element UI、全局组件、指令、主题、日期工具和路由守卫。
+- `src/router/index.js`:Vue Router 配置,按环境变量切换驾驶舱组件。
+- `src/store/`:Vuex 模块,使用 `vuex-persistedstate` 持久化部分模块。
+- `src/api/`:前端接口封装,优先通过 `@/utils/request` 统一请求。
+- `src/utils/request.js`:Axios 实例、token 注入、响应错误处理和统一请求函数。
+- `src/views/`:业务页面,按模块组织,如 `admin/cockpitManage`、`performance`、`health`、`overview`。
+- `src/components/`:通用组件,包括地图、虚拟列表、富文本、SVG 等。
+- `src/assets/js/constants/echarts-config/`:图表配置模板。
+- `src/styles/`、`src/themes/`:全局样式和主题样式。
+- `server/index.js`:数据库读取服务入口。
+- `downLoadServer/src/server/`:下载服务入口、路由、控制器、中间件和图表工具。
+- `public/runtime-config.js`:运行时配置。
+
+## 编码风格
+
+- 前端主要使用 Vue 2 Options API(`data`、`computed`、`watch`、`methods`、生命周期钩子)。
+- `.vue` 文件通常采用单文件组件结构:`template`、`script`、`style lang="scss"`。
+- 现有代码以 JavaScript 为主,不使用 TypeScript。
+- 字符串多使用双引号;分号保留。
+- 业务接口函数使用具名导出,例如 `export function getWindFieldNames(data) { ... }`。
+- 组件和页面命名混合使用 PascalCase 与业务英文/拼音名;新增代码应优先跟随所在目录命名风格。
+- 样式优先沿用 SCSS、CSS 变量和已有主题选择器,例如 `html[data-theme="tech-blue"]`。
+- 大屏/驾驶舱样式集中在 `cockpit-dashboard.scss`,该文件为全局样式,不能随意改为 scoped。
+- 图表逻辑大量使用 ECharts/Plotly 配置对象,应复用已有图表配置和 mixin。
+
+## 框架版本与构建方式
+
+- 构建命令来自根目录 `package.json`:
+  - `serve:dev`、`serve:hd`、`serve:dt`、`serve:demo`、`serve:jl`
+  - `build:dev`、`build:hd`、`build:dt`、`build:demo`、`build:jl`
+- `vue.config.js` 使用 Vue CLI 配置:
+  - `@` 指向 `src`
+  - `svg-sprite-loader` 处理 `src/icons`
+  - Workbox 生成 Service Worker
+  - `devServer.proxy` 代理 `/api`、`/WZLapi`、`/ETLapi`、`/tiles`、`/AnalysisMulti`、`/transDataWeb`、`/sAlgorithm`、`/databaseApi`、`/downLoadChart`
+
+## API 组织方式
+
+- 前端统一请求优先使用 `src/utils/request.js`。
+- `request` 默认 `baseURL` 为 `window?._BASE_CONFIG?.API || "/api"`。
+- 请求拦截器从 `sessionStorage.vuex.auth.userInfo.token` 注入 `headers.token`。
+- 响应拦截器期望后端返回 `code === 200`,否则使用 Element UI `Message` 提示并 reject。
+- `src/api/*.js` 按业务模块组织 API 函数。
+- 少量旧代码仍直接使用 `axios.get/post`,修改时优先保持局部兼容,不应大范围重写。
+
+## 数据库使用方式
+
+- 前端本身不直接连接数据库。
+- `server/index.js` 使用 `mysql2/promise` 动态创建连接池。
+- 数据库连接参数来自请求参数或请求体(`IP`、`host`、`baseName`、`username`、`password`)。
+- SQL 主要使用 `SHOW TABLES`、`DESCRIBE`、`SHOW COLUMNS`、`SELECT ... LIMIT 500`。
+- 当前未发现 ORM 或数据库迁移框架。
+- 涉及数据库结构变更时,必须先输出迁移方案、回滚方案和兼容性评估,不得直接修改生产数据。
+
+## 生产环境安全规范
+
+- 禁止修改 PM2 配置。
+- 禁止修改部署脚本。
+- 禁止修改 nginx 配置。
+- 禁止输出包含密钥、token、数据库密码、MinIO 凭据、私有地址口令的信息。
+- 禁止将 `.env*`、`downLoadServer/.env` 中的敏感内容复制到回答或新文件。
+- 修改接口时必须保持兼容:保留原 URL、请求方法、字段名和返回结构,新增字段必须可选。
+- 涉及数据库变更必须先生成迁移方案和回滚方案,并等待确认。
+- 不得在未授权情况下修改 `public/runtime-config.js`、环境变量、代理目标或构建/部署命令。
+
+## AI 生成代码原则
+
+1. 优先查找并复用已有组件、工具函数、API 封装、样式变量和图表配置。
+2. 不要为了单个需求引入新框架、新状态管理、新请求库或新 UI 库。
+3. 对已有复杂页面只做局部、可回滚修改,避免重构式改写。
+4. 修改接口调用时优先放在 `src/api/*.js`,除非所在模块已有直接 `axios` 风格。
+5. 新增样式应优先作用于明确作用域,避免污染全局;驾驶舱主题例外,应维护 `cockpit-dashboard.scss` 的主题结构。
+6. 不输出密钥,不读取或展示 `.env` 内容中的具体敏感值。
+7. 变更后应检查相关文件 lint;如无法运行完整测试,应说明未验证项。
+
+## 规则文件映射
+
+- `.cursor/rules/project-rules.mdc`:全项目通用规则、复用原则和生产安全底线。
+- `.cursor/rules/frontend-rules.mdc`:Vue 2 前端、样式、请求、路由、状态、图表与大屏页面规则。
+- `.cursor/rules/backend-rules.mdc`:`server/` 与 `downLoadServer/` 的 Express、数据库、文件上传、图表导出与安全规则。

+ 14 - 0
src/components/HeaderCom.vue

@@ -5,6 +5,7 @@
       <h2 class="conversion">中国大唐集团公司</h2> -->
     </div>
     <div class="personalCenter">
+      <div id="header-page-tools" class="header-page-tools"></div>
       <!-- <p class="current-time">{{ currentDate }}</p> -->
       <el-popover
         placement="bottom"
@@ -115,6 +116,7 @@ export default {
       currentDate: "",
       currentTheme: this.$store.state.themes.theme,
       colorData: [
+        { lable: "科技蓝", value: "tech-blue", color: "#1890ff" },
         { lable: "黄色", value: "light", color: "#82780ccf" },
         { lable: "深色", value: "dark", color: "#607d8b" },
         { lable: "绿色", value: "green", color: "#008080" },
@@ -221,6 +223,18 @@ export default {
   .personalCenter {
     display: flex;
     align-items: center;
+    color: var(--text-cyan, #52c8f2);
+
+    .header-page-tools {
+      display: flex;
+      align-items: center;
+      margin-right: 16px;
+
+      &:empty {
+        display: none;
+        margin-right: 0;
+      }
+    }
 
     .current-time {
       font-size: 12px;

+ 25 - 2
src/components/map/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="map-container">
-    <div id="map" class="map"></div>
+    <div ref="mapRoot" class="map"></div>
     <!-- 以下为悬浮信息等 -->
     <div
       v-if="hoverInfo"
@@ -211,6 +211,7 @@ export default {
   name: "T-map",
   data() {
     return {
+      map: null,
       dialogVisible: false,
       tableData: [],
       hoverInfo: null,
@@ -243,7 +244,7 @@ export default {
   },
   mounted() {
     this.map = new Map({
-      target: "map",
+      target: this.$refs.mapRoot,
       view: new View({
         projection: "EPSG:4326",
         center: fromLonLat([116.389, 39.903]),
@@ -311,6 +312,28 @@ export default {
     // }
     // 这个放在外面
     this.initEvent();
+    this.$nextTick(() => {
+      if (this.map) {
+        this.map.updateSize();
+      }
+    });
+  },
+  activated() {
+    if (!this.map) return;
+    this.map.setTarget(this.$refs.mapRoot || null);
+    this.$nextTick(() => {
+      this.map && this.map.updateSize();
+    });
+  },
+  deactivated() {
+    if (this.map) {
+      this.map.setTarget(null);
+    }
+  },
+  beforeDestroy() {
+    if (this.map) {
+      this.map.setTarget(null);
+    }
   },
   methods: {
     onHoverLeave() {

+ 11 - 0
src/components/selecttree.vue

@@ -6,6 +6,7 @@
       v-model="newVal"
       :placeholder="placeholder"
       :filter-method="filterTree"
+      :popper-class="popperClassName"
       @change="$forceUpdate()"
       @clear="clear"
       popper-append-to-body
@@ -56,6 +57,10 @@ export default {
       type: String,
       default: "", // 可选:'medium' | 'small' | 'mini'
     },
+    popperClass: {
+      type: String,
+      default: "",
+    },
     defaultParentProps: {
       type: Object,
       default: () => {
@@ -123,6 +128,12 @@ export default {
       this.$options.components
     ).ElSelect.options.methods.handleFocus = () => {};
   },
+  computed: {
+    popperClassName() {
+      const base = "selecttree-popper";
+      return this.popperClass ? `${base} ${this.popperClass}` : base;
+    },
+  },
   mounted() {},
   methods: {
     //节点选择事件

+ 1 - 1
src/icons/svg/WindPower2.svg

@@ -1 +1 @@
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1736736328501" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2127" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M1011.26 691.3L726.42 539.69l-71.33 0.48-43.32-14.49c-12 21.34-34.76 39-71.94 41.78l468.54 164.7 10.88-11.5c9.16-9.72 5.83-22-8-29.43v0.06zM37.27 706.52l315.62-100L395.2 558.41l39.82-20.35c-13.15-20.87-16.39-46.74 3.3-73.31L0 680.06l4.45 14.2c3.78 12 17.47 17.09 32.88 12.3h-0.06zM530.2 18.35l-57 285.76 28 55 0.76 40.09c28.13 1.07 56.38 11.83 73.73 39.53l0.62-433.89-16.86-4C545.2-2.5 533.02 4.8 530.15 18.37h0.07zM512.2 549.87a59.71 59.71 0 0 0 29.45-111.19 58.34 58.34 0 0 0-58.88 0A59.71 59.71 0 0 0 512.2 549.87zM553.33 617.55L492.67 572a80.82 80.82 0 0 1-17-11l-30 463 131.17-0.81-23.51-405.64z" fill="#707070" p-id="2128"></path></svg>
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1736736328501" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2127" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M1011.26 691.3L726.42 539.69l-71.33 0.48-43.32-14.49c-12 21.34-34.76 39-71.94 41.78l468.54 164.7 10.88-11.5c9.16-9.72 5.83-22-8-29.43v0.06zM37.27 706.52l315.62-100L395.2 558.41l39.82-20.35c-13.15-20.87-16.39-46.74 3.3-73.31L0 680.06l4.45 14.2c3.78 12 17.47 17.09 32.88 12.3h-0.06zM530.2 18.35l-57 285.76 28 55 0.76 40.09c28.13 1.07 56.38 11.83 73.73 39.53l0.62-433.89-16.86-4C545.2-2.5 533.02 4.8 530.15 18.37h0.07zM512.2 549.87a59.71 59.71 0 0 0 29.45-111.19 58.34 58.34 0 0 0-58.88 0A59.71 59.71 0 0 0 512.2 549.87zM553.33 617.55L492.67 572a80.82 80.82 0 0 1-17-11l-30 463 131.17-0.81-23.51-405.64z" fill="currentColor" p-id="2128"></path></svg>

+ 7 - 1
src/main.js

@@ -139,6 +139,11 @@ window.addEventListener("beforeunload", () => {
   // 调用清空 Vuex 仓库的 Action
   store.commit("dragChart/clearchart");
 });
+document.documentElement.setAttribute(
+  "data-theme",
+  store.state.themes.theme || process.env.VUE_APP_THEM || "green",
+);
+
 new Vue({
   router,
   store,
@@ -156,13 +161,14 @@ new Vue({
   methods: {
     async applyTheme(theme, oldTheme) {
       const themeFile = theme || this.$store.state.themes.theme;
+      document.documentElement.setAttribute("data-theme", themeFile);
       // 动态加载新的主题样式
       try {
         // 动态导入 SCSS 文件
         const theme = await import(`@/themes/${themeFile}.scss`);
 
         Vue.prototype.$backgroundColor = getComputedStyle(
-          document.documentElement
+          document.documentElement,
         ).getPropertyValue("--background-color");
 
         // 移除之前的主题样式

+ 13 - 12
src/styles/base.css

@@ -99,7 +99,7 @@ summary {
 
 a {
   background-color: transparent;
-  color: #333;
+  color: var(--primary-color, #1890ff);
 }
 
 a:active,
@@ -130,7 +130,8 @@ small {
 }
 
 input:-webkit-autofill {
-  -webkit-box-shadow: 0 0 0 1000px white inset;
+  -webkit-box-shadow: 0 0 0 1000px #000c17 inset !important;
+  -webkit-text-fill-color: #52c8f2 !important;
 }
 
 sub,
@@ -220,9 +221,8 @@ input {
 }
 
 body {
-  background: #ffffff;
-  /* font-size: 22px; */
-  color: #333;
+  background: var(--content-bg, #f5f7fa);
+  color: var(--text-cyan, #303133);
   font-family: "HYQiHei", "Helvetica Neue", Helvetica, Arial, "PingFang SC",
     "Hiragino Sans GB", "Heiti SC", "MicrosoftYaHei", "WenQuanYi Micro Hei",
     sans-serif;
@@ -249,18 +249,19 @@ body {
 
 /* ................................... */
 
-/* 外边框 */
+/* 外边框 — 具体样式见 tech-theme.scss */
 .global-variable {
   margin: 18px;
-  padding: 10px;
-  background: #ffffff;
+  padding: 16px;
+  background: var(--panel-bg, #ffffff);
+  /* border: 1px solid var(--panel-border, rgba(0, 170, 255, 0.45)); */
   min-height: 88vh;
-  /* height: 89vh; */
+  color: var(--text-cyan, #303133);
 }
 
 /* 列表点击 */
 .Hit {
-  color: #409eff;
+  color: var(--primary-color, #1890ff);
 }
 
 /* 分页 */
@@ -299,6 +300,6 @@ body {
   margin-bottom: 10px;
 }
 
-.search-input{
+.search-input {
   width: 150px;
-}
+}

+ 37 - 31
src/styles/global.scss

@@ -1,9 +1,3 @@
-.el-button--primary,
-.el-button--primary:focus {
-  background-color: var(--primary-color) !important;
-  border-color: var(--primary-color) !important;
-  color: var(--text-color) !important;
-}
 .el-menu-item.is-active {
   color: var(--primary-color) !important;
 }
@@ -28,23 +22,21 @@
   color: var(--text-color) !important;
 }
 
-.el-dropdown-menu__item:hover,
-.el-button--primary:hover {
-  opacity: 0.7 !important;
+.el-dropdown-menu__item:hover {
+  opacity: 0.85 !important;
   border-color: var(--primary-color) !important;
   background-color: var(--bgopacity-color) !important;
   color: var(--primary-color) !important;
-  // color: var(--primary-color) !important;
 }
 
-.el-button--text {
-  color: var(--primary-color) !important;
-}
-.el-button--default:focus,
-.el-button--default:hover {
-  border-color: var(--primary-color) !important;
-  background-color: var(--bgopacity-color) !important;
-  color: var(--primary-color) !important;
+.el-button--text,
+.el-button--text:hover,
+.el-button--text:focus {
+  color: var(--table-cell-text, var(--text-cyan, #b7dff5)) !important;
+  background: transparent !important;
+  border: none !important;
+  box-shadow: none !important;
+  text-shadow: none !important;
 }
 
 // 改变振动分析边框色
@@ -53,10 +45,12 @@
   border-bottom: 2px solid var(--primary-color) !important;
 }
 
+::v-deep .el-table .current-row > td.el-table__cell,
 ::v-deep .current-row td {
-  background-color: rgba(160, 169, 171, 0.286) !important; /* 高亮的背景颜色 */
-  color: var(--primary-color) !important;
-  font-weight: 600;
+  background-color: var(--table-row-hover-bg, #071525) !important;
+  color: var(--table-cell-text, #c8d4df) !important;
+  font-weight: 500;
+  box-shadow: inset 1px 0 0 var(--table-row-hover-line, rgba(0, 140, 200, 0.28)) !important;
 }
 
 .el-menu {
@@ -65,11 +59,18 @@
 }
 
 .el-table th.el-table__cell {
-  background-color: var(--background-color) !important;
-  color: var(--text-color) !important;
+  background: var(--table-header-bg, #9c9a3f) !important;
+  color: var(--table-header-text, #ffffff) !important;
+}
+
+.el-table td.el-table__cell {
+  color: var(--table-cell-text, #606266) !important;
 }
+
 .el-pager li.active {
-  color: var(--primary-color) !important;
+  background-color: var(--primary-color) !important;
+  border-color: var(--primary-color) !important;
+  color: #fff !important;
 }
 
 .el-tag:not(.el-tag--warning):not(.el-tag--danger):not(.el-tag--info) {
@@ -95,8 +96,13 @@
 }
 
 .el-dialog__body .el-table th.el-table__cell {
-  background-color: var(--text-color) !important;
-  color: #67696d !important;
+  background: var(--table-header-bg, #001a33) !important;
+  color: var(--table-header-text, #ffffff) !important;
+}
+
+.el-dialog__body .el-table td.el-table__cell {
+  color: var(--table-cell-text, #c8d4df) !important;
+  background-color: var(--table-row-bg, #020810) !important;
 }
 .el-checkbox__input.is-checked .el-checkbox__inner,
 .el-checkbox__input.is-indeterminate .el-checkbox__inner {
@@ -105,7 +111,7 @@
   // color: var(--text-color);
 }
 .is-checked > .el-checkbox__label {
-  color: var(--primary-color) !important;
+  color: #ffffff !important;
 }
 .el-tabs__active-bar {
   background-color: var(--primary-color) !important;
@@ -148,7 +154,7 @@
 }
 
 ::v-deep .el-loading-spinner .path {
-  stroke: #009688 !important;
+  stroke: var(--primary-color) !important;
 }
 ::v-deep .el-dialog__headerbtn .el-dialog__close {
   color: #fff;
@@ -166,14 +172,14 @@
 }
 
 .scroller::-webkit-scrollbar-track {
-  background: #f1f1f1; /* 滚动条轨道颜色 */
+  background: rgba(0, 10, 30, 0.5);
 }
 
 .scroller::-webkit-scrollbar-thumb {
-  background: #888; /* 滚动条颜色 */
+  background: rgba(0, 170, 255, 0.35);
   border-radius: 4px;
 }
 
 .scroller::-webkit-scrollbar-thumb:hover {
-  background: #555; /* 滚动条悬停颜色 */
+  background: rgba(0, 170, 255, 0.55);
 }

+ 3 - 1
src/styles/index.scss

@@ -2,9 +2,11 @@
 @import "./element-ui.scss";
 @import "./tailwind.css";
 @import "./base.css";
+@import "./tech-theme.scss";
+@import "./legacy-theme.scss";
 
 body {
-  background-color: #eef1f3;
+  background-color: var(--content-bg, #f5f7fa);
 }
 
 img,

+ 471 - 0
src/styles/legacy-theme.scss

@@ -0,0 +1,471 @@
+/* 非科技蓝主题:恢复老版业务页样式(浅底 + 主题色表头/按钮) */
+html:not([data-theme="tech-blue"]) {
+  /* 自定义分析 / 图表拖拽编辑 */
+  --custom-analysis-bg: #f5f7fa;
+  --custom-analysis-text: #303133;
+  --custom-analysis-sidebar-bg: #f5f7fa;
+  --custom-analysis-border: #ebeef5;
+  --custom-analysis-tab-text: #606266;
+  --custom-analysis-tab-active-text: var(--primary-color, #82780c);
+  --custom-analysis-tab-active-bg: rgba(0, 0, 0, 0.04);
+  --custom-analysis-content-bg: #f5f7fa;
+  --drag-chart-page-bg: #f0f2f5;
+  --drag-chart-canvas-bg: #ffffff;
+  --drag-chart-canvas-border: #dcdfe6;
+  --drag-chart-panel-bg: #ffffff;
+  --drag-chart-panel-border: #ebeef5;
+  --drag-chart-text: #303133;
+  --drag-chart-label: #606266;
+  --drag-chart-muted: #909399;
+  --drag-chart-header-bg: var(--primary-color, #82780c);
+  --drag-chart-header-text: #ffffff;
+  --drag-chart-drawer-collapsed-bg: #f5f7fa;
+  --drag-chart-drawer-collapsed-text: #606266;
+  --drag-chart-drawer-collapsed-border: #dcdfe6;
+  --drag-chart-ruler-color: #909399;
+  --drag-chart-ruler-bg: #f5f7fa;
+  --drag-chart-corner-color: #606266;
+  --drag-chart-tab-text: #606266;
+  --drag-chart-tab-active-text: var(--primary-color, #82780c);
+  --drag-chart-divider: #ebeef5;
+  --drag-chart-tree-hover: #f5f7fa;
+
+  body,
+  #app {
+    background-color: var(--content-bg, #f5f7fa) !important;
+    color: var(--text-cyan, #303133);
+  }
+
+  .global-variable {
+    margin: 18px;
+    padding: 16px;
+    background: var(--panel-bg, #ffffff) !important;
+    border: 1px solid #ebeef5;
+    border-radius: 4px;
+    box-shadow: none;
+    min-height: calc(100vh - 120px);
+    color: var(--text-cyan, #303133);
+  }
+
+  .el-form-item__label {
+    color: #606266 !important;
+  }
+
+  .el-input__inner,
+  .el-textarea__inner,
+  .el-select .el-input__inner {
+    background-color: #ffffff !important;
+    border-color: #dcdfe6 !important;
+    color: #606266 !important;
+  }
+
+  .el-input__inner::placeholder,
+  .el-textarea__inner::placeholder {
+    color: #c0c4cc !important;
+  }
+
+  .el-button--primary {
+    background-color: var(--primary-color, #82780c) !important;
+    border-color: var(--primary-color, #82780c) !important;
+    color: #ffffff !important;
+  }
+
+  .el-button--primary:hover,
+  .el-button--primary:focus {
+    opacity: 0.9;
+    color: #ffffff !important;
+  }
+
+  .el-button--default {
+    background: #ffffff !important;
+    border-color: #dcdfe6 !important;
+    color: #606266 !important;
+  }
+
+  .el-table {
+    background-color: #ffffff !important;
+    color: #606266;
+  }
+
+  .el-table::before,
+  .el-table::after {
+    background-color: #ebeef5 !important;
+  }
+
+  .el-table th.el-table__cell {
+    background: var(--table-header-bg, #9c9a3f) !important;
+    color: var(--table-header-text, #ffffff) !important;
+    border-color: #ebeef5 !important;
+  }
+
+  .el-table th.el-table__cell .cell {
+    color: var(--table-header-text, #ffffff) !important;
+  }
+
+  .el-table td.el-table__cell {
+    background-color: #ffffff !important;
+    color: var(--table-cell-text, #606266) !important;
+    border-color: #ebeef5 !important;
+  }
+
+  .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
+    background-color: #fafafa !important;
+  }
+
+  .el-table tbody tr:hover > td.el-table__cell {
+    background-color: #f5f7fa !important;
+    color: var(--table-cell-text, #606266) !important;
+    box-shadow: none !important;
+  }
+
+  .el-table__empty-text {
+    color: #909399 !important;
+  }
+
+  .headerBox {
+    background: var(--header-bg, #ffffff) !important;
+    border-bottom: none !important;
+    box-shadow: none !important;
+  }
+
+  .headerBox,
+  .headerBox .header,
+  .headerBox .personalCenter {
+    color: var(--header-text-color, var(--text-color, #303133)) !important;
+  }
+
+  /* 分析概览页:老样式 Tab / 树 / 工具条 */
+  .overview-page {
+    color: #303133;
+
+    .left {
+      border-right-color: #ebeef5 !important;
+    }
+
+    .filter-tree .el-tree-node__content {
+      color: #606266;
+    }
+
+    .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content,
+    .el-tree-node.is-current > .el-tree-node__content {
+      background-color: var(--primary-color, #82780c) !important;
+      color: #ffffff !important;
+      border-radius: 4px;
+    }
+
+    .el-tree-node.is-current > .el-tree-node__content .el-tree-node__label {
+      color: #ffffff !important;
+    }
+
+    .overview-top-menu.el-menu--horizontal {
+      border-bottom: 1px solid #ebeef5 !important;
+
+      > .el-menu-item,
+      > .el-submenu .el-submenu__title {
+        color: #606266 !important;
+        background-color: transparent !important;
+        border-bottom: 2px solid transparent !important;
+      }
+
+      > .el-menu-item.is-active,
+      > .el-submenu.is-active > .el-submenu__title {
+        color: var(--primary-color, #82780c) !important;
+        background-color: transparent !important;
+        border-bottom-color: var(--primary-color, #82780c) !important;
+      }
+
+      > .el-menu-item:hover,
+      > .el-menu-item:focus,
+      > .el-submenu .el-submenu__title:hover,
+      > .el-submenu .el-submenu__title:focus {
+        color: var(--primary-color, #82780c) !important;
+        background-color: rgba(0, 0, 0, 0.03) !important;
+      }
+    }
+
+    .filterChart h3 {
+      color: #303133 !important;
+    }
+
+    .titleCharts {
+      color: #303133 !important;
+    }
+
+    .el-empty__description,
+    .el-empty__description p {
+      color: #909399 !important;
+    }
+
+    .tousutiwen_box,
+    .tousutiwen_box1 {
+      background: #ffffff;
+      border: 1px solid #dcdfe6;
+      color: #606266;
+      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
+    }
+
+    /* 分析概述(analysis_information) */
+    .analysis-info-card {
+      color: #303133 !important;
+      background: transparent !important;
+
+      .box-header,
+      .box-header-min,
+      .box-min,
+      .left .box-content-min {
+        color: #303133 !important;
+
+        h4,
+        h6 {
+          color: #303133 !important;
+        }
+      }
+
+      .box-header {
+        border-bottom-color: #ebeef5 !important;
+      }
+
+      .content {
+        border-bottom-color: #ebeef5 !important;
+      }
+
+      .headerMessage {
+        color: var(--primary-color, #82780c) !important;
+      }
+
+      .el-descriptions,
+      .el-descriptions__body,
+      .el-descriptions-item__label,
+      .el-descriptions-item__content {
+        color: #606266 !important;
+        background-color: transparent !important;
+      }
+
+      .itemAnalysisCompletionUnit {
+        border: 1px solid #dcdfe6 !important;
+        background: #ffffff !important;
+        color: #606266 !important;
+
+        span {
+          color: #606266 !important;
+        }
+
+        &:hover {
+          background: #f5f7fa !important;
+          border-color: #c0c4cc !important;
+        }
+      }
+
+      .completeAssetssType .el-tag.el-tag--warning {
+        background-color: var(--bgopacity-color, rgba(130, 120, 12, 0.12)) !important;
+        border-color: rgba(130, 120, 12, 0.35) !important;
+        color: var(--primary-color, #82780c) !important;
+      }
+
+      .analysisTypes h6 {
+        color: #303133 !important;
+        font-weight: 600 !important;
+      }
+
+      .el-empty__description,
+      .el-empty__description p {
+        color: #909399 !important;
+      }
+    }
+  }
+
+  /* 分析事件页(editAssets / analysisEvent) */
+  .analysis-event-page {
+    color: #303133;
+
+    .el-form-item__label {
+      color: #606266 !important;
+    }
+
+    .el-form-item__content {
+      color: #303133 !important;
+    }
+
+    .el-collapse-item__header {
+      background: var(--table-header-bg, #9c9a3f) !important;
+      color: #ffffff !important;
+      border-color: #ebeef5 !important;
+    }
+
+    .el-collapse-item__wrap {
+      background: #ffffff !important;
+      border-color: #ebeef5 !important;
+    }
+
+    .el-collapse-item__content {
+      color: #303133 !important;
+    }
+
+    .setting {
+      color: var(--primary-color, #82780c) !important;
+    }
+
+    .box-card {
+      border-color: #ebeef5 !important;
+      background: #ffffff !important;
+    }
+
+    .filedView {
+      background: var(--table-header-bg, #9c9a3f) !important;
+      color: #ffffff !important;
+    }
+
+    .box-card .el-card__body {
+      background: #ffffff !important;
+      color: #303133 !important;
+    }
+  }
+
+  .analysis-event-drawer {
+    .el-drawer__body {
+      background: #ffffff !important;
+      color: #303133 !important;
+    }
+
+    .drawer-section-title,
+    .drawerLeft,
+    .drawerRight,
+    .drawerRight ul,
+    .drawerRight li {
+      color: #303133 !important;
+    }
+
+    .el-checkbox__label {
+      color: #606266 !important;
+    }
+  }
+
+  .overview-menu-popup {
+    .el-menu--popup {
+      background: #ffffff !important;
+      border: 1px solid #ebeef5 !important;
+      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+    }
+
+    .el-menu-item {
+      color: #606266 !important;
+      background: transparent !important;
+
+      span {
+        color: #606266 !important;
+      }
+    }
+
+    .el-menu-item:hover,
+    .el-menu-item:focus {
+      background-color: #f5f7fa !important;
+      color: var(--primary-color, #82780c) !important;
+    }
+
+    .el-menu-item.is-active {
+      color: var(--primary-color, #82780c) !important;
+      background-color: rgba(130, 120, 12, 0.08) !important;
+    }
+  }
+
+  .el-pagination {
+    color: #606266;
+  }
+
+  .el-pager li.active {
+    background-color: var(--primary-color, #82780c) !important;
+    border-color: var(--primary-color, #82780c) !important;
+    color: #ffffff !important;
+  }
+
+  /* MessageBox / $confirm:确定按钮需主题色底 + 白字,避免白底白字看不见 */
+  .el-message-box {
+    background-color: #ffffff !important;
+    border: 1px solid #ebeef5 !important;
+
+    .el-message-box__title,
+    .el-message-box__content {
+      color: #606266 !important;
+    }
+
+    .el-message-box__btns {
+      .el-button--default {
+        background-color: #ffffff !important;
+        background-image: none !important;
+        border-color: #dcdfe6 !important;
+        color: #606266 !important;
+        text-shadow: none !important;
+        box-shadow: none !important;
+      }
+
+      .el-button--primary {
+        background-color: var(--primary-color, #82780c) !important;
+        background-image: none !important;
+        border-color: var(--primary-color, #82780c) !important;
+        color: #ffffff !important;
+        text-shadow: none !important;
+        box-shadow: none !important;
+
+        &:hover,
+        &:focus,
+        &:active {
+          background-color: var(--primary-color, #82780c) !important;
+          border-color: var(--primary-color, #82780c) !important;
+          color: #ffffff !important;
+          opacity: 0.88;
+        }
+      }
+    }
+  }
+
+  .el-dialog__footer {
+    .el-button--default {
+      background-color: #ffffff !important;
+      background-image: none !important;
+      border-color: #dcdfe6 !important;
+      color: #606266 !important;
+    }
+
+    .el-button--primary {
+      background-color: var(--primary-color, #82780c) !important;
+      background-image: none !important;
+      border-color: var(--primary-color, #82780c) !important;
+      color: #ffffff !important;
+
+      &:hover,
+      &:focus,
+      &:active {
+        background-color: var(--primary-color, #82780c) !important;
+        border-color: var(--primary-color, #82780c) !important;
+        color: #ffffff !important;
+        opacity: 0.88;
+      }
+    }
+  }
+
+  /* 自定义分析 / 图表编辑:浅色老样式 */
+  .custom-analysis-page,
+  .drag-chart-page {
+    .el-form-item__label {
+      color: var(--drag-chart-label, #606266) !important;
+    }
+
+    .el-form-item__content {
+      color: var(--drag-chart-text, #303133) !important;
+    }
+
+    .el-empty__description,
+    .el-empty__description p {
+      color: var(--drag-chart-muted, #909399) !important;
+    }
+
+    .el-select .el-input__inner,
+    .el-input__inner {
+      color: #606266 !important;
+    }
+
+    .el-input__inner::placeholder {
+      color: #c0c4cc !important;
+    }
+  }
+}

+ 1662 - 0
src/styles/tech-theme.scss

@@ -0,0 +1,1662 @@
+/* 科技蓝全局 UI — 仅在 tech-blue 主题生效 */
+html[data-theme="tech-blue"] {
+  body,
+  #app {
+    background-color: var(--content-bg) !important;
+    color: var(--text-cyan);
+  }
+
+  body {
+    color: var(--text-cyan);
+  }
+
+  .headerBox {
+    background: var(--header-bg, #001529) !important;
+    border-bottom: 1px solid var(--panel-border, rgba(0, 170, 255, 0.35)) !important;
+    box-shadow: none !important;
+    color: var(--text-cyan, #b7dff5) !important;
+
+    .header,
+    .personalCenter {
+      color: var(--text-cyan, #b7dff5) !important;
+    }
+  }
+
+a {
+  color: var(--primary-color);
+}
+
+/* 页面容器:发光边框面板 */
+.global-variable {
+  margin: 18px;
+  padding: 16px;
+  background: var(--panel-bg) !important;
+  // border: 1px solid var(--panel-border);
+  box-shadow: var(--panel-glow);
+  border-radius: 4px;
+  min-height: calc(100vh - 120px);
+  color: var(--text-cyan);
+}
+
+.pagination-container {
+  margin-top: 20px;
+  padding: 12px 0;
+}
+
+/* ========== Element UI 表单 ========== */
+.el-form-item__label {
+  color: var(--text-cyan) !important;
+}
+
+.el-input__inner,
+.el-textarea__inner {
+  background-color: var(--input-bg) !important;
+  border-color: var(--input-border) !important;
+  color: var(--text-cyan) !important;
+}
+
+.el-input__inner::placeholder,
+.el-textarea__inner::placeholder {
+  color: var(--text-muted) !important;
+}
+
+.el-input.is-disabled .el-input__inner,
+.el-textarea.is-disabled .el-textarea__inner {
+  background-color: rgba(0, 12, 23, 0.6) !important;
+  border-color: rgba(0, 170, 255, 0.15) !important;
+  color: var(--text-muted) !important;
+}
+
+.el-select .el-input__inner {
+  background-color: var(--input-bg) !important;
+}
+
+/* 日期 / 时间选择器输入框(含 daterange、datetimerange、month) */
+.el-date-editor.el-input__inner,
+.el-range-editor.el-input__inner {
+  background-color: var(--input-bg) !important;
+  border-color: var(--input-border) !important;
+  color: var(--text-cyan) !important;
+}
+
+.el-date-editor.el-input .el-input__inner {
+  background-color: var(--input-bg) !important;
+  border-color: var(--input-border) !important;
+  color: var(--text-cyan) !important;
+}
+
+.el-date-editor .el-range-input {
+  background-color: transparent !important;
+  color: var(--text-cyan) !important;
+}
+
+.el-date-editor .el-range-input::placeholder {
+  color: var(--text-muted) !important;
+}
+
+.el-date-editor .el-range-separator {
+  color: var(--text-cyan) !important;
+}
+
+.el-date-editor .el-range__icon,
+.el-date-editor .el-range__close-icon,
+.el-date-editor .el-input__prefix,
+.el-date-editor .el-input__suffix,
+.el-date-editor .el-input__icon {
+  color: rgba(183, 223, 245, 0.65) !important;
+}
+
+.el-range-editor.is-active,
+.el-range-editor.is-active:hover,
+.el-date-editor.is-active .el-input__inner,
+.el-date-editor.is-active.el-input__inner {
+  border-color: var(--primary-color, #1890ff) !important;
+}
+
+.el-range-editor.is-disabled,
+.el-date-editor.is-disabled.el-input__inner,
+.el-date-editor.is-disabled .el-input__inner {
+  background-color: rgba(0, 12, 23, 0.6) !important;
+  border-color: rgba(0, 170, 255, 0.15) !important;
+}
+
+.el-range-editor.is-disabled .el-range-input,
+.el-date-editor.is-disabled .el-range-input {
+  background-color: transparent !important;
+  color: var(--text-muted) !important;
+}
+
+.el-range-editor.is-disabled .el-range-separator {
+  color: var(--text-muted) !important;
+}
+
+.el-select-dropdown {
+  background-color: var(--panel-bg) !important;
+  border: 1px solid var(--panel-border) !important;
+}
+
+.el-select-dropdown__item {
+  color: var(--text-cyan) !important;
+}
+
+.el-select-dropdown__item.hover,
+.el-select-dropdown__item:hover {
+  background-color: var(--bgopacity-color) !important;
+}
+
+.el-select-dropdown__item.selected {
+  color: var(--primary-color) !important;
+  font-weight: 600;
+}
+
+.el-popper[x-placement^="bottom"] .popper__arrow::after {
+  border-bottom-color: var(--panel-bg) !important;
+}
+
+/* ========== 大屏按钮(type="text" 除外):主按钮实心 + 其余描边 ========== */
+@mixin dt-btn-reset-decor {
+  background-image: none !important;
+  text-shadow: none !important;
+  box-shadow: none !important;
+
+  &::before,
+  &::after {
+    display: none !important;
+  }
+}
+
+@mixin dt-btn-outline {
+  @include dt-btn-reset-decor;
+  border-radius: var(--btn-radius) !important;
+  padding: 7px 16px !important;
+  min-height: 32px;
+  font-weight: 400;
+  background-color: var(--btn-outline-bg) !important;
+  border: 1px solid var(--btn-outline-border) !important;
+  color: var(--btn-outline-text) !important;
+  transition: background-color 0.15s ease, border-color 0.15s ease,
+    color 0.15s ease;
+
+  &:hover,
+  &:focus {
+    background-color: var(--btn-outline-bg-hover) !important;
+    border-color: var(--btn-outline-border-hover) !important;
+    color: #d8eeff !important;
+    opacity: 1 !important;
+  }
+
+  &:active {
+    background-color: rgba(0, 20, 40, 0.98) !important;
+  }
+}
+
+@mixin dt-btn-primary {
+  @include dt-btn-reset-decor;
+  border-radius: var(--btn-radius) !important;
+  padding: 7px 16px !important;
+  min-height: 32px;
+  font-weight: 400;
+  background-color: var(--btn-primary-bg) !important;
+  border: 1px solid var(--btn-primary-border) !important;
+  color: #ffffff !important;
+  transition: background-color 0.15s ease, border-color 0.15s ease;
+
+  &:hover,
+  &:focus {
+    background-color: var(--btn-primary-bg-hover) !important;
+    border-color: var(--btn-primary-bg-hover) !important;
+    color: #ffffff !important;
+    opacity: 1 !important;
+  }
+
+  &:active {
+    background-color: #1565c0 !important;
+    border-color: #1565c0 !important;
+  }
+}
+
+.el-button--primary:not(.el-button--text) {
+  @include dt-btn-primary;
+}
+
+.el-button--default:not(.el-button--text),
+.el-button--info:not(.el-button--text),
+.el-button--success:not(.el-button--text),
+.el-button--warning:not(.el-button--text),
+.el-button--danger:not(.el-button--text) {
+  @include dt-btn-outline;
+}
+
+.el-button.is-disabled:not(.el-button--text),
+.el-button.is-disabled:not(.el-button--text):hover,
+.el-button.is-disabled:not(.el-button--text):focus {
+  background: rgba(0, 16, 32, 0.5) !important;
+  background-image: none !important;
+  border-color: rgba(0, 120, 200, 0.18) !important;
+  color: rgba(183, 223, 245, 0.35) !important;
+  box-shadow: none !important;
+  text-shadow: none !important;
+  cursor: not-allowed;
+  opacity: 1 !important;
+}
+
+.el-button.is-loading:not(.el-button--text) {
+  pointer-events: none;
+}
+
+.el-button--text,
+.el-button--text:hover,
+.el-button--text:focus,
+.el-button--text:active {
+  background: transparent !important;
+  background-image: none !important;
+  border: none !important;
+  box-shadow: none !important;
+  text-shadow: none !important;
+  border-radius: 0 !important;
+  padding-left: 0 !important;
+  padding-right: 0 !important;
+  min-height: auto !important;
+
+  &::before,
+  &::after {
+    display: none !important;
+  }
+}
+
+.el-message-box__btns .el-button:not(.el-button--text),
+.el-dialog__footer .el-button:not(.el-button--text) {
+  min-width: 72px;
+}
+
+.el-button--mini:not(.el-button--text) {
+  padding: 5px 12px !important;
+  min-height: 28px;
+  font-size: 12px;
+}
+
+.el-button--small:not(.el-button--text) {
+  padding: 6px 14px !important;
+  min-height: 30px;
+}
+
+/* ========== 大屏表格 ========== */
+.list-page {
+  position: relative;
+  margin-top: 8px;
+  padding: 16px 12px 12px;
+  background: var(--table-frame-bg);
+  border-radius: 4px;
+
+  .el-table {
+    border: none !important;
+    border-radius: 4px;
+    box-shadow: none !important;
+    background: transparent !important;
+  }
+}
+
+.el-table {
+  background-color: var(--table-frame-bg) !important;
+  color: var(--table-cell-text) !important;
+  border: none !important;
+  border-radius: 4px;
+  overflow: hidden;
+  box-shadow: none !important;
+}
+
+.el-table::before,
+.el-table::after {
+  background-color: var(--table-border) !important;
+}
+
+.el-table th.el-table__cell {
+  background: var(--table-header-bg) !important;
+  color: var(--table-header-text) !important;
+  border-color: var(--table-border) !important;
+  font-weight: 500;
+  padding: 0 !important;
+
+  .cell {
+    color: var(--table-header-text) !important;
+    padding: 14px 10px !important;
+    line-height: 1.4;
+    font-weight: 500;
+  }
+}
+
+.el-table td.el-table__cell {
+  background-color: var(--table-row-bg) !important;
+  color: var(--table-cell-text) !important;
+  border-color: var(--table-border) !important;
+
+  .cell {
+    color: var(--table-cell-text) !important;
+  }
+}
+
+/* stripe 属性保留,视觉与普行一致(无斑马纹) */
+.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
+  background-color: var(--table-row-bg) !important;
+}
+
+/* 行 hover:淡青蒙层 + 左侧细光条(覆盖 Element 默认浅灰) */
+.el-table tbody tr:hover > td.el-table__cell,
+.el-table.el-table--enable-row-hover
+  .el-table__body
+  tr:hover
+  > td.el-table__cell,
+.el-table__body tr.hover-row > td.el-table__cell {
+  background-color: var(--table-row-hover-bg) !important;
+  color: var(--table-row-hover-text) !important;
+  transition: background-color 0.18s ease;
+
+  .cell {
+    color: var(--table-row-hover-text) !important;
+  }
+}
+
+.el-table tbody tr:hover > td.el-table__cell:first-child,
+.el-table.el-table--enable-row-hover
+  .el-table__body
+  tr:hover
+  > td.el-table__cell:first-child,
+.el-table__body tr.hover-row > td.el-table__cell:first-child {
+  box-shadow: inset 1px 0 0 var(--table-row-hover-line) !important;
+}
+
+.el-table--striped
+  .el-table__body
+  tr.el-table__row--striped:hover
+  > td.el-table__cell,
+.el-table--striped
+  .el-table__body
+  tr.el-table__row--striped.hover-row
+  > td.el-table__cell {
+  background-color: var(--table-row-hover-bg) !important;
+}
+
+.el-table__fixed-body-wrapper tr:hover > td.el-table__cell,
+.el-table__fixed-body-wrapper tr.hover-row > td.el-table__cell {
+  background-color: var(--table-row-hover-bg) !important;
+  color: var(--table-row-hover-text) !important;
+}
+
+.el-table__fixed-body-wrapper tr:hover > td.el-table__cell:first-child,
+.el-table__fixed-body-wrapper tr.hover-row > td.el-table__cell:first-child {
+  box-shadow: inset 1px 0 0 var(--table-row-hover-line) !important;
+}
+
+.el-table__fixed-right-patch {
+  background: var(--table-header-bg) !important;
+}
+
+.el-table__fixed-right::before,
+.el-table__fixed::before {
+  background-color: var(--table-border) !important;
+}
+
+.el-table__empty-text {
+  color: var(--text-muted) !important;
+}
+
+.el-table--border,
+.el-table--group {
+  border-color: var(--table-border) !important;
+}
+
+.el-table--border .el-table__cell {
+  border-color: var(--table-border) !important;
+}
+
+.el-table__body-wrapper,
+.el-table__header-wrapper {
+  background: var(--table-frame-bg) !important;
+}
+
+.el-table__fixed-header-wrapper th.el-table__cell {
+  background: var(--table-header-bg, #001a33) !important;
+}
+
+.el-table__fixed-body-wrapper td.el-table__cell {
+  background-color: var(--table-row-bg, #020810) !important;
+}
+
+/* 操作列 text 按钮:与表格正文同色,覆盖 inline style="#666" 等 */
+.el-table .cell .el-button--text,
+.el-table .el-button--text {
+  color: var(--table-cell-text) !important;
+  padding: 0 6px !important;
+  font-size: 13px;
+  vertical-align: middle;
+  font-weight: 400;
+
+  &:hover,
+  &:focus {
+    color: var(--text-cyan, #b7dff5) !important;
+    background: transparent !important;
+  }
+
+  &.is-disabled,
+  &.is-disabled:hover,
+  &.is-disabled:focus {
+    color: rgba(200, 212, 223, 0.42) !important;
+    background: transparent !important;
+  }
+}
+
+.el-table .el-button--text + .el-button--text {
+  margin-left: 0 !important;
+  padding-left: 10px !important;
+  border-left: 1px solid var(--table-border) !important;
+  border-radius: 0 !important;
+}
+
+/* 状态列绿点:span 加 class="dt-status-on" */
+.dt-status-on::before {
+  content: "";
+  display: inline-block;
+  width: 7px;
+  height: 7px;
+  margin-right: 6px;
+  border-radius: 50%;
+  background: var(--success-color);
+  box-shadow: 0 0 8px rgba(82, 196, 26, 0.85);
+  vertical-align: middle;
+  transform: translateY(-1px);
+}
+
+.dt-status-off::before {
+  content: "";
+  display: inline-block;
+  width: 7px;
+  height: 7px;
+  margin-right: 6px;
+  border-radius: 50%;
+  background: #666;
+  box-shadow: 0 0 4px rgba(120, 120, 120, 0.5);
+  vertical-align: middle;
+  transform: translateY(-1px);
+}
+
+/* ========== 分页 ========== */
+.el-pagination {
+  color: var(--text-cyan) !important;
+}
+
+.el-pagination button,
+.el-pagination span:not([class*="suffix"]) {
+  color: var(--text-cyan) !important;
+  background: transparent !important;
+}
+
+.el-pagination .btn-prev,
+.el-pagination .btn-next {
+  background: var(--input-bg) !important;
+  border: 1px solid var(--input-border) !important;
+  color: var(--text-cyan) !important;
+}
+
+.el-pager li {
+  background: var(--input-bg) !important;
+  border: 1px solid var(--input-border) !important;
+  color: var(--text-cyan) !important;
+  margin: 0 3px;
+  min-width: 32px;
+  border-radius: 2px;
+}
+
+.el-pager li.active {
+  background-color: var(--primary-color) !important;
+  border-color: var(--primary-color) !important;
+  color: #fff !important;
+}
+
+.el-pager li:hover {
+  color: var(--primary-hover) !important;
+}
+
+/* ========== 卡片 / 主区域 ========== */
+.el-card {
+  background-color: var(--panel-bg) !important;
+  border-color: var(--panel-border) !important;
+  color: var(--text-cyan) !important;
+}
+
+.el-card__header {
+  border-bottom-color: var(--table-border) !important;
+  color: var(--text-cyan) !important;
+}
+
+.el-main {
+  background-color: var(--content-bg) !important;
+  color: var(--text-cyan);
+}
+
+/* ========== 弹窗 ========== */
+.el-dialog {
+  background-color: var(--panel-bg) !important;
+  border: 1px solid var(--panel-border);
+  box-shadow: 0 0 24px rgba(0, 100, 255, 0.2);
+}
+
+.el-dialog__header {
+  background: linear-gradient(90deg, #001529 0%, #002a5c 100%) !important;
+  border-bottom: 1px solid var(--panel-border);
+}
+
+.el-dialog__title {
+  color: #ffffff !important;
+}
+
+.el-dialog__headerbtn .el-dialog__close {
+  color: #b7dff5 !important;
+}
+
+.el-dialog__headerbtn:hover .el-dialog__close {
+  color: #ffffff !important;
+}
+
+.el-dialog__body {
+  color: #ffffff !important;
+  background-color: var(--panel-bg) !important;
+}
+
+.el-dialog__footer {
+  border-top: 1px solid var(--table-border);
+  background-color: var(--panel-bg) !important;
+}
+
+/* ========== 抽屉 ========== */
+.el-drawer {
+  background-color: var(--panel-bg) !important;
+  border-left: 1px solid var(--panel-border);
+  box-shadow: -4px 0 24px rgba(0, 100, 255, 0.15);
+}
+
+.el-drawer__header {
+  background: linear-gradient(90deg, #001529 0%, #002a5c 100%) !important;
+  border-bottom: 1px solid var(--panel-border);
+  margin-bottom: 0 !important;
+  padding: 16px 20px !important;
+  color: #ffffff !important;
+}
+
+.el-drawer__header > :first-child {
+  color: #ffffff !important;
+  font-size: 16px;
+  font-weight: 500;
+}
+
+.el-drawer__close-btn {
+  color: #b7dff5 !important;
+}
+
+.el-drawer__close-btn:hover {
+  color: #ffffff !important;
+}
+
+.el-drawer__body {
+  background-color: var(--panel-bg) !important;
+  color: #ffffff;
+  padding: 16px 20px;
+}
+
+.overview-drawer {
+  .el-tabs--border-card {
+    border: none !important;
+    box-shadow: none !important;
+    background: transparent !important;
+  }
+
+  .el-tabs--border-card > .el-tabs__content {
+    padding: 16px 0 0;
+  }
+}
+
+.overview-dialog {
+  .el-dialog__body {
+    color: #ffffff !important;
+  }
+
+  .el-tabs__item {
+    color: #b7dff5 !important;
+  }
+
+  .el-tabs__item.is-active {
+    color: #ffffff !important;
+  }
+}
+
+/* ========== 消息 / 下拉 / 气泡 ========== */
+.el-message-box {
+  background-color: var(--panel-bg) !important;
+  border: 1px solid var(--panel-border) !important;
+}
+
+.el-message-box__title,
+.el-message-box__content {
+  color: var(--text-cyan) !important;
+}
+
+.el-message-box__btns {
+  .el-button--primary:not(.el-button--text) {
+    background-color: var(--btn-primary-bg, #177ddc) !important;
+    border-color: var(--btn-primary-border, #177ddc) !important;
+    color: #ffffff !important;
+  }
+
+  .el-button--default:not(.el-button--text) {
+    background-color: var(--btn-outline-bg, rgba(0, 16, 32, 0.92)) !important;
+    border: 1px solid var(--btn-outline-border, rgba(0, 120, 200, 0.42)) !important;
+    color: var(--btn-outline-text, #b7dff5) !important;
+  }
+}
+
+.el-dropdown-menu {
+  background-color: var(--panel-bg) !important;
+  border: 1px solid var(--panel-border) !important;
+}
+
+.el-dropdown-menu__item {
+  color: var(--text-cyan) !important;
+}
+
+.el-dropdown-menu__item:hover {
+  background-color: var(--bgopacity-color) !important;
+  color: var(--primary-color) !important;
+}
+
+.el-popover {
+  background-color: var(--panel-bg) !important;
+  border-color: var(--panel-border) !important;
+  color: #ffffff !important;
+
+  .el-descriptions-item__label.is-bordered-label {
+    background-color: var(--table-header-bg) !important;
+    color: var(--table-header-text, #ffffff) !important;
+  }
+
+  .el-descriptions-item__content.is-bordered-content {
+    background-color: var(--panel-bg) !important;
+    color: #ffffff !important;
+  }
+}
+
+.el-divider {
+  background-color: var(--table-border) !important;
+}
+
+/* ========== Tabs / Tree / Tag ========== */
+.el-tabs__item {
+  color: rgba(183, 223, 245, 0.75) !important;
+}
+
+.el-tabs__item.is-active {
+  color: #ffffff !important;
+}
+
+.el-tabs__item:hover {
+  color: #ffffff !important;
+}
+
+.el-tabs__active-bar {
+  background-color: #00aaff !important;
+}
+
+.el-tabs__nav-wrap::after {
+  background-color: var(--table-border) !important;
+}
+
+.el-tabs--border-card {
+  background: var(--panel-bg) !important;
+  border-color: var(--panel-border) !important;
+}
+
+.el-tabs--border-card > .el-tabs__header {
+  background-color: var(--table-header-bg) !important;
+  border-bottom-color: var(--table-border) !important;
+}
+
+.el-tabs--border-card > .el-tabs__header .el-tabs__item {
+  border-color: var(--table-border) !important;
+  color: var(--text-cyan, #b7dff5) !important;
+  background-color: transparent !important;
+}
+
+.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
+  color: #ffffff !important;
+  background-color: rgba(24, 144, 255, 0.22) !important;
+  border-color: var(--panel-border) !important;
+}
+
+.el-tabs--border-card > .el-tabs__header .el-tabs__item:hover {
+  color: #ffffff !important;
+  background-color: rgba(24, 144, 255, 0.12) !important;
+}
+
+.el-tabs--border-card > .el-tabs__content {
+  background-color: var(--panel-bg) !important;
+  color: #ffffff;
+}
+
+.el-dialog__body,
+.el-drawer__body {
+  .el-tabs--border-card {
+    background: transparent !important;
+    border-color: var(--panel-border) !important;
+  }
+
+  .el-tabs--border-card > .el-tabs__header {
+    background-color: rgba(0, 16, 32, 0.85) !important;
+  }
+
+  .el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
+    color: #ffffff !important;
+    background-color: rgba(24, 144, 255, 0.22) !important;
+  }
+
+  .el-tabs--border-card > .el-tabs__content {
+    background-color: transparent !important;
+    color: #ffffff;
+  }
+
+  .el-descriptions__title {
+    color: #ffffff !important;
+  }
+}
+
+.el-tree {
+  background: transparent !important;
+  color: var(--text-cyan) !important;
+}
+
+.el-tree-node__content:hover {
+  background-color: var(--bgopacity-color) !important;
+}
+
+.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
+  background-color: var(--bgopacity-color) !important;
+  color: var(--primary-color) !important;
+}
+
+/* ========== Loading ========== */
+.el-loading-mask {
+  background-color: rgba(0, 5, 16, 0.75) !important;
+}
+
+.el-loading-spinner .path {
+  stroke: var(--primary-color) !important;
+}
+
+/* ========== 滚动条 ========== */
+::-webkit-scrollbar {
+  width: 6px;
+  height: 6px;
+}
+
+::-webkit-scrollbar-thumb {
+  background-color: rgba(0, 170, 255, 0.35);
+  border-radius: 3px;
+}
+
+/* ========== 日期 / 级联 / 消息 ========== */
+.el-picker-panel,
+.el-date-picker,
+.el-date-range-picker,
+.el-time-panel {
+  background-color: var(--panel-bg) !important;
+  border-color: var(--panel-border) !important;
+  color: var(--text-cyan) !important;
+}
+
+.el-picker-panel__footer {
+  background-color: var(--panel-bg) !important;
+  border-top-color: var(--table-border) !important;
+}
+
+.el-picker-panel__icon-btn,
+.el-date-picker__header-label,
+.el-date-range-picker__header div {
+  color: var(--text-cyan) !important;
+}
+
+.el-picker-panel__icon-btn:hover {
+  color: #ffffff !important;
+}
+
+.el-date-range-picker__content.is-left {
+  border-right-color: var(--table-border) !important;
+}
+
+.el-date-table th,
+.el-date-table td.available span,
+.el-month-table td .cell,
+.el-year-table td .cell {
+  color: var(--text-cyan) !important;
+}
+
+.el-date-table td.available:hover span,
+.el-month-table td .cell:hover,
+.el-year-table td .cell:hover {
+  color: #ffffff !important;
+}
+
+.el-date-table td.in-range div,
+.el-date-table td.in-range div:hover {
+  background-color: rgba(24, 144, 255, 0.15) !important;
+}
+
+.el-date-table td.start-date span,
+.el-date-table td.end-date span {
+  background-color: var(--primary-color, #1890ff) !important;
+  color: #ffffff !important;
+}
+
+.el-date-table td.today span {
+  color: #00aaff !important;
+}
+
+.el-time-panel__content::before,
+.el-time-panel__content::after {
+  border-top-color: var(--table-border) !important;
+  border-bottom-color: var(--table-border) !important;
+}
+
+.el-time-spinner__item {
+  color: var(--text-cyan) !important;
+}
+
+.el-time-spinner__item:hover:not(.disabled):not(.active) {
+  background-color: var(--bgopacity-color) !important;
+}
+
+.el-time-spinner__item.active:not(.disabled) {
+  color: #ffffff !important;
+}
+
+.el-time-panel__btn {
+  color: var(--text-cyan) !important;
+}
+
+.el-time-panel__btn.confirm {
+  color: var(--primary-color, #1890ff) !important;
+}
+
+.el-cascader-menu {
+  background-color: var(--panel-bg) !important;
+  border-color: var(--table-border) !important;
+  color: var(--text-cyan) !important;
+}
+
+.el-cascader-node:not(.is-disabled):hover,
+.el-cascader-node:not(.is-disabled):focus {
+  background-color: var(--bgopacity-color) !important;
+}
+
+/* ========== Vue Treeselect(上级目录等树形选择) ========== */
+.vue-treeselect {
+  color: var(--text-cyan) !important;
+}
+
+.vue-treeselect__control {
+  background-color: var(--input-bg) !important;
+  border-color: var(--input-border) !important;
+  color: #ffffff !important;
+}
+
+.vue-treeselect:not(.vue-treeselect--disabled):not(.vue-treeselect--focused)
+  .vue-treeselect__control:hover {
+  border-color: rgba(0, 170, 255, 0.55) !important;
+}
+
+.vue-treeselect--focused:not(.vue-treeselect--open) .vue-treeselect__control {
+  border-color: var(--primary-color) !important;
+  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.18) !important;
+}
+
+.vue-treeselect--open .vue-treeselect__control {
+  border-color: var(--input-border) !important;
+}
+
+.vue-treeselect--disabled .vue-treeselect__control {
+  background-color: rgba(0, 12, 23, 0.6) !important;
+  border-color: rgba(0, 170, 255, 0.15) !important;
+}
+
+.vue-treeselect__placeholder {
+  color: rgba(183, 223, 245, 0.55) !important;
+}
+
+.vue-treeselect__single-value {
+  color: #ffffff !important;
+}
+
+.vue-treeselect__input {
+  color: #ffffff !important;
+}
+
+.vue-treeselect__control-arrow,
+.vue-treeselect__option-arrow {
+  color: rgba(183, 223, 245, 0.65) !important;
+}
+
+.vue-treeselect:not(.vue-treeselect--disabled)
+  .vue-treeselect__control-arrow-container:hover
+  .vue-treeselect__control-arrow,
+.vue-treeselect__option-arrow-container:hover .vue-treeselect__option-arrow {
+  color: #ffffff !important;
+}
+
+.vue-treeselect__menu {
+  background-color: var(--panel-bg) !important;
+  border-color: var(--panel-border) !important;
+  color: #ffffff !important;
+  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
+}
+
+.vue-treeselect--open-below .vue-treeselect__menu {
+  border-top-color: var(--panel-border) !important;
+}
+
+.vue-treeselect--open-above .vue-treeselect__menu {
+  border-bottom-color: var(--panel-border) !important;
+}
+
+.vue-treeselect__option {
+  color: #ffffff !important;
+}
+
+.vue-treeselect__label {
+  color: #ffffff !important;
+}
+
+.vue-treeselect__option--highlight {
+  background-color: var(--bgopacity-color) !important;
+}
+
+.vue-treeselect--single .vue-treeselect__option--selected,
+.vue-treeselect--single .vue-treeselect__option--selected:hover {
+  background-color: rgba(24, 144, 255, 0.22) !important;
+  color: #ffffff !important;
+}
+
+.vue-treeselect__option--disabled .vue-treeselect__label-container {
+  color: rgba(183, 223, 245, 0.35) !important;
+}
+
+.vue-treeselect__tip,
+.vue-treeselect__limit-tip-text {
+  color: rgba(183, 223, 245, 0.65) !important;
+}
+
+.vue-treeselect__checkbox--unchecked {
+  border-color: var(--input-border) !important;
+  background: var(--input-bg) !important;
+}
+
+.vue-treeselect__label-container:hover .vue-treeselect__checkbox--unchecked {
+  border-color: var(--primary-color) !important;
+  background: var(--input-bg) !important;
+}
+
+.vue-treeselect__checkbox--indeterminate,
+.vue-treeselect__checkbox--checked,
+.vue-treeselect__label-container:hover .vue-treeselect__checkbox--indeterminate,
+.vue-treeselect__label-container:hover .vue-treeselect__checkbox--checked {
+  border-color: var(--primary-color) !important;
+  background: var(--primary-color) !important;
+}
+
+.vue-treeselect__multi-value-item {
+  background: rgba(0, 170, 255, 0.18) !important;
+  border-color: rgba(0, 170, 255, 0.35) !important;
+  color: #ffffff !important;
+}
+
+.vue-treeselect__value-remove {
+  color: #ffffff !important;
+  border-left-color: rgba(0, 170, 255, 0.25) !important;
+}
+
+.vue-treeselect__x-container {
+  color: rgba(183, 223, 245, 0.65) !important;
+}
+
+.vue-treeselect__x-container:hover {
+  color: #ff7875 !important;
+}
+
+.el-message {
+  background-color: var(--panel-bg) !important;
+  border-color: var(--panel-border) !important;
+}
+
+.el-message__content {
+  color: var(--text-cyan) !important;
+}
+
+.el-notification {
+  background-color: var(--panel-bg) !important;
+  border-color: var(--panel-border) !important;
+}
+
+.el-notification__title,
+.el-notification__content {
+  color: var(--text-cyan) !important;
+}
+
+.el-breadcrumb__inner,
+.el-breadcrumb__separator {
+  color: var(--text-muted) !important;
+}
+
+.el-breadcrumb__item:last-child .el-breadcrumb__inner {
+  color: var(--text-cyan) !important;
+}
+
+::-webkit-scrollbar-track {
+  background-color: rgba(0, 10, 30, 0.5);
+}
+
+/* 兜底:压掉 Element UI 默认 #F5F7FA 行 hover(必须匹配其完整选择器) */
+.el-table__body tr.hover-row > td.el-table__cell,
+.el-table__body tr.hover-row.el-table__row--striped > td.el-table__cell,
+.el-table__body tr.hover-row.current-row > td.el-table__cell,
+.el-table__body
+  tr.hover-row.el-table__row--striped.current-row
+  > td.el-table__cell,
+.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell,
+.el-table--enable-row-hover .el-table__body tr.hover-row > td.el-table__cell {
+  background-color: var(--table-row-hover-bg) !important;
+  color: var(--table-row-hover-text) !important;
+}
+
+.el-table--enable-row-hover .el-table__body tr:hover > td,
+.el-table--enable-row-hover .el-table__body tr.hover-row > td {
+  background-color: var(--table-row-hover-bg) !important;
+}
+
+.el-table--striped .el-table__body tr.el-table__row--striped td {
+  background: var(--table-row-bg) !important;
+}
+
+.el-table--striped .el-table__body tr.el-table__row--striped:hover > td,
+.el-table--striped .el-table__body tr.el-table__row--striped.hover-row > td {
+  background: var(--table-row-hover-bg) !important;
+}
+
+/* ========== Descriptions / Empty / Alert ========== */
+.el-descriptions {
+  color: #ffffff !important;
+}
+
+.el-descriptions__title {
+  color: #ffffff !important;
+}
+
+.el-descriptions__body {
+  background-color: transparent !important;
+  color: #ffffff !important;
+}
+
+.el-descriptions__body .el-descriptions__table .el-descriptions-item__cell {
+  color: #ffffff !important;
+  background-color: transparent !important;
+}
+
+.el-descriptions-item__label {
+  color: var(--text-cyan, #b7dff5) !important;
+}
+
+.el-descriptions__body .el-descriptions-item__label {
+  color: var(--text-cyan, #b7dff5) !important;
+}
+
+.el-descriptions-item__content {
+  color: #ffffff !important;
+}
+
+.el-descriptions__body .el-descriptions-item__content {
+  color: #ffffff !important;
+}
+
+.el-descriptions .is-bordered .el-descriptions-item__cell {
+  border-color: var(--table-border) !important;
+}
+
+.el-descriptions-item__label.is-bordered-label {
+  background-color: var(--table-header-bg) !important;
+  color: var(--table-header-text, #ffffff) !important;
+}
+
+.el-descriptions-item__content.is-bordered-content {
+  background-color: var(--panel-bg) !important;
+  color: #ffffff !important;
+}
+
+.el-empty__description,
+.el-empty__description p {
+  color: var(--text-cyan, #b7dff5) !important;
+  font-size: 14px;
+}
+
+.el-empty__image {
+  opacity: 0.8;
+}
+
+.el-empty__image svg {
+  fill: rgba(0, 170, 255, 0.45) !important;
+}
+
+.el-empty__image img {
+  filter: brightness(0.85) saturate(0.6);
+  opacity: 0.7;
+}
+
+.el-alert {
+  background-color: rgba(0, 16, 32, 0.72) !important;
+  border: 1px solid var(--panel-border) !important;
+}
+
+.el-alert__title,
+.el-alert__description {
+  color: #ffffff !important;
+}
+
+.el-alert--info.is-light {
+  background-color: rgba(0, 16, 32, 0.72) !important;
+  color: #ffffff !important;
+}
+
+/* ========== 横向菜单 ========== */
+.el-menu--horizontal {
+  background-color: transparent !important;
+  border-bottom-color: var(--panel-border) !important;
+}
+
+.el-menu--horizontal > .el-menu-item,
+.el-menu--horizontal > .el-submenu .el-submenu__title {
+  color: var(--text-cyan, #b7dff5) !important;
+  background-color: transparent !important;
+  border-bottom: 2px solid transparent !important;
+}
+
+.el-menu--horizontal > .el-menu-item:hover,
+.el-menu--horizontal > .el-submenu .el-submenu__title:hover {
+  background-color: var(--bgopacity-color) !important;
+  color: #ffffff !important;
+}
+
+.el-menu--horizontal > .el-menu-item.is-active {
+  color: #ffffff !important;
+  border-bottom-color: var(--primary-color) !important;
+  background-color: transparent !important;
+}
+
+.el-menu--horizontal > .el-submenu.is-active .el-submenu__title {
+  color: #ffffff !important;
+  border-bottom-color: var(--primary-color) !important;
+}
+
+.el-menu--horizontal .el-menu--popup {
+  background-color: var(--panel-bg) !important;
+  border: 1px solid var(--panel-border) !important;
+}
+
+.el-menu--horizontal .el-menu--popup .el-menu-item {
+  color: var(--text-cyan, #b7dff5) !important;
+  background-color: transparent !important;
+}
+
+.el-menu--horizontal .el-menu--popup .el-menu-item:hover,
+.el-menu--horizontal .el-menu--popup .el-menu-item:focus {
+  background-color: rgba(24, 144, 255, 0.35) !important;
+  color: #ffffff !important;
+}
+
+.el-menu--horizontal .el-menu--popup .el-menu-item.is-active {
+  color: #ffffff !important;
+  background-color: rgba(24, 144, 255, 0.45) !important;
+}
+
+/* 概览页顶部下拉菜单(挂到 body) */
+.overview-menu-popup {
+  .el-menu--popup {
+    background-color: #141414 !important;
+    border: 1px solid rgba(0, 170, 255, 0.35) !important;
+    padding: 4px 0;
+    min-width: 140px;
+  }
+
+  .el-menu-item {
+    color: #b7dff5 !important;
+    margin: 4px 8px;
+    border-radius: 4px;
+    height: 40px;
+    line-height: 40px;
+
+    span {
+      color: #b7dff5 !important;
+    }
+  }
+
+  .el-menu-item:hover,
+  .el-menu-item:focus {
+    background-color: #1890ff !important;
+    color: #ffffff !important;
+
+    span {
+      color: #ffffff !important;
+    }
+  }
+
+  .el-menu-item.is-active {
+    background-color: rgba(24, 144, 255, 0.45) !important;
+    color: #ffffff !important;
+
+    span {
+      color: #ffffff !important;
+    }
+  }
+}
+
+/* ========== 分析概览页 ========== */
+.overview-page {
+  color: #ffffff;
+
+  .headerMessage {
+    color: #ffffff !important;
+    font-weight: 600;
+  }
+
+  .analysis-info-card {
+    color: #ffffff !important;
+
+    .box-header,
+    .box-header-min,
+    .box-min,
+    .left .box-content-min {
+      color: #ffffff !important;
+
+      h4,
+      h6 {
+        color: #ffffff !important;
+      }
+    }
+
+    .box-header,
+    .content {
+      border-bottom-color: var(--panel-border, rgba(0, 170, 255, 0.25)) !important;
+    }
+
+    .headerMessage {
+      color: #ffffff !important;
+    }
+
+    .el-descriptions-item__label {
+      color: var(--text-cyan, #b7dff5) !important;
+    }
+
+    .el-descriptions-item__content {
+      color: #ffffff !important;
+    }
+
+    .itemAnalysisCompletionUnit {
+      border: 1px solid var(--panel-border, rgba(0, 170, 255, 0.35)) !important;
+      background: rgba(0, 16, 32, 0.55) !important;
+      color: #ffffff !important;
+
+      span {
+        color: #ffffff !important;
+      }
+
+      &:hover {
+        background: var(--bgopacity-color, rgba(0, 170, 255, 0.12)) !important;
+        border-color: rgba(0, 170, 255, 0.55) !important;
+      }
+    }
+
+    .completeAssetssType .el-tag.el-tag--warning {
+      background-color: rgba(0, 170, 255, 0.12) !important;
+      border-color: rgba(0, 170, 255, 0.35) !important;
+      color: #ffffff !important;
+    }
+
+    .analysisTypes h6 {
+      color: var(--text-cyan, #b7dff5) !important;
+    }
+  }
+
+  .filterChart {
+    h3 {
+      color: #ffffff;
+    }
+  }
+
+  .type-variable {
+    color: #ffffff;
+
+    .left {
+      color: #ffffff;
+    }
+  }
+
+  .el-form-item__label {
+    color: var(--text-cyan, #b7dff5) !important;
+  }
+
+  .el-descriptions__body {
+    background-color: transparent !important;
+  }
+
+  /* 暂无数据 / 暂无分析记录 */
+  .el-empty {
+    padding: 40px 0;
+  }
+
+  .el-empty__image {
+    width: 140px;
+    opacity: 0.85;
+  }
+
+  .el-empty__image svg {
+    fill: rgba(0, 170, 255, 0.55) !important;
+  }
+
+  .el-empty__description,
+  .el-empty__description p {
+    color: #ffffff !important;
+    font-size: 14px;
+    margin-top: 16px;
+  }
+
+  .titleCharts {
+    color: #ffffff;
+    font-size: 16px;
+    font-weight: 500;
+    margin-top: 20px;
+  }
+
+  /* 左侧树选中:固定亮蓝底 + 白字,避免主题 primary 过暗 */
+  .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content,
+  .el-tree-node.is-current > .el-tree-node__content {
+    background-color: #1890ff !important;
+    color: #ffffff !important;
+    border-radius: 4px;
+  }
+
+  .el-tree-node.is-current > .el-tree-node__content .el-tree-node__label {
+    color: #ffffff !important;
+  }
+
+  /* 顶部 Tab 选中:浅蓝底 + 青色下划线 + 白字 */
+  .overview-top-menu.el-menu--horizontal {
+    > .el-menu-item.is-active {
+      color: #ffffff !important;
+      background-color: rgba(24, 144, 255, 0.22) !important;
+      border-bottom-color: #00aaff !important;
+    }
+
+    > .el-submenu.is-active > .el-submenu__title {
+      color: #ffffff !important;
+      background-color: rgba(24, 144, 255, 0.22) !important;
+      border-bottom-color: #00aaff !important;
+    }
+
+    > .el-menu-item:hover,
+    > .el-menu-item:focus,
+    > .el-submenu .el-submenu__title:hover,
+    > .el-submenu .el-submenu__title:focus {
+      background-color: rgba(24, 144, 255, 0.12) !important;
+      color: #ffffff !important;
+    }
+  }
+}
+
+/* ========== 自定义分析 / 图表配置页 ========== */
+.custom-analysis-page,
+.drag-chart-page,
+.analysis-event-page,
+.transition-page {
+  color: #ffffff;
+
+  .el-form-item__label {
+    color: #b7dff5 !important;
+  }
+
+  .el-form-item__content {
+    color: #ffffff !important;
+  }
+
+  .el-collapse {
+    border-color: var(--panel-border) !important;
+  }
+
+  .el-collapse-item__header {
+    background: linear-gradient(90deg, #001529 0%, #002a5c 100%) !important;
+    color: #ffffff !important;
+    border-bottom-color: var(--panel-border) !important;
+  }
+
+  .el-collapse-item__wrap {
+    background: var(--panel-bg, #000c17) !important;
+    border-bottom-color: var(--panel-border) !important;
+  }
+
+  .el-collapse-item__content {
+    color: #ffffff !important;
+  }
+
+  .setting {
+    color: #b7dff5 !important;
+
+    &:hover {
+      color: #ffffff !important;
+    }
+  }
+
+  .box-card {
+    border-color: var(--panel-border) !important;
+    background: transparent !important;
+  }
+
+  .filedView {
+    background: linear-gradient(90deg, #001529 0%, #002a5c 100%) !important;
+    color: #ffffff !important;
+  }
+
+  .box-card .el-card__body {
+    background: var(--panel-bg, #000c17) !important;
+    color: #ffffff !important;
+  }
+
+  .el-select .el-input__inner {
+    color: #ffffff !important;
+  }
+
+  .el-input__inner::placeholder {
+    color: rgba(183, 223, 245, 0.55) !important;
+  }
+
+  .el-empty__description,
+  .el-empty__description p {
+    color: #ffffff !important;
+  }
+
+  .el-checkbox__label {
+    color: #ffffff !important;
+  }
+
+  .el-checkbox.is-checked .el-checkbox__label {
+    color: #ffffff !important;
+  }
+}
+
+/* ========== Checkbox / Radio ========== */
+.el-checkbox {
+  color: #ffffff !important;
+}
+
+.el-checkbox__label {
+  color: #ffffff !important;
+}
+
+.el-checkbox.is-checked .el-checkbox__label,
+.el-checkbox__input.is-checked + .el-checkbox__label,
+.is-checked > .el-checkbox__label {
+  color: #ffffff !important;
+}
+
+.el-radio {
+  color: #ffffff !important;
+}
+
+.el-radio__label {
+  color: #ffffff !important;
+}
+
+.el-radio__input.is-checked + .el-radio__label {
+  color: #ffffff !important;
+}
+
+.analysis-event-drawer {
+  .drawer-section-title {
+    color: #ffffff;
+  }
+}
+
+.transition-drawer,
+.transition-dialog {
+  .scrollable-list {
+    color: #ffffff;
+
+    li span {
+      color: #ffffff;
+    }
+  }
+
+  .scrollable-list::-webkit-scrollbar-track {
+    background: rgba(0, 16, 32, 0.6);
+  }
+
+  .scrollable-list::-webkit-scrollbar-thumb {
+    background: rgba(0, 170, 255, 0.35);
+  }
+
+  .scrollable-list::-webkit-scrollbar-thumb:hover {
+    background: rgba(0, 170, 255, 0.55);
+  }
+}
+
+/* ========== 故障诊断页 malfunction ========== */
+.malfunction-page {
+  .gear-container {
+    .gear-header {
+      background: rgba(0, 16, 32, 0.85) !important;
+      border: 1px solid var(--panel-border) !important;
+      box-shadow: none !important;
+
+      .title {
+        color: #ffffff !important;
+      }
+
+      .sub-title {
+        color: #b7dff5 !important;
+      }
+
+      .stat-content {
+        .label {
+          color: #b7dff5 !important;
+        }
+
+        .count {
+          color: #ffffff !important;
+        }
+
+        .ratio {
+          color: rgba(183, 223, 245, 0.65) !important;
+        }
+      }
+
+      .header-divider.el-divider--vertical {
+        background-color: rgba(0, 170, 255, 0.25) !important;
+      }
+    }
+
+    h4 {
+      color: #ffffff !important;
+    }
+
+    .monitor-panel {
+      background: rgba(0, 16, 32, 0.45) !important;
+      border: 1px solid var(--panel-border) !important;
+      box-shadow: none !important;
+    }
+
+    .monitor-empty {
+      background: rgba(0, 12, 23, 0.55) !important;
+      border: 1px solid var(--panel-border) !important;
+      border-radius: 10px;
+    }
+
+    .monitor-item {
+      background: rgba(0, 16, 32, 0.65) !important;
+      border-color: var(--panel-border) !important;
+
+      &.is-active {
+        background: rgba(24, 144, 255, 0.15) !important;
+      }
+
+      &.is-active::before {
+        background: #00aaff !important;
+      }
+    }
+
+    .item-main {
+      .item-name {
+        color: #ffffff !important;
+      }
+
+      .item-line {
+        color: #b7dff5 !important;
+      }
+    }
+
+    .detail-btn {
+      color: #b7dff5 !important;
+    }
+
+    .bottomBox {
+      background: rgba(0, 16, 32, 0.45) !important;
+      border: 1px solid var(--panel-border) !important;
+      box-shadow: none !important;
+    }
+
+    .status-legend {
+      color: #b7dff5 !important;
+
+      .legend-label {
+        color: #b7dff5 !important;
+      }
+    }
+
+    .mpoint-chart-item {
+      background: rgba(0, 12, 23, 0.45) !important;
+      border-color: var(--panel-border) !important;
+    }
+
+    .mpoint-chart-title {
+      color: #ffffff !important;
+    }
+  }
+
+  .MAXdiv {
+    .bottomBox {
+      border-color: var(--panel-border) !important;
+      background: rgba(0, 16, 32, 0.45) !important;
+    }
+  }
+}
+
+}

+ 11 - 2
src/themes/blue.scss

@@ -7,6 +7,15 @@ $bgopacity-color: rgba(0, 187, 212, 0.145);
   --background-color: #{$background-color};
   --text-color: #{$text-color};
   --bgopacity-color: #{$bgopacity-color};
-  --header-bg: #1A3B7F;
-  --content-bg: #1a3c7fb4;
+  --header-bg: #ffffff;
+  --header-text-color: #303133;
+  --content-bg: #f5f7fa;
+  --text-cyan: #303133;
+  --panel-bg: #ffffff;
+  --input-bg: #ffffff;
+  --input-border: #dcdfe6;
+  --table-header-bg: #2f5aa0;
+  --table-header-text: #ffffff;
+  --table-row-bg: #ffffff;
+  --table-cell-text: #606266;
 }

+ 12 - 2
src/themes/dark.scss

@@ -7,6 +7,16 @@ $bgopacity-color: #607d8b31;
   --background-color: #{$background-color};
   --text-color: #{$text-color};
   --bgopacity-color: #{$bgopacity-color};
-  --header-bg: #607d8b;
-  --content-bg: #607d8bc2;
+  --header-bg: #ffffff;
+  --header-text-color: #303133;
+  --content-bg: #f5f7fa;
+  --text-cyan: #303133;
+  --panel-bg: #ffffff;
+  --input-bg: #ffffff;
+  --input-border: #dcdfe6;
+  --table-header-bg: #607d8b;
+  --table-header-text: #ffffff;
+  --table-row-bg: #ffffff;
+  --table-cell-text: #606266;
+  --primary-color: #607d8b;
 }

+ 14 - 4
src/themes/green.scss

@@ -1,5 +1,5 @@
-$primary-color: #008080;
-$background-color: #008080;
+$primary-color: #090a0f;
+$background-color: #090a0f;
 $text-color: #ffffff;
 $bgopacity-color: #00968730;
 :root {
@@ -7,6 +7,16 @@ $bgopacity-color: #00968730;
   --background-color: #{$background-color};
   --text-color: #{$text-color};
   --bgopacity-color: #{$bgopacity-color};
-  --header-bg: #008080;
-  --content-bg: #008080b4;
+  --header-bg: #ffffff;
+  --header-text-color: #303133;
+  --content-bg: #f5f7fa;
+  --text-cyan: #303133;
+  --panel-bg: #ffffff;
+  --input-bg: #ffffff;
+  --input-border: #dcdfe6;
+  --table-header-bg: #2f8f62;
+  --table-header-text: #ffffff;
+  --table-row-bg: #ffffff;
+  --table-cell-text: #606266;
+  --primary-color: #008080;
 }

+ 13 - 4
src/themes/light.scss

@@ -1,5 +1,5 @@
-$primary-color: #82780ccf;
-$background-color: #82780ccf;
+$primary-color: #82780c;
+$background-color: #82780c;
 $text-color: #ffffff;
 $bgopacity-color: #82780c27;
 
@@ -8,6 +8,15 @@ $bgopacity-color: #82780c27;
   --background-color: #{$background-color};
   --bgopacity-color: #{$bgopacity-color};
   --text-color: #{$text-color};
-  --header-bg: #82780c;
-  --content-bg: #82780ca5;
+  --header-bg: #ffffff;
+  --header-text-color: #303133;
+  --content-bg: #f5f7fa;
+  --text-cyan: #303133;
+  --panel-bg: #ffffff;
+  --input-bg: #ffffff;
+  --input-border: #dcdfe6;
+  --table-header-bg: #9c9a3f;
+  --table-header-text: #ffffff;
+  --table-row-bg: #ffffff;
+  --table-cell-text: #606266;
 }

+ 77 - 0
src/themes/tech-blue.scss

@@ -0,0 +1,77 @@
+/* 科技蓝大屏主题变量 */
+$primary-color: #1890ff;
+$background-color: #001529;
+$text-color: #ffffff;
+$bgopacity-color: rgba(0, 170, 255, 0.12);
+
+:root {
+  --primary-color: #1890ff;
+  --primary-hover: #40a9ff;
+  --background-color: #001529;
+  --text-color: #ffffff;
+  --text-cyan: #b7dff5;
+  --text-muted: #3f4755;
+  --bgopacity-color: rgba(0, 170, 255, 0.12);
+  --header-bg: #001529;
+  --content-bg: #000510;
+  --panel-bg: #000c17;
+  --panel-border: rgba(0, 170, 255, 0.45);
+  --panel-glow: 0 0 15px rgba(0, 120, 255, 0.12),
+    inset 0 0 30px rgba(0, 40, 100, 0.08);
+  --table-header-bg: #001a33;
+  --table-row-bg: #020810;
+  --table-row-stripe: rgba(0, 24, 48, 0.55);
+  --table-border: rgba(0, 80, 140, 0.28);
+  --table-frame-bg: #00050a;
+  --table-frame-border: rgba(0, 170, 255, 0.48);
+  --table-accent: #00aaff;
+  --table-cell-text: #c8d4df;
+  --table-header-text: #ffffff;
+  /* hover:略提亮深色底,不用浅灰/高亮青(避免扎眼) */
+  --table-row-hover-bg: #071525;
+  --table-row-hover-text: #c8d4df;
+  --table-row-hover-line: rgba(0, 140, 200, 0.28);
+  --input-bg: #000c17;
+  --input-border: rgba(0, 170, 255, 0.35);
+  --sidebar-bg: #141414;
+  --success-color: #52c41a;
+  /* 按钮:克制的大屏风格(无霓虹发光) */
+  --btn-radius: 4px;
+  --btn-outline-bg: rgba(0, 16, 32, 0.92);
+  --btn-outline-bg-hover: rgba(0, 28, 52, 0.96);
+  --btn-outline-border: rgba(0, 120, 200, 0.42);
+  --btn-outline-border-hover: rgba(0, 160, 255, 0.55);
+  --btn-outline-text: #b7dff5;
+  --btn-primary-bg: #177ddc;
+  --btn-primary-bg-hover: #1d8cff;
+  --btn-primary-border: #177ddc;
+  /* 自定义分析 / 图表拖拽编辑(科技蓝) */
+  --custom-analysis-bg: #000510;
+  --custom-analysis-text: #ffffff;
+  --custom-analysis-sidebar-bg: #000c17;
+  --custom-analysis-border: rgba(0, 170, 255, 0.35);
+  --custom-analysis-tab-text: #b7dff5;
+  --custom-analysis-tab-active-text: #ffffff;
+  --custom-analysis-tab-active-bg: rgba(24, 144, 255, 0.18);
+  --custom-analysis-content-bg: #000510;
+  --drag-chart-page-bg: #000510;
+  --drag-chart-canvas-bg: #0a1628;
+  --drag-chart-canvas-border: rgba(0, 170, 255, 0.35);
+  --drag-chart-panel-bg: #000c17;
+  --drag-chart-panel-border: rgba(0, 170, 255, 0.35);
+  --drag-chart-text: #ffffff;
+  --drag-chart-label: #ffffff;
+  --drag-chart-muted: #b7dff5;
+  --drag-chart-header-bg: linear-gradient(90deg, #001529 0%, #002a5c 100%);
+  --drag-chart-header-text: #ffffff;
+  --drag-chart-drawer-collapsed-bg: linear-gradient(180deg, #001529 0%, #002a5c 100%);
+  --drag-chart-drawer-collapsed-text: #ffffff;
+  --drag-chart-drawer-collapsed-border: rgba(0, 170, 255, 0.35);
+  --drag-chart-ruler-color: #3a6ea5;
+  --drag-chart-ruler-bg: #061020;
+  --drag-chart-corner-color: #b7dff5;
+  --drag-chart-tab-text: #b7dff5;
+  --drag-chart-tab-active-text: #ffffff;
+  --drag-chart-divider: rgba(0, 170, 255, 0.25);
+  --drag-chart-tree-hover: rgba(24, 144, 255, 0.12);
+}

+ 109 - 195
src/views/admin/cockpitManage/Index.vue

@@ -1,75 +1,89 @@
 <template>
-  <div class="map-ditu">
-    <Tmap ref="map" :maplist="maplist" @feature-click="featureClick"></Tmap>
-    <div class="statistics">
-      <div class="ledata">
-        <selecttree
-          placeholder="请选择所属公司"
-          :list="parentOpt"
-          type="1"
-          v-model="companyCode"
-          @change="parentChange"
-          :defaultParentProps="{
-            children: 'children',
-            label: 'companyName',
-            value: 'codeNumber',
-          }"
-        >
-        </selecttree>
+  <div class="cockpit-dashboard-page map-ditu">
+    <Tmap
+      ref="map"
+      class="cockpit-dashboard__map"
+      :maplist="maplist"
+      @feature-click="featureClick"
+    />
 
-        <p>
-          <span class="SpText">已接入风场数:</span>
-          {{ totalList?.fieldSumNumber ? totalList.fieldSumNumber : 0 }}
-          座
-        </p>
-        <!-- <p>
-          <span class="SpText">已完成分析风场:</span>
-          {{
-            totalList?.analysisFinishNumber ? totalList.analysisFinishNumber : 0
-          }}
-          个
-        </p> -->
-        <!-- <p>
-          <span class="SpText">未完成分析风场:</span>
-          {{
-            totalList?.analysisUnFinishedNumber
-              ? totalList.analysisUnFinishedNumber
-              : 0
-          }}
-          个
-        </p> -->
-        <p>
-          <span class="SpText">已接入风机数:</span>
-          {{ totalList?.engineGroupNumber ? totalList.engineGroupNumber : 0 }}
-          台
-        </p>
-        <!-- <p>
-          <span class="SpText">风场状态:</span>
-          <span class="red"></span>
-          <span class="yellow"></span>
-          <span class="green"></span>
-        </p> -->
-        <el-switch
-          v-model="value1"
-          active-text="显示"
-          inactive-text="隐藏"
-          @change="handleSwitchChange"
+    <div class="cockpit-dashboard__overlay">
+      <!-- 左侧:统计面板始终显示;其余面板由 switch 控制 -->
+      <aside class="cockpit-dashboard__left">
+        <section
+          class="cockpit-panel cockpit-panel--stats cockpit-panel--compact"
         >
-        </el-switch>
-      </div>
-      <leftdata v-show="ShowRi" class="task"></leftdata>
+          <selecttree
+            placeholder="请选择所属公司"
+            :list="parentOpt"
+            type="1"
+            v-model="companyCode"
+            @change="parentChange"
+            :defaultParentProps="{
+              children: 'children',
+              label: 'companyName',
+              value: 'codeNumber',
+            }"
+          />
+          <p class="cockpit-stats__row">
+            <span class="SpText">已接入风场数:</span>
+            <span>{{ totalList?.fieldSumNumber || 0 }} 座</span>
+          </p>
+          <p class="cockpit-stats__row">
+            <span class="SpText">已接入风机数:</span>
+            <span>{{ totalList?.engineGroupNumber || 0 }} 台</span>
+          </p>
+
+          <div class="cockpit-stats__switch">
+            <el-switch
+              v-model="value1"
+              active-text="显示"
+              inactive-text="隐藏"
+              @change="handleSwitchChange"
+            />
+          </div>
+        </section>
+
+        <template v-if="ShowRi">
+          <section class="cockpit-panel cockpit-panel--analysis-history">
+            <Rightdata
+              panel="analysis-history"
+              :maplistArr="maplistArr"
+              :defaultdata="defaultdata"
+            />
+          </section>
+
+          <section
+            class="cockpit-panel cockpit-panel--task cockpit-panel--compact"
+            v-hasPermi="['home:performance:performanceData']"
+          >
+            <Leftdata panel="task" />
+          </section>
+        </template>
+      </aside>
+
+      <div v-show="ShowRi" class="cockpit-dashboard__center-spacer" />
+
+      <!-- 右侧:健康 / 健康数据与业务 Tab -->
+      <aside
+        v-show="ShowRi"
+        class="cockpit-dashboard__right"
+        v-hasPermi="['home:performance:performanceData']"
+      >
+        <section class="cockpit-panel cockpit-panel--health">
+          <CockpitHealthPanel
+            :maplistArr="maplistArr"
+            :defaultdata="defaultdata"
+          />
+        </section>
+
+        <section class="cockpit-panel cockpit-panel--inbound">
+          <Leftdata panel="inbound" />
+        </section>
+      </aside>
     </div>
 
-    <Rightdata
-      v-show="ShowRi"
-      v-hasPermi="['home:performance:performanceData']"
-      ref="childRef"
-      :maplistArr="maplistArr"
-      :defaultdata="defaultdata"
-      class="ridata"
-    >
-    </Rightdata>
-    <router-view></router-view>
+    <router-view />
   </div>
 </template>
 
@@ -82,6 +96,7 @@ import {
 import Tmap from "@/components/map";
 import Rightdata from "./component/rightdata.vue";
 import Leftdata from "./component/leftdata.vue";
+import CockpitHealthPanel from "./component/CockpitHealthPanel.vue";
 
 export default {
   name: "Index",
@@ -90,15 +105,12 @@ export default {
     Rightdata,
     selecttree,
     Leftdata,
+    CockpitHealthPanel,
   },
   data() {
     return {
       ShowRi: true,
-      treeval: "",
       value1: true,
-      treeval: "", // 绑定的输入框值
-      showTree: false, // 控制树列表显示
-      treeData: [],
       maplist: [],
       maplistArr: {},
       totalList: [],
@@ -112,34 +124,30 @@ export default {
     this.GETtotal();
   },
   mounted() {
-    //模拟地图上的点位
-    const data = this.maplist;
-    // data.forEach((element) => {
-    //   console.log(element);
-    //   // this.$refs.map.addMarker({ point: [116.40740,39.90420], val: "1" });
-    // });
+    this.restoreMapMarkers();
+  },
+  activated() {
+    this.restoreMapMarkers();
   },
   methods: {
-    // 获取总数
+    restoreMapMarkers() {
+      if (!this.maplistArr || !Object.keys(this.maplistArr).length) return;
+      this.$nextTick(() => {
+        this.parentChange(this.maplistArr);
+      });
+    },
     GETtotal() {
       getCompanyFieldNumberVo().then((res) => {
         this.totalList = res.data;
       });
     },
-    // 获取企业数
     async GETtree() {
       const res = await getSysOrganizationAuthTreeByRoleId();
-      const treedata = res.data;
-      const processedData = this.processTreeData(treedata);
+      const processedData = this.processTreeData(res.data);
       this.parentOpt = processedData;
       this.defaultdata = res.data[0];
       this.parentChange(this.defaultdata);
-      // const firstLayer = this.findFirstFieldLayer(processedData);
-      // if (firstLayer) {
-      //   this.parentChange(  this.defaultdata);
-      // }
     },
-    //过滤数据
     processTreeData(treeData) {
       const processedData = [];
       function processNode(node) {
@@ -147,9 +155,7 @@ export default {
           node.companyName = node.fieldName;
         }
         if (node.children && node.children.length > 0) {
-          node.children.forEach((child) => {
-            processNode(child);
-          });
+          node.children.forEach((child) => processNode(child));
         }
       }
       treeData.forEach((root) => {
@@ -158,73 +164,52 @@ export default {
       });
       return processedData;
     },
-    handleTreeData() {
-      this.treeData = this.processTreeData(this.treeData);
-    },
     parseCoordinates(input) {
       if (input && typeof input === "string") {
         return input.split(",").map(Number);
       }
-      // debugger;
       return [];
     },
     parentChange(data) {
-      //data为当前选中对象
-      this.$refs.map.clearMarkers();
       this.maplist = data;
       this.maplistArr = data;
+      const mapRef = this.$refs.map;
+      if (!mapRef || typeof mapRef.clearMarkers !== "function") {
+        return;
+      }
+      mapRef.clearMarkers();
       if (data.codeType === "field") {
         if (this.parseCoordinates(data.longitudeAndLatitudeString).length > 0) {
-          this.$refs.map.addMarker({
+          mapRef.addMarker({
             point: this.parseCoordinates(data.longitudeAndLatitudeString),
             val: data.analysisState,
             ...data,
           });
           return;
         }
-        this.$refs.map.clearMarkers();
+        mapRef.clearMarkers();
       } else {
-        const dataMapList = data.children;
-        dataMapList.forEach((element) => {
+        (data.children || []).forEach((element) => {
           if (
             this.parseCoordinates(element.longitudeAndLatitudeString).length >
               0 &&
             element.codeType === "field"
           ) {
-            this.$refs.map.addMarker({
+            mapRef.addMarker({
               point: this.parseCoordinates(element.longitudeAndLatitudeString),
               val: element.analysisState,
               ...element,
             });
-            return;
           }
-          this.$refs.map.clearMarkers();
         });
       }
     },
-    findFirstFieldLayer(data) {
-      for (const item of data) {
-        if (item.codeType === "field") {
-          return item;
-        }
-        if (item.children && item.children.length > 0) {
-          const childResult = this.findFirstFieldLayer(item.children);
-          if (childResult) {
-            return childResult;
-          }
-        }
-      }
-      return null;
-    },
     featureClick(data) {
       const val = data.val;
       if (val === "-1" || val === -1 || val === 10) {
         this.$message.error("当前风场未完成分析");
       } else if (val === "0" || val === 0) {
-        this.$message({
-          message: "当前风场正在分析中",
-          type: "warning",
-        });
+        this.$message({ message: "当前风场正在分析中", type: "warning" });
       } else if (val === "1" || val === 1 || val === "30" || val === 30) {
         this.$router.push({
           path: "cockpitManage/electronic-map",
@@ -235,84 +220,13 @@ export default {
         });
       }
     },
-    handleSwitchChange() {
-      this.ShowRi = !this.ShowRi;
+    handleSwitchChange(val) {
+      this.ShowRi = val;
     },
   },
 };
 </script>
 
-<style lang="scss" scoped>
-.map-ditu {
-  //  min-width: 86.9vw;
-  //  max-width: 94.9vw;
-  height: calc(100vh - 60px);
-  // height: 100vh;
-  position: relative;
-}
-
-.statistics {
-  position: absolute;
-  top: 20px; /* 距离页面顶部20px */
-  left: 60px;
-  display: grid;
-  grid-template-rows: auto auto; /* 为 ledata 和 task 分配行 */
-  grid-gap: 20px; /* 在 ledata 和 task 之间设置间距 */
-
-  .ledata {
-    font-size: 14px;
-    width: 300px;
-    background: rgba(0, 128, 128, 0.8);
-    padding: 10px;
-    color: #fff;
-    border-radius: 5px;
-    p {
-      line-height: 24px;
-
-      .SpText {
-        display: inline-block;
-        width: 120px;
-        text-align: right;
-      }
-
-      .red,
-      .yellow,
-      .green {
-        display: inline-block;
-        width: 30px;
-        height: 12px;
-        margin-right: 5px;
-      }
-
-      .red {
-        background-color: #e16757;
-      }
-
-      .yellow {
-        background-color: #eecb5f;
-      }
-
-      .green {
-        background-color: #7ecf51;
-      }
-    }
-  }
-
-  .task {
-    // background: #f4f4f4;
-    // padding: 10px;
-    color: #333;
-    border-radius: 5px;
-  }
-}
-
-.ridata {
-  position: absolute;
-  top: 20px;
-  right: 20px;
-}
-
-::v-deep .el-switch__label.is-active {
-  color: #fff;
-}
+<style lang="scss">
+@import "./cockpit-dashboard.scss";
 </style>

+ 1601 - 0
src/views/admin/cockpitManage/cockpit-dashboard.scss

@@ -0,0 +1,1601 @@
+/* 驾驶舱:布局 + 主题(全局,勿 scoped,以便作用于子组件) */
+.cockpit-dashboard-page {
+  --cockpit-th-height: 32px;
+  --cockpit-tr-height: 40px;
+  --cockpit-td-padding-x: 8px;
+  --cockpit-table-stripe-odd: #1a2a4f;
+  --cockpit-table-stripe-even: #0f1f3d;
+  --cockpit-table-visible-rows: 4;
+  --cockpit-table-body-h: calc(
+    var(--cockpit-tr-height) * var(--cockpit-table-visible-rows)
+  );
+  --cockpit-table-block-h: calc(
+    var(--cockpit-th-height) + var(--cockpit-table-body-h)
+  );
+  /* 健康 Tab:环图 + 表格标题 + 4 行表,避免固定过高留白 */
+  --cockpit-health-chart-h: 150px;
+  --cockpit-health-abnormal-kpi-h: 76px;
+  --cockpit-health-abnormal-pane-h: calc(
+    32px + var(--cockpit-health-abnormal-kpi-h) + 12px + 34px +
+      var(--cockpit-table-block-h)
+  );
+  --cockpit-health-pane-h: max(
+    calc(
+      32px + var(--cockpit-health-chart-h) + 8px + 30px +
+        var(--cockpit-table-block-h)
+    ),
+    var(--cockpit-health-abnormal-pane-h)
+  );
+  /* 入库 Tab:副标题 + 表头 + 4 行表(缩小底部冗余预留) */
+  --cockpit-inbound-pane-h: calc(32px + var(--cockpit-table-block-h));
+
+  position: relative;
+  width: 100%;
+  height: calc(100vh - 60px);
+  overflow: hidden;
+  background: var(--cockpit-page-bg, #f0f2f5);
+  box-sizing: border-box;
+
+  *,
+  *::before,
+  *::after {
+    box-sizing: border-box;
+  }
+
+  .cockpit-dashboard__map {
+    position: absolute;
+    inset: 0;
+    z-index: 0;
+  }
+
+  .cockpit-dashboard__overlay {
+    position: relative;
+    z-index: 2;
+    display: flex;
+    align-items: flex-start;
+    justify-content: space-between;
+    height: 100%;
+    padding: 10px 12px;
+    gap: 10px;
+    pointer-events: none;
+  }
+
+  .cockpit-dashboard__left,
+  .cockpit-dashboard__right {
+    flex: 0 0 308px;
+    width: 308px;
+    max-height: 100%;
+    overflow-x: hidden;
+    overflow-y: auto;
+    display: flex;
+    flex-direction: column;
+    gap: 10px;
+    pointer-events: auto;
+    scrollbar-width: thin;
+    scrollbar-color: rgba(0, 140, 200, 0.45) transparent;
+  }
+
+  .cockpit-dashboard__left::-webkit-scrollbar,
+  .cockpit-dashboard__right::-webkit-scrollbar {
+    width: 4px;
+  }
+
+  .cockpit-dashboard__left::-webkit-scrollbar-thumb,
+  .cockpit-dashboard__right::-webkit-scrollbar-thumb {
+    border-radius: 4px;
+    background: rgba(0, 150, 220, 0.45);
+  }
+
+  .cockpit-dashboard__center-spacer {
+    flex: 1 1 auto;
+    min-width: 0;
+    pointer-events: none;
+  }
+
+  /* —— 统一面板容器 —— */
+  .cockpit-panel {
+    flex-shrink: 0;
+    border-radius: var(--cockpit-panel-radius, 8px);
+    padding: 10px 12px 12px;
+    background: var(--cockpit-panel-bg, #ffffff);
+    border: 1px solid var(--cockpit-panel-border, #ebeef5);
+    color: var(--cockpit-panel-text, #303133);
+    box-shadow: var(--cockpit-panel-shadow, 0 2px 8px rgba(0, 0, 0, 0.06));
+
+    &::after {
+      display: none !important;
+      content: none !important;
+    }
+  }
+
+  .cockpit-panel--compact {
+    padding: 10px 12px;
+  }
+
+  /* 面板内标题(含子组件 h3) */
+  .cockpit-panel__title,
+  .cockpit-panel h3,
+  .cockpit-panel .backbone h3,
+  .cockpit-panel .BOXYI > h3,
+  .cockpit-panel .centeredh3 {
+    margin: 0 0 10px;
+    padding: 0 0 8px;
+    font-size: 14px;
+    font-weight: 600;
+    line-height: 1.4;
+    color: var(--cockpit-panel-title, #303133);
+    border-bottom: 1px solid var(--cockpit-panel-divider, #ebeef5);
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    width: 100%;
+  }
+
+  .cockpit-panel .centeredh3 span {
+    font-size: 12px;
+    font-weight: 400;
+    color: var(--cockpit-accent, var(--primary-color, #82780c));
+  }
+
+  .cockpit-panel--stats {
+    .cockpit-stats__row {
+      display: flex;
+      align-items: center;
+      justify-content: space-between;
+      font-size: 13px;
+      line-height: 28px;
+      color: var(--cockpit-panel-text, #303133);
+
+      .SpText {
+        color: var(--cockpit-panel-muted, #909399);
+      }
+    }
+
+    .cockpit-stats__switch {
+      margin-top: 6px;
+      display: flex;
+      justify-content: flex-end;
+    }
+
+    .el-select,
+    .el-input__inner {
+      width: 100%;
+    }
+  }
+
+  /* 子组件根:透明,由面板承载外观 */
+  .cockpit-panel .backbone,
+  .cockpit-panel .BOXYI,
+  .cockpit-panel .BOX {
+    width: 100% !important;
+    background: transparent !important;
+    padding: 0 !important;
+    margin: 0 !important;
+    border: none !important;
+    border-radius: 0 !important;
+    color: inherit !important;
+    box-shadow: none !important;
+  }
+
+  .cockpit-panel--data-tabs .cockpit-inbound-wrap {
+    margin-top: 12px;
+    padding-top: 12px;
+    border-top: 1px solid var(--cockpit-panel-divider, #ebeef5);
+  }
+
+  /* 表头条(与 el-table thead 同高) */
+  .cockpit-panel .titleJQ,
+  .cockpit-panel .titleYC,
+  .cockpit-panel .cockpit-inbound-table-head {
+    margin: 0 0 6px;
+    padding: 0 8px;
+    min-height: var(--cockpit-th-height);
+    height: var(--cockpit-th-height);
+    line-height: var(--cockpit-th-height);
+    font-size: 12px;
+    border-radius: 2px;
+    background: var(--cockpit-table-header-bg, #f5f7fa) !important;
+    color: var(--cockpit-panel-muted, #909399) !important;
+    box-sizing: border-box;
+  }
+
+  .cockpit-panel .cockpit-inbound-table-head {
+    line-height: normal;
+    display: grid;
+    align-items: center;
+  }
+
+  /* el-table 表头:含 has-gutter 时高度一致 */
+  .cockpit-panel .el-table thead th.el-table__cell,
+  .cockpit-panel .el-table thead.has-gutter th.el-table__cell,
+  .cockpit-panel .el-table thead th.gutter,
+  .cockpit-panel .el-table thead.has-gutter th.gutter {
+    height: var(--cockpit-th-height) !important;
+    padding: 0 4px !important;
+    box-sizing: border-box;
+  }
+
+  .cockpit-panel .el-table thead.has-gutter tr {
+    height: var(--cockpit-th-height) !important;
+  }
+
+  .cockpit-panel .el-table thead th.gutter,
+  .cockpit-panel .el-table thead.has-gutter th.gutter {
+    display: table-cell !important;
+    width: 6px !important;
+    padding: 0 !important;
+    vertical-align: middle;
+  }
+
+  .cockpit-panel .el-table thead th .cell {
+    line-height: var(--cockpit-th-height);
+    height: var(--cockpit-th-height);
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    padding: 0 4px;
+    box-sizing: border-box;
+  }
+
+  .cockpit-panel .el-table thead th.is-left .cell,
+  .cockpit-panel .el-table thead th.cockpit-health-col-name .cell {
+    justify-content: flex-start;
+  }
+
+  /* 表体:固定 4 行高度,两表一致 */
+  .cockpit-panel .cockpit-table-block .el-table__body-wrapper {
+    max-height: var(--cockpit-table-body-h) !important;
+    min-height: var(--cockpit-table-body-h) !important;
+    height: var(--cockpit-table-body-h) !important;
+    overflow-y: auto !important;
+  }
+
+  /* 自动滚动列表:隐藏滚动条,保留 programmatic scroll */
+  .cockpit-panel .cockpit-table-block .el-table__body-wrapper,
+  .cockpit-panel #Tabtab .el-table__body-wrapper,
+  .cockpit-panel .cockpit-unified-table .el-table__body-wrapper {
+    scrollbar-width: none !important;
+    -ms-overflow-style: none !important;
+  }
+
+  .cockpit-panel
+    .cockpit-table-block
+    .el-table__body-wrapper::-webkit-scrollbar,
+  .cockpit-panel #Tabtab .el-table__body-wrapper::-webkit-scrollbar,
+  .cockpit-panel
+    .cockpit-unified-table
+    .el-table__body-wrapper::-webkit-scrollbar {
+    width: 0 !important;
+    height: 0 !important;
+    display: none !important;
+  }
+
+  .cockpit-panel .cockpit-table-block {
+    min-height: var(--cockpit-table-block-h);
+  }
+
+  .cockpit-panel .cockpit-table-block > .titleYC,
+  .cockpit-panel .cockpit-table-block > .cockpit-inbound-table-head {
+    margin-bottom: 0 !important;
+  }
+
+  .cockpit-panel .cockpit-table-block .cockpit-tabroll-table {
+    flex: 1;
+    min-height: 0;
+  }
+
+  .cockpit-panel .cockpit-table-block .el-table__body tr {
+    height: var(--cockpit-tr-height) !important;
+  }
+
+  .cockpit-panel .cockpit-table-block .el-table__body td.el-table__cell {
+    height: var(--cockpit-tr-height) !important;
+    padding: 0 !important;
+    box-sizing: border-box;
+    border-bottom: none !important;
+  }
+
+  .cockpit-inbound-table-wrap.cockpit-table-block {
+    display: flex;
+    flex-direction: column;
+  }
+
+  .cockpit-panel .cockpit-table-block .el-table__body td.el-table__cell .cell {
+    line-height: var(--cockpit-tr-height);
+    height: var(--cockpit-tr-height);
+    display: flex;
+    align-items: center;
+    padding: 0 var(--cockpit-td-padding-x) !important;
+    box-sizing: border-box;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    white-space: nowrap;
+  }
+
+  /* 滚动列表表格 */
+  .cockpit-panel #Tabtab.el-table,
+  .cockpit-panel #Tabtab .el-table__cell {
+    background: transparent !important;
+    color: var(--cockpit-panel-text, #606266) !important;
+    font-size: 12px;
+    border-color: var(--cockpit-panel-divider, #ebeef5) !important;
+  }
+
+  .cockpit-panel #Tabtab th.el-table__cell {
+    background: var(--cockpit-table-header-bg, #f5f7fa) !important;
+    color: var(--cockpit-panel-muted, #909399) !important;
+  }
+
+  .cockpit-panel #Tabtab .el-table__row:nth-child(2n) td {
+    background: var(--cockpit-table-stripe, #fafafa) !important;
+  }
+
+  .cockpit-panel .cockpit-analysis-chart {
+    width: 100%;
+    height: 160px;
+  }
+
+  .cockpit-panel--analysis-history .cockpit-analysis-chart {
+    height: 132px;
+    margin-top: 4px;
+  }
+
+  .cockpit-panel--analysis-history .cockpit-history-block {
+    margin-top: 10px;
+    padding-top: 10px;
+    border-top: 1px solid var(--cockpit-panel-divider, #ebeef5);
+  }
+
+  .cockpit-panel--analysis-history .cockpit-section-title {
+    margin-bottom: 8px;
+  }
+
+  .cockpit-scroll-table {
+    border-radius: 2px;
+    overflow: hidden;
+  }
+
+  /* 统一列表表(历史 / 健康 / 入库 / 异常) */
+  .cockpit-unified-table {
+    background: transparent;
+  }
+
+  .cockpit-unified-table-head {
+    display: grid !important;
+    align-items: center;
+    margin: 0 !important;
+    padding: 0 var(--cockpit-td-padding-x) !important;
+    min-height: var(--cockpit-th-height);
+    height: var(--cockpit-th-height);
+    line-height: var(--cockpit-th-height);
+    font-size: 12px;
+    font-weight: 500;
+    border: none !important;
+    border-radius: 0;
+    box-sizing: border-box;
+
+    span {
+      margin: 0 !important;
+      padding: 0;
+      text-align: center;
+      overflow: hidden;
+      text-overflow: ellipsis;
+      white-space: nowrap;
+    }
+
+    span:first-child {
+      text-align: left !important;
+    }
+
+    &--history {
+      grid-template-columns: 28% 38% 34%;
+    }
+
+    &--health {
+      grid-template-columns: 38% 15% 15% 15% 17%;
+    }
+
+    &--inbound-import {
+      grid-template-columns: 42% 58%;
+    }
+
+    &--inbound-two,
+    &--abnormal-two {
+      grid-template-columns: 50% 50%;
+    }
+  }
+
+  .cockpit-unified-table-head--inbound-import .cockpit-inbound-col-data {
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    gap: 8px;
+    padding-right: 0;
+  }
+
+  .cockpit-unified-table .cockpit-tabroll-table,
+  .cockpit-unified-table #Tabtab {
+    width: 100% !important;
+  }
+
+  .cockpit-unified-table #Tabtab.el-table,
+  .cockpit-unified-table #Tabtab::before {
+    background: transparent !important;
+  }
+
+  .cockpit-unified-table #Tabtab .el-table__body,
+  .cockpit-unified-table #Tabtab .el-table__body-wrapper table {
+    width: 100% !important;
+    table-layout: fixed !important;
+  }
+
+  .cockpit-unified-table #Tabtab .el-table__body td.el-table__cell {
+    border: none !important;
+    color: #ffffff;
+    vertical-align: middle;
+  }
+
+  .cockpit-unified-table
+    #Tabtab
+    .el-table__body
+    tr:nth-child(odd)
+    td.el-table__cell {
+    background: var(--cockpit-table-stripe-odd) !important;
+    color: #ffffff !important;
+  }
+
+  .cockpit-unified-table
+    #Tabtab
+    .el-table__body
+    tr:nth-child(even)
+    td.el-table__cell {
+    background: var(--cockpit-table-stripe-even) !important;
+    color: #ffffff !important;
+  }
+
+  .cockpit-unified-table #Tabtab .el-table__body tr:hover > td.el-table__cell {
+    background: #182544 !important; /* 稍微加深的蓝色 */
+    color: rgba(255, 255, 255, 0.9) !important;
+  }
+
+  .cockpit-unified-table #Tabtab .el-table__body td.el-table__cell .cell {
+    display: flex !important;
+    align-items: center !important;
+    width: 100%;
+    box-sizing: border-box;
+  }
+
+  /* 表体除第一列外居中 */
+  .cockpit-unified-table
+    #Tabtab
+    .el-table__body
+    tr
+    td.el-table__cell:not(:first-child)
+    .cell {
+    justify-content: center !important;
+    text-align: center !important;
+  }
+
+  .cockpit-unified-table
+    #Tabtab
+    .el-table__body
+    tr
+    td.el-table__cell:nth-child(n + 2)
+    .cell {
+    justify-content: center !important;
+    text-align: center !important;
+  }
+
+  /* 第一列数据强制左对齐 */
+  .cockpit-unified-table
+    #Tabtab
+    .el-table__body
+    td.el-table__cell:first-child
+    .cell,
+  .cockpit-unified-table #Tabtab .el-table__body tr td:first-child .cell {
+    justify-content: flex-start !important;
+    text-align: left !important;
+  }
+
+  /* 表头与表体列宽对齐 */
+  .cockpit-unified-table--history #Tabtab colgroup col:nth-child(1) {
+    width: 28% !important;
+  }
+
+  .cockpit-unified-table--history #Tabtab colgroup col:nth-child(2) {
+    width: 38% !important;
+  }
+
+  .cockpit-unified-table--history #Tabtab colgroup col:nth-child(3) {
+    width: 34% !important;
+  }
+
+  .cockpit-unified-table--health #Tabtab colgroup col:nth-child(1) {
+    width: 38% !important;
+  }
+
+  .cockpit-unified-table--health #Tabtab colgroup col:nth-child(2),
+  .cockpit-unified-table--health #Tabtab colgroup col:nth-child(3),
+  .cockpit-unified-table--health #Tabtab colgroup col:nth-child(4) {
+    width: 15% !important;
+  }
+
+  .cockpit-unified-table--health #Tabtab colgroup col:nth-child(5) {
+    width: 17% !important;
+  }
+
+  .cockpit-unified-table--inbound-import #Tabtab colgroup col:nth-child(1) {
+    width: 42% !important;
+  }
+
+  .cockpit-unified-table--inbound-import #Tabtab colgroup col:nth-child(2) {
+    width: 58% !important;
+  }
+
+  .cockpit-unified-table--inbound-two #Tabtab colgroup col:nth-child(1),
+  .cockpit-unified-table--abnormal-two #Tabtab colgroup col:nth-child(1) {
+    width: 50% !important;
+  }
+
+  .cockpit-unified-table--inbound-two #Tabtab colgroup col:nth-child(2),
+  .cockpit-unified-table--abnormal-two #Tabtab colgroup col:nth-child(2) {
+    width: 50% !important;
+  }
+
+  .cockpit-section-title {
+    margin: 0 0 8px;
+    padding: 0;
+    border-bottom: none;
+    font-size: 14px;
+    font-weight: 600;
+    line-height: 1.4;
+  }
+
+  .cockpit-panel--stats .cockpit-stats__row {
+    line-height: 26px;
+  }
+
+  .cockpit-panel--stats .cockpit-stats__switch {
+    margin-top: 4px;
+  }
+
+  /* 任务统计数字块 */
+  .cockpit-panel .BOXsan {
+    width: 100%;
+    display: flex;
+    justify-content: space-between;
+    gap: 8px;
+  }
+
+  .cockpit-panel .YC01,
+  .cockpit-panel .YC02,
+  .cockpit-panel .YC03 {
+    flex: 1;
+    min-width: 0;
+  }
+
+  /* Tab 统一样式 */
+  .cockpit-panel .el-tabs__header {
+    margin: 0 0 10px;
+  }
+
+  .cockpit-panel .el-tabs__nav-wrap::after {
+    background-color: var(--cockpit-panel-divider, #ebeef5);
+  }
+
+  .cockpit-panel .el-tabs__item {
+    height: 32px;
+    line-height: 32px;
+    font-size: 13px;
+    color: var(--cockpit-panel-muted, #909399);
+    padding: 0 14px;
+  }
+
+  .cockpit-panel .el-tabs__item.is-active {
+    color: var(--cockpit-accent, var(--primary-color, #82780c));
+    font-weight: 600;
+  }
+
+  .cockpit-panel .el-tabs__active-bar {
+    background-color: var(--cockpit-accent, var(--primary-color, #82780c));
+  }
+
+  /* 表单控件 */
+  .cockpit-panel .el-input__inner,
+  .cockpit-panel .el-range-editor.el-input__inner,
+  .cockpit-panel .el-range-input {
+    background-color: var(--cockpit-input-bg, #ffffff) !important;
+    border-color: var(--cockpit-input-border, #dcdfe6) !important;
+    color: var(--cockpit-panel-text, #606266) !important;
+  }
+
+  .cockpit-panel .el-date-editor .el-range-separator {
+    color: var(--cockpit-panel-muted, #909399) !important;
+  }
+
+  .cockpit-panel .el-switch__label {
+    color: var(--cockpit-panel-muted, #909399);
+  }
+
+  .cockpit-panel .el-switch__label.is-active {
+    color: var(--cockpit-accent, var(--primary-color, #82780c)) !important;
+  }
+
+  .cockpit-panel--health .cockpit-health-table__head {
+    border-bottom: none;
+    margin-bottom: 8px;
+    padding-bottom: 0;
+  }
+
+  .cockpit-inbound-panel {
+    width: 100%;
+  }
+
+  .cockpit-inbound-body {
+    position: relative;
+    height: var(--cockpit-inbound-pane-h);
+    min-height: var(--cockpit-inbound-pane-h);
+    overflow: hidden;
+  }
+
+  .cockpit-inbound-pane {
+    position: absolute;
+    inset: 0;
+    overflow: hidden;
+    display: flex;
+    flex-direction: column;
+  }
+
+  .cockpit-panel--inbound .cockpit-inbound-pane-header {
+    margin: 2px 0 6px;
+  }
+
+  .cockpit-panel--inbound .cockpit-inbound-subtitle {
+    margin: 0;
+  }
+
+  .cockpit-inbound-pane .cockpit-inbound-table-wrap {
+    flex: 1;
+    min-height: 0;
+    display: flex;
+    flex-direction: column;
+  }
+
+  .cockpit-inbound-pane .cockpit-tabroll-table {
+    flex: 1;
+    min-height: 0;
+  }
+  .cockpit-inbound-pane-header {
+    display: flex;
+    justify-content: space-between;
+    align-items: center;
+    .cockpit-inbound-col-data {
+      font-size: 12px;
+      color: var(--cockpit-panel-muted, #909399);
+      cursor: pointer;
+      &:hover {
+        color: var(--cockpit-accent, #2979ff) !important;
+      }
+    }
+  }
+
+  .cockpit-inbound-subtitle {
+    margin: 8px 0 10px;
+    font-size: 14px;
+    font-weight: 600;
+    line-height: 1.3;
+    color: var(--cockpit-panel-title, #303133);
+  }
+
+  .cockpit-inbound-table-wrap {
+    border-radius: 6px;
+    overflow: hidden;
+  }
+
+  .cockpit-inbound-table-head {
+    display: grid !important;
+    align-items: center;
+    margin: 0 !important;
+    padding: 0 10px !important;
+    min-height: var(--cockpit-th-height);
+    height: var(--cockpit-th-height);
+    line-height: normal;
+    width: 100%;
+    box-sizing: border-box;
+
+    span {
+      margin: 0 !important;
+      font-size: 12px;
+    }
+
+    &--import {
+      grid-template-columns: 42% 58%;
+    }
+
+    .cockpit-inbound-col-name {
+      text-align: left;
+      white-space: nowrap;
+      overflow: hidden;
+      text-overflow: ellipsis;
+    }
+
+    .cockpit-inbound-col-data {
+      display: flex;
+      align-items: center;
+      justify-content: space-between;
+      gap: 8px;
+      padding-left: 6px;
+      box-sizing: border-box;
+
+      > span:first-child {
+        flex: 1;
+        text-align: right;
+        white-space: nowrap;
+        overflow: hidden;
+        text-overflow: ellipsis;
+      }
+    }
+
+    &--two {
+      grid-template-columns: 42% 58%;
+    }
+
+    .cockpit-inbound-col-extra {
+      text-align: right;
+      padding-right: 4px;
+    }
+  }
+
+  .cockpit-inbound-more-link {
+    flex-shrink: 0;
+    color: var(--cockpit-accent, #2979ff) !important;
+    cursor: pointer;
+    text-align: right !important;
+  }
+
+  .cockpit-inbound-table-wrap .tabroll-wrap,
+  .cockpit-inbound-table-wrap #Tabtab,
+  .cockpit-inbound-table-wrap #Tabtab .el-table__body,
+  .cockpit-inbound-table-wrap #Tabtab .el-table__body-wrapper,
+  .cockpit-inbound-table-wrap #Tabtab table {
+    width: 100% !important;
+  }
+
+  .cockpit-inbound-table-wrap #Tabtab table {
+    table-layout: fixed !important;
+  }
+
+  .cockpit-inbound-table-wrap #Tabtab colgroup col:first-child {
+    width: 42% !important;
+  }
+
+  .cockpit-inbound-table-wrap #Tabtab colgroup col:last-child {
+    width: 58% !important;
+  }
+
+  .cockpit-panel--inbound .centeredh3 {
+    display: none;
+  }
+
+  .cockpit-health-table .el-table th.el-table__cell {
+    background: var(--cockpit-table-header-bg, #f5f7fa) !important;
+    color: var(--cockpit-panel-muted, #909399) !important;
+    font-size: 12px;
+  }
+
+  .cockpit-health-table .el-table td.el-table__cell {
+    background: transparent !important;
+    color: var(--cockpit-panel-text, #606266) !important;
+    font-size: 12px;
+  }
+}
+
+/* —— 科技蓝大屏(参考设计稿) —— */
+html[data-theme="tech-blue"] .cockpit-dashboard-page {
+  --cockpit-page-bg: #020a16;
+  --cockpit-panel-border: rgba(0, 90, 140, 0.72);
+  --cockpit-panel-divider: rgba(0, 120, 200, 0.22);
+  --cockpit-panel-text: #c8e8f8;
+  --cockpit-panel-title: #ffffff;
+  --cockpit-panel-muted: rgba(168, 210, 235, 0.72);
+  --cockpit-panel-radius: 8px;
+  --cockpit-table-header-bg: rgba(0, 36, 64, 0.92);
+  --cockpit-table-row-bg: rgba(0, 18, 36, 0.55);
+  --cockpit-table-row-bg-alt: rgba(0, 24, 46, 0.72);
+  --cockpit-input-bg: rgba(0, 16, 32, 0.92);
+  --cockpit-input-border: rgba(0, 140, 210, 0.45);
+  --cockpit-accent: #00c8ff;
+  --cockpit-status-ok: #7ecf51;
+  --cockpit-status-warn: #eecb5f;
+  --cockpit-status-danger: #e16757;
+  --cockpit-kpi-cyan: #5ce1ff;
+
+  background-color: #020a16;
+  background-image: radial-gradient(
+      ellipse 80% 55% at 50% 38%,
+      rgba(12, 40, 88, 0.45) 0%,
+      transparent 68%
+    ),
+    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
+    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
+  background-size: 100% 100%, 24px 24px, 24px 24px;
+
+  .cockpit-dashboard__map {
+    filter: saturate(1.12) contrast(1.08) brightness(0.9);
+  }
+
+  .cockpit-dashboard__map::before {
+    content: "";
+    position: absolute;
+    inset: 0;
+    pointer-events: none;
+    z-index: 1;
+    background: radial-gradient(
+        ellipse 70% 48% at 50% 45%,
+        rgba(20, 86, 165, 0.12) 0%,
+        rgba(0, 0, 0, 0) 74%
+      ),
+      linear-gradient(
+        180deg,
+        rgba(0, 8, 20, 0.26) 0%,
+        rgba(0, 8, 20, 0) 18%,
+        rgba(0, 8, 20, 0) 82%,
+        rgba(0, 8, 20, 0.24) 100%
+      );
+  }
+
+  .cockpit-dashboard__map::after {
+    content: "";
+    position: absolute;
+    inset: 0;
+    pointer-events: none;
+    z-index: 1;
+    background-image: repeating-linear-gradient(
+      to bottom,
+      rgba(0, 235, 255, 0.04) 0,
+      rgba(0, 235, 255, 0.04) 1px,
+      transparent 1px,
+      transparent 4px
+    );
+    opacity: 0.45;
+  }
+
+  .cockpit-dashboard__left,
+  .cockpit-dashboard__right {
+    scrollbar-width: none;
+    -ms-overflow-style: none;
+
+    &::-webkit-scrollbar {
+      display: none;
+    }
+  }
+
+  .cockpit-panel {
+    position: relative;
+    overflow: hidden;
+    background: linear-gradient(
+      180deg,
+      rgba(6, 22, 45, 0.97) 0%,
+      rgba(4, 16, 32, 0.98) 52%,
+      rgba(2, 10, 22, 0.99) 100%
+    ) !important;
+    border: 1px solid var(--cockpit-panel-border) !important;
+    border-radius: var(--cockpit-panel-radius) !important;
+    box-shadow: inset 0 0 28px rgba(0, 130, 220, 0.1),
+      inset 0 1px 0 rgba(0, 210, 255, 0.12), 0 6px 28px rgba(0, 0, 0, 0.42) !important;
+    backdrop-filter: blur(12px);
+
+    &::before {
+      content: "";
+      position: absolute;
+      top: 0;
+      left: 6%;
+      right: 6%;
+      height: 1px;
+      background: linear-gradient(
+        90deg,
+        transparent,
+        rgba(0, 242, 255, 0.65),
+        transparent
+      );
+      pointer-events: none;
+      z-index: 1;
+    }
+
+    &::after {
+      content: "";
+      position: absolute;
+      inset: 0;
+      pointer-events: none;
+      border-radius: inherit;
+      box-shadow: inset 0 0 0 1px rgba(0, 186, 255, 0.18),
+        inset 0 0 24px rgba(0, 122, 210, 0.14);
+      z-index: 1;
+    }
+  }
+
+  /* section 盒子内部科技填充纹理 */
+  .cockpit-panel > * {
+    position: relative;
+    z-index: 2;
+  }
+
+  .cockpit-panel::before,
+  .cockpit-panel::after {
+    border-radius: inherit;
+  }
+
+  .cockpit-panel {
+    background-image: linear-gradient(
+        115deg,
+        rgba(0, 170, 255, 0.09) 0%,
+        rgba(0, 170, 255, 0) 34%
+      ),
+      linear-gradient(
+        180deg,
+        rgba(0, 255, 255, 0.05) 0%,
+        rgba(0, 255, 255, 0) 24%
+      ),
+      repeating-linear-gradient(
+        90deg,
+        rgba(0, 210, 255, 0.035) 0,
+        rgba(0, 210, 255, 0.035) 1px,
+        transparent 1px,
+        transparent 18px
+      ),
+      repeating-linear-gradient(
+        0deg,
+        rgba(0, 170, 220, 0.028) 0,
+        rgba(0, 170, 220, 0.028) 1px,
+        transparent 1px,
+        transparent 18px
+      ),
+      linear-gradient(
+        180deg,
+        rgba(6, 22, 45, 0.97) 0%,
+        rgba(4, 16, 32, 0.98) 52%,
+        rgba(2, 10, 22, 0.99) 100%
+      ) !important;
+    background-blend-mode: screen, screen, normal, normal, normal;
+  }
+
+  .cockpit-panel__title,
+  .cockpit-panel h3,
+  .cockpit-panel .backbone h3,
+  .cockpit-panel .BOXYI > h3,
+  .cockpit-panel .centeredh3 {
+    color: #ffffff;
+    font-size: 14px;
+    font-weight: 600;
+    letter-spacing: 0.02em;
+    border-bottom: 1px solid var(--cockpit-panel-divider);
+    padding: 0 0 8px;
+    margin-bottom: 10px;
+  }
+
+  .cockpit-panel .centeredh3 span {
+    color: #5ec8ff;
+    text-shadow: 0 0 10px rgba(86, 200, 255, 0.32);
+  }
+
+  .cockpit-panel__title,
+  .cockpit-panel h3,
+  .cockpit-panel .backbone h3,
+  .cockpit-panel .BOXYI > h3,
+  .cockpit-panel .centeredh3 {
+    text-shadow: 0 0 10px rgba(0, 170, 255, 0.28);
+  }
+
+  .cockpit-panel:not(.cockpit-panel--health):not(.cockpit-panel--inbound)
+    .el-tabs__item.is-active {
+    color: #00d4ff !important;
+  }
+
+  .cockpit-panel .el-tabs__active-bar {
+    background-color: #00aaff !important;
+  }
+
+  /* 统一列表表(科技蓝) */
+  .cockpit-unified-table-head {
+    background: linear-gradient(
+      180deg,
+      rgba(0, 36, 72, 0.72) 0%,
+      rgba(0, 24, 44, 0.58) 100%
+    ) !important;
+    color: #ffffff !important;
+    box-shadow: inset 0 -1px 0 rgba(0, 190, 255, 0.22);
+
+    span {
+      color: #ffffff !important;
+      font-weight: 400;
+      text-shadow: 0 0 8px rgba(0, 168, 255, 0.22);
+    }
+  }
+
+  .cockpit-unified-table #Tabtab .el-table__empty-text {
+    color: rgba(200, 228, 245, 0.65) !important;
+  }
+
+  .cockpit-panel .cockpit-section-title {
+    color: #ffffff;
+    text-shadow: none;
+  }
+
+  /* 接入统计 */
+  .cockpit-panel--stats {
+    .cockpit-stats__row {
+      color: var(--cockpit-panel-text);
+      font-size: 13px;
+
+      .SpText {
+        color: var(--cockpit-panel-muted);
+      }
+
+      > span:last-child {
+        color: #fff;
+        font-weight: 500;
+      }
+    }
+
+    .cockpit-stats__legend {
+      display: flex;
+      gap: 5px;
+      margin: 8px 0 6px;
+      height: 5px;
+    }
+
+    .cockpit-stats__legend-seg {
+      flex: 1;
+      border-radius: 2px;
+      opacity: 0.92;
+
+      &--ok {
+        background: var(--cockpit-status-ok);
+        box-shadow: 0 0 8px rgba(126, 207, 81, 0.45);
+      }
+
+      &--warn {
+        background: var(--cockpit-status-warn);
+        box-shadow: 0 0 8px rgba(238, 203, 95, 0.4);
+      }
+
+      &--danger {
+        background: var(--cockpit-status-danger);
+        box-shadow: 0 0 8px rgba(225, 103, 87, 0.4);
+      }
+    }
+
+    .el-select .el-input__inner {
+      height: 34px;
+      line-height: 34px;
+      font-weight: 600;
+      color: #fff !important;
+      background: var(--cockpit-input-bg) !important;
+      border-color: var(--cockpit-input-border) !important;
+      box-shadow: inset 0 0 0 1px rgba(0, 150, 220, 0.18),
+        0 0 12px rgba(0, 122, 210, 0.08);
+    }
+
+    .el-switch__label {
+      color: var(--cockpit-panel-muted);
+      font-size: 12px;
+
+      &.is-active {
+        color: var(--cockpit-kpi-cyan) !important;
+      }
+    }
+
+    .el-switch__core {
+      background: rgba(0, 35, 60, 0.95);
+      border-color: rgba(0, 150, 220, 0.5);
+    }
+
+    .el-switch.is-checked .el-switch__core {
+      border-color: var(--cockpit-accent);
+      background-color: rgba(0, 120, 200, 0.85);
+      box-shadow: 0 0 14px rgba(0, 190, 255, 0.35);
+    }
+  }
+
+  /* 分析 + 历史 */
+  .cockpit-panel--analysis-history {
+    .cockpit-analysis-chart {
+      height: 128px;
+    }
+
+    .cockpit-history-block {
+      border-top-color: var(--cockpit-panel-divider);
+    }
+
+    .el-date-editor.el-input__inner {
+      width: 100%;
+      max-width: none;
+      height: 30px;
+      font-size: 11px;
+      color: var(--cockpit-panel-text) !important;
+      background: var(--cockpit-input-bg) !important;
+      border-color: var(--cockpit-input-border) !important;
+    }
+
+    .el-range-separator,
+    .el-range-input {
+      color: var(--cockpit-panel-muted) !important;
+    }
+
+    .el-input__icon {
+      color: var(--cockpit-kpi-cyan) !important;
+    }
+  }
+
+  /* 任务统计 KPI(L 角描边) */
+  .cockpit-panel .cockpit-task-kpi {
+    gap: 8px;
+    margin-top: 2px;
+  }
+
+  .cockpit-panel .cockpit-task-kpi .YC02,
+  .cockpit-panel .cockpit-task-kpi .YC03 {
+    background-image: none !important;
+    width: auto !important;
+    flex: 1;
+    min-width: 0;
+    min-height: 76px;
+    margin-top: 0 !important;
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    justify-content: center;
+    gap: 6px;
+    cursor: pointer;
+    position: relative;
+    background: rgba(0, 22, 42, 0.65) !important;
+    border: none !important;
+    border-radius: 2px;
+    box-shadow: inset 0 0 0 1px rgba(0, 122, 200, 0.55),
+      inset 0 0 16px rgba(0, 72, 120, 0.3);
+    transition: box-shadow 0.2s;
+
+    &::before,
+    &::after {
+      content: "";
+      position: absolute;
+      width: 10px;
+      height: 10px;
+      border-color: rgba(0, 210, 255, 0.8);
+      border-style: solid;
+      pointer-events: none;
+    }
+
+    &::before {
+      top: 0;
+      left: 0;
+      border-width: 1px 0 0 1px;
+    }
+
+    &::after {
+      bottom: 0;
+      right: 0;
+      border-width: 0 1px 1px 0;
+    }
+
+    &:hover {
+      box-shadow: inset 0 0 0 1px rgba(0, 200, 255, 0.5),
+        0 0 14px rgba(0, 160, 255, 0.18);
+    }
+
+    strong {
+      font-size: 26px;
+      line-height: 1;
+      color: var(--cockpit-kpi-cyan);
+      text-shadow: 0 0 12px rgba(0, 200, 255, 0.35);
+    }
+
+    span {
+      font-size: 12px;
+      color: var(--cockpit-panel-muted);
+    }
+
+    .texyellow {
+      color: var(--cockpit-status-warn) !important;
+      text-shadow: 0 0 10px rgba(238, 203, 95, 0.35);
+    }
+
+    .textred {
+      color: var(--cockpit-status-danger) !important;
+      text-shadow: 0 0 10px rgba(225, 103, 87, 0.35);
+    }
+  }
+
+  .cockpit-panel .YC01 strong,
+  .cockpit-panel .YC02 strong {
+    color: #4bffff;
+  }
+
+  .cockpit-panel .YC02 span,
+  .cockpit-panel .YC01 span {
+    color: rgba(183, 223, 245, 0.85);
+  }
+
+  .cockpit-panel--health,
+  .cockpit-panel--inbound {
+    overflow: visible;
+  }
+
+  /* 自定义科技蓝 Tab(CockpitTechTabs) */
+  .cockpit-tech-tabs {
+    margin-bottom: 10px;
+  }
+
+  .cockpit-tech-tabs__track {
+    display: flex;
+    align-items: flex-end;
+    gap: 0;
+    min-height: 42px;
+    padding: 5px 10px 0;
+    background: rgba(0, 4, 12, 0.98);
+    border: 1px solid rgba(0, 95, 165, 0.45);
+    border-radius: 22px;
+    box-shadow: inset 0 1px 0 rgba(0, 70, 120, 0.2),
+      inset 0 -12px 20px rgba(0, 0, 0, 0.4);
+    position: relative;
+    overflow: hidden;
+  }
+
+  .cockpit-tech-tabs__list {
+    flex: 1;
+    display: flex;
+    align-items: flex-end;
+    min-width: 0;
+    min-height: 36px;
+    position: relative;
+    z-index: 1;
+  }
+
+  .cockpit-tech-tabs__item {
+    flex: 1;
+    min-width: 72px;
+    height: 34px;
+    margin: 0;
+    padding: 0 4px;
+    border: none;
+    background: transparent;
+    cursor: pointer;
+    position: relative;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    outline: none;
+
+    .cockpit-tech-tabs__label {
+      position: relative;
+      z-index: 3;
+      font-size: 13px;
+      line-height: 1;
+      color: rgba(170, 205, 230, 0.72);
+      transition: color 0.2s;
+      pointer-events: none;
+      user-select: none;
+    }
+
+    &:hover:not(.is-active) .cockpit-tech-tabs__label {
+      color: rgba(210, 235, 255, 0.95);
+    }
+
+    &.is-active {
+      flex: 1.12;
+      height: 36px;
+      margin-bottom: -1px;
+
+      .cockpit-tech-tabs__label {
+        color: #ffffff;
+        font-weight: 600;
+        text-shadow: 0 0 10px rgba(0, 220, 255, 0.35);
+      }
+    }
+  }
+
+  .cockpit-tech-tabs__shape {
+    position: absolute;
+    left: 4%;
+    right: 4%;
+    bottom: 0;
+    top: 0;
+    width: 92%;
+    height: 100%;
+    z-index: 1;
+    pointer-events: none;
+    filter: drop-shadow(0 2px 10px rgba(0, 160, 255, 0.55));
+  }
+
+  .cockpit-tech-tabs__baseline {
+    position: absolute;
+    left: 10px;
+    right: 10px;
+    bottom: 0;
+    height: 2px;
+    z-index: 0;
+    background: linear-gradient(
+      90deg,
+      #00f0ff 0%,
+      rgba(0, 190, 255, 0.85) 28%,
+      rgba(0, 140, 220, 0.5) 70%,
+      rgba(0, 90, 160, 0.25) 100%
+    );
+    box-shadow: 0 0 12px rgba(0, 230, 255, 0.75), 0 0 4px rgba(0, 255, 255, 0.5);
+  }
+
+  .cockpit-tech-tabs__extra {
+    flex-shrink: 0;
+    display: flex;
+    align-items: center;
+    gap: 8px;
+    padding: 0 4px 8px 8px;
+    position: relative;
+    z-index: 2;
+  }
+
+  .cockpit-tech-tabs__bolt {
+    display: none !important;
+  }
+
+  .cockpit-tech-tabs__chevron {
+    font-size: 14px;
+    color: #5ec8ff;
+    cursor: pointer;
+    text-shadow: 0 0 8px rgba(0, 200, 255, 0.6);
+
+    &:hover {
+      color: #9ef8ff;
+    }
+  }
+
+  /* 右侧统一 Tab:贴顶左对齐(健康 / 入库,图二) */
+  .cockpit-panel--health .cockpit-tech-tabs,
+  .cockpit-panel--inbound .cockpit-tech-tabs,
+  .cockpit-tech-tabs--panel {
+    margin-bottom: 6px;
+  }
+
+  .cockpit-panel--health .cockpit-tech-tabs--panel,
+  .cockpit-panel--inbound .cockpit-tech-tabs--panel,
+  .cockpit-tech-tabs--panel {
+    .cockpit-tech-tabs__track {
+      position: relative;
+      min-height: 36px;
+      padding: 0 28px 0 0;
+      background: transparent;
+      border: none;
+      border-radius: 0;
+      box-shadow: none;
+      overflow: visible;
+    }
+
+    .cockpit-tech-tabs__list {
+      flex: 1;
+      justify-content: flex-start;
+      gap: 6px;
+      min-height: 34px;
+    }
+
+    .cockpit-tech-tabs__item {
+      flex: 0 0 auto;
+      min-width: 64px;
+      height: 32px;
+      padding: 0 20px;
+
+      &.is-active {
+        flex: 0 0 auto;
+        height: 34px;
+        margin-bottom: 0;
+
+        &::after {
+          content: "";
+          position: absolute;
+          left: 8%;
+          right: 8%;
+          bottom: 0;
+          height: 2px;
+          background: #00f0ff;
+          box-shadow: 0 0 10px rgba(0, 240, 255, 0.85);
+          z-index: 4;
+          pointer-events: none;
+        }
+      }
+
+      &:not(.is-active) .cockpit-tech-tabs__label {
+        color: rgba(183, 223, 245, 0.5);
+        font-weight: 400;
+      }
+    }
+
+    .cockpit-tech-tabs__shape {
+      left: 0;
+      right: 0;
+      width: 100%;
+      filter: drop-shadow(0 2px 12px rgba(0, 170, 255, 0.5));
+    }
+
+    .cockpit-tech-tabs__baseline {
+      display: none;
+    }
+
+    .cockpit-tech-tabs__extra {
+      flex-shrink: 0;
+      margin-left: auto;
+      padding: 0 0 8px 8px;
+      position: static;
+      transform: none;
+    }
+  }
+
+  /* 入库表格:图二深色圆角容器 + 轻斑马纹 */
+  .cockpit-panel--inbound .cockpit-inbound-table-wrap {
+    border: 1px solid rgba(0, 110, 190, 0.4);
+    background: rgba(0, 16, 32, 0.75);
+    box-shadow: inset 0 0 16px rgba(0, 40, 80, 0.25);
+  }
+
+  .cockpit-panel--inbound .cockpit-inbound-more-link {
+    color: rgba(126, 212, 255, 0.95) !important;
+    cursor: pointer;
+  }
+
+  .cockpit-panel--health .cockpit-health-panel__tab-body {
+    height: var(--cockpit-health-pane-h);
+    min-height: var(--cockpit-health-pane-h);
+  }
+
+  .cockpit-panel--health .cockpit-health-panel__pane--abnormal {
+    justify-content: flex-start;
+  }
+
+  .cockpit-panel--health
+    .cockpit-health-panel__pane--abnormal
+    .cockpit-abnormal-panel {
+    height: auto;
+    flex: 0 0 auto;
+  }
+
+  .cockpit-panel--health .cockpit-abnormal-panel__subtitle,
+  .cockpit-panel--health .cockpit-abnormal-table__section-head {
+    color: #ffffff;
+    text-shadow: 0 0 8px rgba(0, 170, 255, 0.2);
+  }
+
+  .cockpit-panel--health .cockpit-abnormal-table__section-head {
+    background: rgba(0, 52, 96, 0.85);
+    border: 1px solid rgba(0, 120, 200, 0.35);
+  }
+
+  .cockpit-panel--health .cockpit-abnormal-kpi__card {
+    --cockpit-abnormal-kpi-bg: rgba(0, 28, 52, 0.75);
+    --cockpit-abnormal-kpi-corner: rgba(0, 210, 255, 0.85);
+  }
+
+  .cockpit-panel--health .cockpit-abnormal-kpi__value {
+    color: #5ce1ff;
+    text-shadow: 0 0 12px rgba(0, 200, 255, 0.35);
+  }
+
+  .cockpit-panel--health .cockpit-abnormal-kpi__label {
+    color: rgba(190, 215, 235, 0.88);
+  }
+
+  .cockpit-health-panel__subtitle,
+  .cockpit-inbound-subtitle {
+    color: #ffffff;
+    font-size: 14px;
+    text-shadow: 0 0 8px rgba(0, 170, 255, 0.2);
+  }
+
+  .cockpit-panel--health,
+  .cockpit-panel--inbound {
+    padding-top: 8px;
+  }
+
+  .cockpit-panel--health .cockpit-health-panel__subtitle {
+    margin-top: 4px;
+    padding-right: 4px;
+    border-bottom: none;
+  }
+
+  .cockpit-panel--inbound .cockpit-inbound-subtitle {
+    margin: 6px 0 8px;
+    border-bottom: none;
+  }
+}
+
+/* —— 非科技蓝:浅色统一 —— */
+html:not([data-theme="tech-blue"]) .cockpit-dashboard-page {
+  --cockpit-page-bg: #eef1f6;
+  --cockpit-panel-bg: #ffffff;
+  --cockpit-panel-border: #e4e7ed;
+  --cockpit-panel-divider: #ebeef5;
+  --cockpit-panel-text: #303133;
+  --cockpit-panel-title: #303133;
+  --cockpit-panel-muted: #909399;
+  --cockpit-panel-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
+  --cockpit-panel-radius: 8px;
+  --cockpit-table-header-bg: #f5f7fa;
+  --cockpit-table-stripe: #fafafa;
+  --cockpit-input-bg: #ffffff;
+  --cockpit-input-border: #dcdfe6;
+  --cockpit-accent: var(--primary-color, #82780c);
+
+  .cockpit-stats__legend {
+    display: none;
+  }
+
+  .cockpit-panel__title,
+  .cockpit-panel h3 {
+    border-bottom-color: #ebeef5;
+  }
+
+  .cockpit-tech-tabs__track {
+    background: #f0f2f5;
+    border: 1px solid #dcdfe6;
+    border-radius: 8px;
+    box-shadow: none;
+    padding: 4px;
+    min-height: 36px;
+  }
+
+  .cockpit-tech-tabs__baseline,
+  .cockpit-tech-tabs__shape {
+    display: none;
+  }
+
+  .cockpit-tech-tabs__bolt {
+    display: none !important;
+  }
+
+  .cockpit-tech-tabs__item {
+    height: 32px;
+    border-radius: 4px;
+
+    .cockpit-tech-tabs__label {
+      color: #909399;
+    }
+
+    &.is-active {
+      background: #ffffff;
+      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
+
+      .cockpit-tech-tabs__label {
+        color: var(--primary-color, #82780c);
+        font-weight: 600;
+        text-shadow: none;
+      }
+    }
+  }
+
+  .cockpit-tech-tabs__chevron {
+    color: var(--primary-color, #82780c);
+    text-shadow: none;
+  }
+
+  .cockpit-panel .cockpit-task-kpi .YC02,
+  .cockpit-panel .cockpit-task-kpi .YC03 {
+    background-image: none !important;
+    width: auto !important;
+    flex: 1;
+    min-height: 64px;
+    margin-top: 0 !important;
+    border: 1px solid #e4e7ed;
+    border-radius: 6px;
+    background: #f8fafc !important;
+  }
+
+  .cockpit-unified-table-head {
+    background: var(--cockpit-table-header-bg) !important;
+    color: var(--cockpit-panel-title) !important;
+
+    span {
+      color: var(--cockpit-panel-muted) !important;
+    }
+  }
+
+  .cockpit-unified-table #Tabtab .el-table__body tr:hover > td.el-table__cell {
+    background: var(--cockpit-table-stripe) !important;
+  }
+}

+ 235 - 0
src/views/admin/cockpitManage/component/CockpitAbnormalPanel.vue

@@ -0,0 +1,235 @@
+<template>
+  <div class="cockpit-abnormal-panel">
+    <div class="cockpit-abnormal-panel__subtitle">异常设备概览</div>
+
+    <div class="cockpit-abnormal-kpi">
+      <div class="cockpit-abnormal-kpi__card">
+        <span class="cockpit-abnormal-kpi__corner is-tl" aria-hidden="true" />
+        <span class="cockpit-abnormal-kpi__corner is-tr" aria-hidden="true" />
+        <span class="cockpit-abnormal-kpi__corner is-bl" aria-hidden="true" />
+        <span class="cockpit-abnormal-kpi__corner is-br" aria-hidden="true" />
+        <strong class="cockpit-abnormal-kpi__value">{{ normalTotal }}</strong>
+        <span class="cockpit-abnormal-kpi__label">正常总数</span>
+      </div>
+      <div
+        class="cockpit-abnormal-kpi__card cockpit-abnormal-kpi__card--danger"
+      >
+        <span class="cockpit-abnormal-kpi__corner is-tl" aria-hidden="true" />
+        <span class="cockpit-abnormal-kpi__corner is-tr" aria-hidden="true" />
+        <span class="cockpit-abnormal-kpi__corner is-bl" aria-hidden="true" />
+        <span class="cockpit-abnormal-kpi__corner is-br" aria-hidden="true" />
+        <strong class="cockpit-abnormal-kpi__value">{{ abnormalTotal }}</strong>
+        <span class="cockpit-abnormal-kpi__label">异常总数</span>
+      </div>
+    </div>
+
+    <div class="cockpit-abnormal-table">
+      <div class="cockpit-abnormal-table__section-head">异常数据信息</div>
+      <div
+        class="cockpit-abnormal-table-wrap cockpit-table-block cockpit-unified-table cockpit-unified-table--abnormal-two"
+      >
+        <p
+          class="titleYC cockpit-unified-table-head cockpit-unified-table-head--abnormal-two"
+        >
+          <span class="cockpit-inbound-col-name">风场名称</span>
+          <span class="cockpit-inbound-col-extra">异常风机数</span>
+        </p>
+        <Tabroll
+          :table-data="tableData"
+          :shujuloading="loading"
+          :columns="tableColumns"
+          :column-widths="columnWidths"
+          :max-height="tableBodyHeight"
+        />
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+import { queryStatistics } from "@/api/ledger.js";
+import Tabroll from "./tabroll.vue";
+import { COCKPIT_TABLE_BODY_HEIGHT } from "./cockpitTableMetrics";
+
+export default {
+  name: "CockpitAbnormalPanel",
+  components: { Tabroll },
+  props: {
+    maplistArr: { type: Object, default: () => ({}) },
+    defaultdata: { type: Object, default: () => ({}) },
+  },
+  data() {
+    return {
+      loading: false,
+      equipment: {},
+      tableData: [],
+      tableColumns: [{ prop: "fieldName" }, { prop: "errCount" }],
+      columnWidths: {
+        fieldName: "50%",
+        errCount: "50%",
+      },
+      tableBodyHeight: COCKPIT_TABLE_BODY_HEIGHT,
+    };
+  },
+  computed: {
+    abnormalTotal() {
+      const e = this.equipment;
+      return e.errDeviceCount ?? e.errCounrt ?? e.errCount ?? 0;
+    },
+    normalTotal() {
+      const e = this.equipment;
+      if (e.normalCount != null) return e.normalCount;
+      if (e.engineNormalCount != null) return e.engineNormalCount;
+      if (e.totalCount != null && this.abnormalTotal != null) {
+        return Math.max(0, Number(e.totalCount) - Number(this.abnormalTotal));
+      }
+      return 0;
+    },
+  },
+  watch: {
+    maplistArr: {
+      handler(val) {
+        if (val && Object.keys(val).length > 0) {
+          this.fetchStatistics();
+        }
+      },
+      immediate: true,
+      deep: true,
+    },
+  },
+  methods: {
+    fetchStatistics() {
+      if (!this.maplistArr?.codeNumber) return;
+      this.loading = true;
+      const end = new Date();
+      const start = new Date();
+      start.setMonth(start.getMonth() - 6);
+      queryStatistics({
+        codeNumber: this.maplistArr.codeNumber,
+        codeType: this.maplistArr.codeType,
+        startTime: this.$formatDate(start),
+        endTime: this.$formatDate(end),
+      })
+        .then((res) => {
+          const data = res.data || {};
+          this.equipment = data;
+          this.tableData = (data.errList || []).map((row) => ({
+            fieldName: row.fieldName ?? row.windFarmName ?? "—",
+            errCount:
+              row.errCount ??
+              row.abnormalEngineCount ??
+              row.engineErrCount ??
+              0,
+          }));
+        })
+        .finally(() => {
+          this.loading = false;
+        });
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.cockpit-abnormal-panel {
+  display: flex;
+  flex-direction: column;
+  width: 100%;
+}
+
+.cockpit-abnormal-panel__subtitle {
+  flex-shrink: 0;
+  margin: 4px 0 10px;
+  font-size: 14px;
+  font-weight: 600;
+  color: var(--cockpit-panel-title, #303133);
+}
+
+.cockpit-abnormal-kpi {
+  flex-shrink: 0;
+  display: grid;
+  grid-template-columns: 1fr 1fr;
+  gap: 10px;
+  margin-bottom: 12px;
+}
+
+.cockpit-abnormal-kpi__card {
+  position: relative;
+  min-height: 76px;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  gap: 4px;
+  background: var(--cockpit-abnormal-kpi-bg, rgba(0, 36, 64, 0.45));
+}
+
+.cockpit-abnormal-kpi__corner {
+  position: absolute;
+  width: 10px;
+  height: 10px;
+  border-color: var(--cockpit-abnormal-kpi-corner, rgba(0, 200, 255, 0.75));
+  border-style: solid;
+  pointer-events: none;
+
+  &.is-tl {
+    top: 0;
+    left: 0;
+    border-width: 1px 0 0 1px;
+  }
+
+  &.is-tr {
+    top: 0;
+    right: 0;
+    border-width: 1px 1px 0 0;
+  }
+
+  &.is-bl {
+    bottom: 0;
+    left: 0;
+    border-width: 0 0 1px 1px;
+  }
+
+  &.is-br {
+    bottom: 0;
+    right: 0;
+    border-width: 0 1px 1px 0;
+  }
+}
+
+.cockpit-abnormal-kpi__value {
+  font-size: 28px;
+  font-weight: 600;
+  line-height: 1.1;
+  color: var(--cockpit-abnormal-kpi-value, #4bffff);
+}
+
+.cockpit-abnormal-kpi__card--danger .cockpit-abnormal-kpi__value {
+  color: #ff4d4f;
+}
+
+.cockpit-abnormal-kpi__label {
+  font-size: 12px;
+  color: var(--cockpit-panel-muted, #909399);
+}
+
+.cockpit-abnormal-table {
+  flex: 0 0 auto;
+  min-height: 0;
+}
+
+.cockpit-abnormal-table__section-head {
+  margin-bottom: 8px;
+  padding: 6px 10px;
+  font-size: 14px;
+  font-weight: 600;
+  color: var(--cockpit-panel-title, #303133);
+  background: var(--cockpit-abnormal-section-head-bg, rgba(0, 52, 96, 0.35));
+  border-radius: 2px;
+}
+
+.cockpit-abnormal-table-wrap {
+  border-radius: 4px;
+  overflow: hidden;
+}
+</style>

+ 206 - 0
src/views/admin/cockpitManage/component/CockpitHealthPanel.vue

@@ -0,0 +1,206 @@
+<template>
+  <div class="cockpit-health-panel">
+    <CockpitTechTabs v-model="activeTab" :tabs="healthTabs" variant="panel" />
+
+    <div class="cockpit-health-panel__tab-body">
+      <div
+        v-show="activeTab === 'healthy'"
+        class="cockpit-health-panel__pane cockpit-health-panel__pane--healthy"
+      >
+        <div class="cockpit-health-panel__subtitle">综合健康评分</div>
+        <div class="cockpit-health-panel__body">
+          <ul class="cockpit-health-panel__legend">
+            <li
+              v-for="item in legendItems"
+              :key="item.name"
+              class="cockpit-health-panel__legend-item"
+            >
+              <i :style="{ background: item.color }"></i>
+              <span>{{ item.name }}</span>
+            </li>
+          </ul>
+          <div ref="chartRef" class="cockpit-health-panel__chart"></div>
+        </div>
+        <CockpitHealthTable
+          ref="healthTable"
+          class="cockpit-health-panel__table"
+        />
+      </div>
+
+      <div
+        v-show="activeTab === 'abnormal'"
+        class="cockpit-health-panel__pane cockpit-health-panel__pane--abnormal"
+      >
+        <CockpitAbnormalPanel
+          :maplistArr="maplistArr"
+          :defaultdata="defaultdata"
+        />
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+import * as echarts from "echarts";
+import { healthScoreDistribution } from "./cockpitHealthData";
+import CockpitTechTabs from "./CockpitTechTabs.vue";
+import CockpitHealthTable from "./CockpitHealthTable.vue";
+import CockpitAbnormalPanel from "./CockpitAbnormalPanel.vue";
+
+export default {
+  name: "CockpitHealthPanel",
+  components: { CockpitTechTabs, CockpitHealthTable, CockpitAbnormalPanel },
+  props: {
+    maplistArr: { type: Object, default: () => ({}) },
+    defaultdata: { type: Object, default: () => ({}) },
+  },
+  data() {
+    return {
+      activeTab: "healthy",
+      healthTabs: [
+        { label: "健康", value: "healthy" },
+        { label: "异常", value: "abnormal" },
+      ],
+      chart: null,
+      legendItems: [
+        { name: "优", color: "#7ECF51" },
+        { name: "良", color: "#2979ff" },
+        { name: "中", color: "#EECB5F" },
+        { name: "差", color: "#E16757" },
+      ],
+    };
+  },
+  mounted() {
+    this.$nextTick(() => this.initChart());
+    window.addEventListener("resize", this.handleResize);
+  },
+  watch: {
+    activeTab(val) {
+      if (val === "healthy") {
+        this.$nextTick(() => {
+          if (this.chart) {
+            this.chart.resize();
+          } else {
+            this.initChart();
+          }
+        });
+      }
+    },
+  },
+  beforeDestroy() {
+    window.removeEventListener("resize", this.handleResize);
+    if (this.chart) {
+      this.chart.dispose();
+      this.chart = null;
+    }
+  },
+  methods: {
+    initChart() {
+      if (!this.$refs.chartRef) return;
+      const textColor =
+        getComputedStyle(document.documentElement)
+          .getPropertyValue("--cockpit-panel-muted")
+          .trim() || "#909399";
+      this.chart = echarts.init(this.$refs.chartRef);
+      this.chart.setOption({
+        tooltip: {
+          trigger: "item",
+          formatter: "{b}: {c} ({d}%)",
+        },
+        series: [
+          {
+            type: "pie",
+            radius: ["48%", "78%"],
+            center: ["50%", "50%"],
+            avoidLabelOverlap: true,
+            label: {
+              show: true,
+              formatter: "{b}\n{d}%",
+              color: textColor,
+              fontSize: 11,
+            },
+            labelLine: {
+              show: true,
+              length: 8,
+              length2: 6,
+              lineStyle: { color: "rgba(183, 223, 245, 0.45)" },
+            },
+            data: healthScoreDistribution,
+          },
+        ],
+      });
+    },
+    handleResize() {
+      if (this.chart) this.chart.resize();
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.cockpit-health-panel__subtitle {
+  margin: 4px 0 10px;
+  font-size: 13px;
+  font-weight: 600;
+  color: var(--cockpit-panel-title, #303133);
+}
+
+.cockpit-health-panel__tab-body {
+  position: relative;
+  height: var(--cockpit-health-pane-h);
+  min-height: var(--cockpit-health-pane-h);
+  overflow: hidden;
+}
+
+.cockpit-health-panel__pane {
+  position: absolute;
+  inset: 0;
+  overflow: hidden;
+  display: flex;
+  flex-direction: column;
+  justify-content: flex-start;
+}
+
+.cockpit-health-panel__body {
+  display: flex;
+  align-items: center;
+  gap: 8px;
+  flex-shrink: 0;
+  height: var(--cockpit-health-chart-h, 150px);
+  min-height: var(--cockpit-health-chart-h, 150px);
+}
+
+.cockpit-health-panel__legend {
+  flex: 0 0 52px;
+  margin: 0;
+  padding: 0;
+  list-style: none;
+}
+
+.cockpit-health-panel__legend-item {
+  display: flex;
+  align-items: center;
+  gap: 6px;
+  margin-bottom: 10px;
+  font-size: 12px;
+  color: var(--cockpit-panel-muted, #909399);
+
+  i {
+    flex-shrink: 0;
+    width: 10px;
+    height: 10px;
+    border-radius: 1px;
+  }
+}
+
+.cockpit-health-panel__chart {
+  flex: 1;
+  min-width: 0;
+  height: var(--cockpit-health-chart-h, 150px);
+}
+
+.cockpit-health-panel__table {
+  flex: 0 0 auto;
+  margin-top: 8px;
+}
+</style>

+ 65 - 0
src/views/admin/cockpitManage/component/CockpitHealthTable.vue

@@ -0,0 +1,65 @@
+<template>
+  <div class="cockpit-health-table">
+    <h3 class="cockpit-section-title">健康数据信息</h3>
+    <div
+      class="cockpit-scroll-table cockpit-table-block cockpit-unified-table cockpit-unified-table--health"
+    >
+      <p
+        class="titleYC cockpit-unified-table-head cockpit-unified-table-head--health"
+      >
+        <span>风场名称</span>
+        <span>优</span>
+        <span>良</span>
+        <span>中</span>
+        <span>差</span>
+      </p>
+      <Tabroll
+        :table-data="tableData"
+        :columns="columns"
+        :column-widths="columnWidths"
+        :max-height="bodyHeight"
+      />
+    </div>
+  </div>
+</template>
+
+<script>
+import { healthTableColumns, healthTableData } from "./cockpitHealthData";
+import { COCKPIT_TABLE_BODY_HEIGHT } from "./cockpitTableMetrics";
+import Tabroll from "./tabroll.vue";
+
+export default {
+  name: "CockpitHealthTable",
+  components: { Tabroll },
+  props: {
+    bodyHeight: { type: Number, default: COCKPIT_TABLE_BODY_HEIGHT },
+  },
+  data() {
+    return {
+      columns: healthTableColumns.map(({ prop }) => ({ prop })),
+      columnWidths: {
+        fieldName: "38%",
+        excellent: "15%",
+        good: "15%",
+        medium: "16%",
+        poor: "16%",
+      },
+      tableData: healthTableData,
+    };
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.cockpit-health-table {
+  width: 100%;
+}
+
+.cockpit-health-table .cockpit-section-title {
+  margin: 0 0 8px;
+  padding: 0;
+  border-bottom: none;
+  font-size: 14px;
+  font-weight: 600;
+}
+</style>

+ 96 - 0
src/views/admin/cockpitManage/component/CockpitTechTabs.vue

@@ -0,0 +1,96 @@
+<template>
+  <div class="cockpit-tech-tabs" :class="`cockpit-tech-tabs--${variant}`">
+    <div class="cockpit-tech-tabs__track">
+      <div class="cockpit-tech-tabs__list" role="tablist">
+        <button
+          v-for="tab in tabs"
+          :key="tab.value"
+          type="button"
+          role="tab"
+          class="cockpit-tech-tabs__item"
+          :class="{ 'is-active': value === tab.value }"
+          :aria-selected="value === tab.value"
+          @click="onSelect(tab.value)"
+        >
+          <svg
+            v-if="value === tab.value"
+            class="cockpit-tech-tabs__shape"
+            viewBox="0 0 160 40"
+            preserveAspectRatio="none"
+            aria-hidden="true"
+          >
+            <defs>
+              <linearGradient :id="gradId" x1="0%" y1="0%" x2="0%" y2="100%">
+                <stop offset="0%" stop-color="#4dd4ff" />
+                <stop offset="38%" stop-color="#1a9ee8" />
+                <stop offset="100%" stop-color="#0a4d8c" />
+              </linearGradient>
+              <linearGradient :id="strokeId" x1="0%" y1="0%" x2="100%" y2="0%">
+                <stop offset="0%" stop-color="rgba(100, 230, 255, 0.15)" />
+                <stop offset="25%" stop-color="#9ef8ff" />
+                <stop offset="75%" stop-color="#9ef8ff" />
+                <stop offset="100%" stop-color="rgba(100, 230, 255, 0.15)" />
+              </linearGradient>
+            </defs>
+            <path
+              class="cockpit-tech-tabs__shape-fill"
+              :fill="`url(#${gradId})`"
+              d="M14 3 L146 3 Q152 3 155 9 L160 40 L0 40 L5 9 Q8 3 14 3 Z"
+            />
+            <path
+              class="cockpit-tech-tabs__shape-stroke"
+              fill="none"
+              :stroke="`url(#${strokeId})`"
+              stroke-width="1.2"
+              d="M14 3 L146 3 Q152 3 155 9 L160 40 L0 40 L5 9 Q8 3 14 3 Z"
+            />
+          </svg>
+          <span class="cockpit-tech-tabs__label">{{ tab.label }}</span>
+        </button>
+      </div>
+      <!-- <div v-if="$slots.extra" class="cockpit-tech-tabs__extra">
+        <slot name="extra" />
+      </div> -->
+      <div class="cockpit-tech-tabs__baseline" aria-hidden="true" />
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "CockpitTechTabs",
+  model: {
+    prop: "value",
+    event: "input",
+  },
+  props: {
+    value: { type: String, required: true },
+    tabs: {
+      type: Array,
+      required: true,
+      // [{ label: '入库', value: 'import' }]
+    },
+    /** pill:胶囊底托(健康等);panel:贴面板顶左对齐(入库/接入,图二) */
+    variant: {
+      type: String,
+      default: "pill",
+      validator: (v) => ["pill", "panel"].includes(v),
+    },
+  },
+  computed: {
+    gradId() {
+      return `cockpit-tab-grad-${this._uid}`;
+    },
+    strokeId() {
+      return `cockpit-tab-stroke-${this._uid}`;
+    },
+  },
+  methods: {
+    onSelect(val) {
+      if (val !== this.value) {
+        this.$emit("input", val);
+      }
+    },
+  },
+};
+</script>

+ 23 - 0
src/views/admin/cockpitManage/component/cockpitHealthData.js

@@ -0,0 +1,23 @@
+/** 驾驶舱健康展示 mock(布局占位,不影响原有业务接口) */
+export const healthScoreDistribution = [
+  { value: 40, name: "优", itemStyle: { color: "#7ECF51" } },
+  { value: 10, name: "良", itemStyle: { color: "#2979ff" } },
+  { value: 45, name: "中", itemStyle: { color: "#EECB5F" } },
+  { value: 5, name: "差", itemStyle: { color: "#E16757" } },
+];
+
+export const healthTableColumns = [
+  { prop: "fieldName", label: "风场名称", minWidth: 108 },
+  { prop: "excellent", label: "优", width: 40 },
+  { prop: "good", label: "良", width: 40 },
+  { prop: "medium", label: "中", width: 40 },
+  { prop: "poor", label: "差", width: 40 },
+];
+
+export const healthTableData = [
+  { fieldName: "马宗山风电场", excellent: 3, good: 10, medium: 10, poor: 9 },
+  { fieldName: "桥西第一风电场", excellent: 5, good: 8, medium: 6, poor: 2 },
+  { fieldName: "桥西第二风电场", excellent: 4, good: 9, medium: 7, poor: 3 },
+  { fieldName: "王团风电场", excellent: 6, good: 7, medium: 5, poor: 1 },
+  { fieldName: "示范风电场", excellent: 50, good: 200, medium: 100, poor: 100 },
+];

+ 6 - 0
src/views/admin/cockpitManage/component/cockpitTableMetrics.js

@@ -0,0 +1,6 @@
+/** 驾驶舱列表表格统一尺寸(与 cockpit-dashboard.scss 变量保持一致) */
+export const COCKPIT_TR_HEIGHT = 40;
+export const COCKPIT_TABLE_VISIBLE_ROWS = 4;
+export const COCKPIT_TH_HEIGHT = 32;
+export const COCKPIT_TABLE_BODY_HEIGHT =
+  COCKPIT_TR_HEIGHT * COCKPIT_TABLE_VISIBLE_ROWS;

+ 238 - 108
src/views/admin/cockpitManage/component/leftdata.vue

@@ -1,12 +1,14 @@
 <template>
-  <div class="backbone">
-    <div class="BOXYI" v-hasPermi="['home:performance:performanceData']">
+  <div class="backbone" :class="{ 'backbone--flat': panel !== 'all' }">
+    <div
+      v-if="showTaskBlock"
+      class="BOXYI"
+      v-hasPermi="['home:performance:performanceData']"
+    >
       <h3>任务统计</h3>
-      <div class="BOXsan">
+      <div class="BOXsan cockpit-task-kpi">
         <div class="YC02" @click="getwgl">
-          <strong class="texyellow">
-            {{ onrelevance ? onrelevance : 0 }}</strong
-          >
+          <strong> {{ onrelevance ? onrelevance : 0 }}</strong>
           <span>待分析</span>
         </div>
         <div class="YC02" @click="getwfx">
@@ -15,7 +17,9 @@
         </div>
 
         <div class="YC03" @click="getpd">
-          <strong class="textred"> {{ queueNumber ? queueNumber : 0 }}</strong>
+          <strong class="texyellow">
+            {{ queueNumber ? queueNumber : 0 }}</strong
+          >
           <span>排队中</span>
         </div>
       </div>
@@ -96,46 +100,130 @@
         </div>
       </el-dialog>
     </div>
-    <!-- 入库信息 -->
-    <!-- 离线 -->
-    <div class="BOX" v-hasPermi="['home:offlinedata']">
-      <h3 class="centeredh3">
-        入库数据
-        <span>
-          <span style="cursor: pointer" @click="importdata">导入数据</span>
-          <span style="cursor: pointer" @click="more">更多</span>
-        </span>
-      </h3>
-      <div>
-        <p class="titleYC"><span>风场名称</span><span>入库时间</span></p>
-        <tabroll
-          :table-data="tableData"
-          :shujuloading="shujuloading"
-          :columns="YCtableColumns"
-          :column-widths="YCcolumnWidths"
-          :max-height="140"
-        ></tabroll>
-      </div>
-    </div>
-    <!-- 在线 -->
-    <div class="BOX" v-hasPermi="['home:onlinData']">
-      <h3 class="centeredh3">
-        接入数据
-        <span>
-          <span style="cursor: pointer" @click="onlinedata">更多</span>
-        </span>
-      </h3>
-      <div>
-        <p class="titleYC"><span>风场名称</span><span>采集状态</span></p>
-        <tabroll
-          :table-data="hometopdata"
-          :hometoploading="hometoploading"
-          :columns="hometopColumns"
-          :column-widths="hometopcolumnWidths"
-          :max-height="140"
-        ></tabroll>
+    <template v-if="showInboundBlock">
+      <div v-if="panel === 'inbound'" class="cockpit-inbound-panel">
+        <CockpitTechTabs
+          v-model="inboundTab"
+          :tabs="inboundTabs"
+          variant="panel"
+        >
+          <template #extra>
+            <i
+              class="el-icon-arrow-right cockpit-tech-tabs__chevron"
+              title="更多"
+              @click="onInboundChevronClick"
+            />
+          </template>
+        </CockpitTechTabs>
+
+        <div class="cockpit-inbound-body">
+          <div v-show="inboundTab === 'import'" class="cockpit-inbound-pane">
+            <div class="cockpit-inbound-pane-header">
+              <div
+                class="cockpit-inbound-subtitle"
+                v-hasPermi="['home:offlinedata']"
+              >
+                入库数据
+              </div>
+              <span class="cockpit-inbound-col-data">
+                <span class="cockpit-inbound-more-link" @click="more"
+                  >更多</span
+                >
+              </span>
+            </div>
+
+            <div
+              class="cockpit-inbound-table-wrap cockpit-table-block cockpit-unified-table cockpit-unified-table--inbound-import BOX BOX--flat"
+              v-hasPermi="['home:offlinedata']"
+            >
+              <p
+                class="titleYC cockpit-unified-table-head cockpit-unified-table-head--inbound-import"
+              >
+                <span class="cockpit-inbound-col-name">风场名称</span>
+                <span class="cockpit-inbound-col-extra"> 入库时间 </span>
+              </p>
+              <tabroll
+                :table-data="tableData"
+                :shujuloading="shujuloading"
+                :columns="inboundImportColumns"
+                :column-widths="inboundImportColumnWidths"
+                :max-height="140"
+              />
+            </div>
+          </div>
+
+          <div v-show="inboundTab === 'access'" class="cockpit-inbound-pane">
+            <div
+              class="cockpit-inbound-subtitle"
+              v-hasPermi="['home:onlinData']"
+            >
+              接入数据
+            </div>
+            <div
+              class="cockpit-inbound-table-wrap cockpit-table-block cockpit-unified-table cockpit-unified-table--inbound-two BOX BOX--flat"
+              v-hasPermi="['home:onlinData']"
+            >
+              <p
+                class="titleYC cockpit-unified-table-head cockpit-unified-table-head--inbound-two"
+              >
+                <span class="cockpit-inbound-col-name">风场名称</span>
+                <span class="cockpit-inbound-col-extra">采集状态</span>
+              </p>
+              <tabroll
+                :table-data="hometopdata"
+                :hometoploading="hometoploading"
+                :columns="hometopColumns"
+                :column-widths="hometopcolumnWidths"
+                :max-height="cockpitTableBodyHeight"
+              />
+            </div>
+          </div>
+        </div>
       </div>
-    </div>
+
+      <template v-else>
+        <!-- 入库信息 -->
+        <!-- 离线 -->
+        <div class="BOX" v-hasPermi="['home:offlinedata']">
+          <h3 class="centeredh3">
+            入库数据
+            <span>
+              <span style="cursor: pointer" @click="importdata">导入数据</span>
+              <span style="cursor: pointer" @click="more">更多</span>
+            </span>
+          </h3>
+          <div>
+            <p class="titleYC"><span>风场名称</span><span>入库时间</span></p>
+            <tabroll
+              :table-data="tableData"
+              :shujuloading="shujuloading"
+              :columns="YCtableColumns"
+              :column-widths="YCcolumnWidths"
+              :max-height="140"
+            ></tabroll>
+          </div>
+        </div>
+        <!-- 在线 -->
+        <div class="BOX" v-hasPermi="['home:onlinData']">
+          <h3 class="centeredh3">
+            接入数据
+            <span>
+              <span style="cursor: pointer" @click="onlinedata">更多</span>
+            </span>
+          </h3>
+          <div>
+            <p class="titleYC"><span>风场名称</span><span>采集状态</span></p>
+            <tabroll
+              :table-data="hometopdata"
+              :hometoploading="hometoploading"
+              :columns="hometopColumns"
+              :column-widths="hometopcolumnWidths"
+              :max-height="140"
+            ></tabroll>
+          </div>
+        </div>
+      </template>
+    </template>
     <el-dialog
       title="实时数据采集统计"
       :visible.sync="lineShow"
@@ -304,22 +392,58 @@ import {
 } from "@/api/ledger.js";
 import axios from "axios";
 import Tabroll from "./tabroll.vue";
+import CockpitTechTabs from "./CockpitTechTabs.vue";
+import { COCKPIT_TABLE_BODY_HEIGHT } from "./cockpitTableMetrics";
+
 export default {
-  // props: {
-  //   maplistArr: {
-  //     type: Object,
-  //     default: () => ({}),
-  //   },
-  //   defaultdata: {
-  //     type: Object,
-  //     default: () => ({}),
-  //   },
-  // },
+  props: {
+    /** task | inbound | all */
+    panel: { type: String, default: "all" },
+  },
   components: {
     Tabroll,
+    CockpitTechTabs,
+  },
+  computed: {
+    showTaskBlock() {
+      return this.panel === "all" || this.panel === "task";
+    },
+    showInboundBlock() {
+      return this.panel === "all" || this.panel === "inbound";
+    },
+    shouldPollInbound() {
+      return this.panel === "inbound" || this.panel === "all";
+    },
+    filteredWindList() {
+      return this.searchvalue
+        ? this.windList.filter((item) =>
+            item.windFarmName.includes(this.searchvalue),
+          )
+        : this.windList;
+    },
+    inboundImportColumns() {
+      return [
+        { prop: "windFarmName", label: "风场名称" },
+        { prop: "createTime", label: "导入数据" },
+      ];
+    },
+    inboundImportColumnWidths() {
+      return {
+        windFarmName: "42%",
+        createTime: "auto",
+      };
+    },
+    inboundTabs() {
+      return [
+        { label: "入库", value: "import" },
+        { label: "接入", value: "access" },
+      ];
+    },
   },
   data() {
     return {
+      cockpitTableBodyHeight: COCKPIT_TABLE_BODY_HEIGHT,
+      inboundTab: "import",
       onrelevance: "",
       abnormal: "",
       queueNumber: "",
@@ -398,8 +522,8 @@ export default {
         },
       ],
       hometopcolumnWidths: {
-        windFarmName: 130,
-        canAnalysis: 150,
+        windFarmName: "42%",
+        canAnalysis: "auto",
       },
       ListtableData: [],
       startDate: "",
@@ -410,27 +534,22 @@ export default {
     };
   },
   created() {
-    this.getbacklog();
-    this.ruku();
-    // this.hometop();
-  },
-  computed: {
-    filteredWindList() {
-      return this.searchvalue
-        ? this.windList.filter((item) =>
-            item.windFarmName.includes(this.searchvalue),
-          )
-        : this.windList;
-    },
+    if (this.showTaskBlock) {
+      this.getbacklog();
+    }
+    if (this.showInboundBlock) {
+      this.ruku();
+    }
   },
-
-  // 在线版本 离线需要注释
   mounted() {
-    this.startPolling();
+    if (this.shouldPollInbound) {
+      this.startPolling();
+    }
   },
-  // 在线版本 离线需要注释
   beforeDestroy() {
-    this.stopPolling();
+    if (this.shouldPollInbound) {
+      this.stopPolling();
+    }
   },
   methods: {
     getbacklog() {
@@ -560,6 +679,13 @@ export default {
           console.error("Error fetching data:", error);
         });
     },
+    onInboundChevronClick() {
+      if (this.inboundTab === "import") {
+        this.more();
+      } else {
+        this.onlinedata();
+      }
+    },
     importdata() {
       window.open(this.$router.resolve({ path: "/transition" }).href, "_blank");
     },
@@ -670,22 +796,28 @@ export default {
 
 <style lang="scss" scoped>
 .backbone {
-  width: 300px;
-  color: #fff;
-  border-radius: 5px;
-  //   padding: 20px;
+  width: 100%;
+  color: inherit;
+  border-radius: 0;
+}
+
+.backbone--flat .BOXYI,
+.backbone--flat .BOX {
+  background: transparent !important;
+  padding-left: 0 !important;
+  padding-right: 0 !important;
+  margin-bottom: 0 !important;
+  color: inherit !important;
 }
 
 .BOXYI {
-  background: rgba(0, 79, 95, 0.8);
+  background: transparent;
   display: flex;
   flex-wrap: wrap;
-  padding-left: 10px;
-  padding-right: 10px;
-  padding-bottom: 15px;
-  color: #fff;
-  border-radius: 5px;
-  margin-bottom: 10px;
+  padding: 0;
+  color: inherit;
+  border-radius: 0;
+  margin-bottom: 0;
 
   .BOXsan {
     width: 100%;
@@ -787,24 +919,22 @@ export default {
 }
 
 .BOX {
-  background: rgba(0, 79, 95, 0.8);
+  background: transparent;
   display: flex;
-  padding-left: 10px;
+  padding-left: 0;
   flex-wrap: wrap;
-  padding-bottom: 15px;
-  color: #fff;
-  border-radius: 5px;
-  margin-bottom: 10px;
-
-  h3 {
-    margin-top: 5px;
-  }
+  padding-bottom: 8px;
+  color: inherit;
+  border-radius: 0;
+  margin-bottom: 0;
 
   .centeredh3 {
     width: 100%;
     display: flex;
     justify-content: space-between;
     margin-bottom: 5px;
+    border-bottom: none;
+    padding-bottom: 0;
 
     span {
       font-size: 12px;
@@ -817,26 +947,26 @@ export default {
   font-size: 12px;
 }
 
-::v-deep.el-table__cell {
-  padding: 2px 0 !important;
+.cockpit-inbound-panel ::v-deep .el-table__body .el-table__cell {
+  padding: 0 !important;
 }
 
-::v-deep.el-table .el-table__cell {
-  padding: 2px 0 !important;
+.cockpit-inbound-panel ::v-deep .el-table__body .el-table__cell .cell {
+  padding-top: 0 !important;
+  padding-bottom: 0 !important;
+  padding-left: var(--cockpit-td-padding-x, 8px) !important;
+  padding-right: var(--cockpit-td-padding-x, 8px) !important;
 }
 
 ::v-deep.el-table--scrollable-y .el-table__body-wrapper {
   overflow-y: clip !important;
 }
 
-.titleYC {
-  font-size: 14px;
-  background: #214e5d;
-  padding: 5px 0;
-
-  span:nth-child(1) {
-    margin: 0 70px 0 10px;
-  }
+.titleYC:not(.cockpit-unified-table-head) span:nth-child(1) {
+  margin: 0 70px 0 10px;
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
 }
 
 .titleJQ {

+ 206 - 167
src/views/admin/cockpitManage/component/rightdata.vue

@@ -1,6 +1,6 @@
 <template>
-  <div class="backbone">
-    <div>
+  <div class="backbone" :class="{ 'backbone--flat': panel !== 'all' }">
+    <div v-if="showAnalysis">
       <h3>风场分析完成率</h3>
       <el-date-picker
         size="mini"
@@ -11,60 +11,60 @@
         start-placeholder="开始日期"
         end-placeholder="结束日期"
         @change="onDateChange"
-      >
-      </el-date-picker>
-      <div id="main" style="width: 260px; height: 160px"></div>
+      />
+      <div ref="chartRef" class="cockpit-analysis-chart"></div>
     </div>
 
-    <div>
-      <h3 style="margin-bottom: 8px">历史操作记录</h3>
-      <p class="titleJQ">
-        <span>名字</span><span>日期</span><span>操作记录</span>
-      </p>
-      <Tabroll
-        :table-data="tableData"
-        :shujuloading="shujuloading"
-        :columns="tableColumns"
-        :max-height="120"
-        :column-widths="columnWidths"
-      ></Tabroll>
+    <div v-if="showHistory" class="cockpit-history-block">
+      <h3 class="cockpit-section-title">历史操作记录</h3>
+      <div
+        class="cockpit-scroll-table cockpit-table-block cockpit-unified-table cockpit-unified-table--history"
+      >
+        <p
+          class="titleJQ cockpit-unified-table-head cockpit-unified-table-head--history"
+        >
+          <span>名字</span><span>日期</span><span>操作记录</span>
+        </p>
+        <Tabroll
+          :table-data="tableData"
+          :shujuloading="shujuloading"
+          :columns="tableColumns"
+          :max-height="tableBodyHeight"
+          :column-widths="historyColumnWidths"
+        />
+      </div>
     </div>
-    <div>
+
+    <div v-if="showEquipment">
       <h3>风机异常概览</h3>
       <div class="BOX">
         <div style="display: flex">
           <div class="YC01">
-            <strong>
-              {{ equipment?.errCounrt ? equipment.errCounrt : 0 }}</strong
-            >
+            <strong>{{
+              equipment?.errCounrt ? equipment.errCounrt : 0
+            }}</strong>
             <span>异常总数</span>
           </div>
           <div class="YC02">
-            <strong>
-              {{
-                equipment?.errCountInCurrentMonth
-                  ? equipment.errCountInCurrentMonth
-                  : 0
-              }}</strong
-            >
+            <strong>{{
+              equipment?.errCountInCurrentMonth
+                ? equipment.errCountInCurrentMonth
+                : 0
+            }}</strong>
             <span>本月异常</span>
           </div>
         </div>
         <div style="display: flex">
           <div class="YC02">
-            <strong class="textred">
-              {{
-                equipment?.errCountNotDeal ? equipment.errCountNotDeal : 0
-              }}</strong
-            >
+            <strong class="textred">{{
+              equipment?.errCountNotDeal ? equipment.errCountNotDeal : 0
+            }}</strong>
             <span>未处理异常</span>
           </div>
           <div class="YC02">
-            <strong class="texyellow">
-              {{
-                equipment?.errDeviceCount ? equipment.errDeviceCount : 0
-              }}</strong
-            >
+            <strong class="texyellow">{{
+              equipment?.errDeviceCount ? equipment.errDeviceCount : 0
+            }}</strong>
             <span>异常设备数</span>
           </div>
           <div class="YC03"></div>
@@ -72,8 +72,15 @@
       </div>
     </div>
 
-    <div>
-      <h3 style="margin: 8px 0">异常数据信息</h3>
+    <div
+      v-if="showEquipmentTable"
+      class="cockpit-equipment-table-block"
+      :class="{
+        'cockpit-equipment-table-block--stacked':
+          panel === 'equipment-abnormal',
+      }"
+    >
+      <h3 class="cockpit-section-title">异常数据信息</h3>
       <p class="titleYC"><span>风场名称</span><span>风机信息</span></p>
       <Tabroll
         :table-data="YCtableData"
@@ -81,7 +88,7 @@
         :columns="YCtableColumns"
         :column-widths="YCcolumnWidths"
         :max-height="120"
-      ></Tabroll>
+      />
     </div>
   </div>
 </template>
@@ -90,54 +97,36 @@
 import { queryStatistics, queryOptionRecords } from "@/api/ledger.js";
 import * as echarts from "echarts";
 import Tabroll from "./tabroll.vue";
+import { COCKPIT_TABLE_BODY_HEIGHT } from "./cockpitTableMetrics";
 
 export default {
   props: {
-    maplistArr: {
-      type: Object,
-      default: () => ({}),
-    },
-    defaultdata: {
-      type: Object,
-      default: () => ({}),
-    },
-  },
-
-  watch: {
-    maplistArr: {
-      handler(newVal) {
-        if (Object.keys(newVal).length > 0) {
-          // 检查maplistArr是否有值
-          this.getStatistics();
-          this.getOptionRecords();
-        }
-      },
-      immediate: true, // 立即执行一次handler
-      deep: true, // 深度监听对象内部变化
-    },
-  },
-  components: {
-    Tabroll,
+    maplistArr: { type: Object, default: () => ({}) },
+    defaultdata: { type: Object, default: () => ({}) },
+    /** analysis | history | analysis-history | equipment | equipment-table | equipment-abnormal | all */
+    panel: { type: String, default: "all" },
   },
+  components: { Tabroll },
   data() {
     return {
       myChart: null,
       YCtableData: [],
       shujuloading: false,
       YCtableColumns: [{ prop: "fieldName" }, { prop: "engineName" }],
-      YCcolumnWidths: {
-        fieldName: 120,
-      },
+      YCcolumnWidths: { fieldName: 120 },
       tableData: [],
       tableColumns: [
         { prop: "optionByName" },
         { prop: "createTime" },
         { prop: "optionContent" },
       ],
-      columnWidths: {
-        optionByName: 60,
-        createTime: 100,
+      columnWidths: { optionByName: 60, createTime: 100 },
+      historyColumnWidths: {
+        optionByName: "28%",
+        createTime: "38%",
+        optionContent: "34%",
       },
+      tableBodyHeight: COCKPIT_TABLE_BODY_HEIGHT,
       equipment: {
         analysisedCount: 0,
         analysisingCount: 0,
@@ -148,50 +137,108 @@ export default {
       endTime: "",
     };
   },
-  created() {},
+  computed: {
+    showAnalysis() {
+      return (
+        this.panel === "all" ||
+        this.panel === "analysis" ||
+        this.panel === "analysis-history"
+      );
+    },
+    showHistory() {
+      return (
+        this.panel === "all" ||
+        this.panel === "history" ||
+        this.panel === "analysis-history"
+      );
+    },
+    showEquipment() {
+      return (
+        this.panel === "all" ||
+        this.panel === "equipment" ||
+        this.panel === "equipment-abnormal"
+      );
+    },
+    showEquipmentTable() {
+      return (
+        this.panel === "all" ||
+        this.panel === "equipment-table" ||
+        this.panel === "equipment-abnormal"
+      );
+    },
+  },
+  watch: {
+    maplistArr: {
+      handler(newVal) {
+        if (!newVal?.codeNumber) return;
+        if (
+          this.showAnalysis ||
+          this.showEquipment ||
+          this.showEquipmentTable
+        ) {
+          this.getStatistics();
+        }
+        if (this.showHistory) {
+          this.getOptionRecords();
+        }
+      },
+      immediate: true,
+      deep: true,
+    },
+  },
   mounted() {
-    this.initChart();
-    const currentTime = new Date();
-    const halfYearAgo = new Date();
-    halfYearAgo.setMonth(currentTime.getMonth() - 6);
-    this.value1 = [halfYearAgo, currentTime];
-    // 同时更新 startTime 和 endTime
-    this.startTime = this.$formatDate(halfYearAgo);
-    this.endTime = this.$formatDate(currentTime);
+    if (this.showAnalysis) {
+      const currentTime = new Date();
+      const halfYearAgo = new Date();
+      halfYearAgo.setMonth(currentTime.getMonth() - 6);
+      this.value1 = [halfYearAgo, currentTime];
+      this.startTime = this.$formatDate(halfYearAgo);
+      this.endTime = this.$formatDate(currentTime);
+      this.$nextTick(() => this.initChart());
+    }
+  },
+  beforeDestroy() {
+    if (this.myChart) {
+      this.myChart.dispose();
+      this.myChart = null;
+    }
   },
   methods: {
     initChart() {
-      var chartDom = document.getElementById("main");
-      this.myChart = echarts.init(chartDom);
+      if (!this.$refs.chartRef) return;
+      this.myChart = echarts.init(this.$refs.chartRef);
       this.updateChart();
     },
     updateChart() {
-      var option = {
+      if (!this.myChart) return;
+      this.myChart.setOption({
         tooltip: {
           trigger: "item",
-          formatter: function (params) {
-            var percent = params.percent.toFixed(2) + "%";
+          formatter(params) {
+            const percent = params.percent.toFixed(2) + "%";
             return `${params.name}: ${params.value} (${percent})`;
           },
         },
         legend: {
           orient: "vertical",
-          left: "left",
-          top: "30%",
+          left: 4,
+          top: "middle",
+          itemWidth: 10,
+          itemHeight: 10,
+          itemGap: 10,
+          textStyle: {
+            color: "rgba(183, 223, 245, 0.85)",
+            fontSize: 11,
+          },
         },
         series: [
           {
             type: "pie",
-            radius: ["40%", "80%"],
+            radius: ["42%", "72%"],
             avoidLabelOverlap: false,
-            label: {
-              show: false,
-              position: "center",
-            },
-            labelLine: {
-              show: false,
-            },
-            center: ["60%", "50%"],
+            label: { show: false, position: "center" },
+            labelLine: { show: false },
+            center: ["62%", "50%"],
             data: [
               {
                 value: this.equipment.analysisedCount,
@@ -211,41 +258,51 @@ export default {
             ],
           },
         ],
-      };
-      this.myChart.setOption(option);
+      });
     },
-
     getStatistics() {
+      if (!this.maplistArr?.codeNumber) return;
       const startTime =
         this.startTime ||
         this.$formatDate(
-          new Date(new Date().setMonth(new Date().getMonth() - 6))
-        ); // 半年前的时间
-      const endTime = this.endTime || this.$formatDate(new Date()); // 当前时间
-      // halfYearAgo.setMonth(currentTime.getMonth() - 6)
-
-      let DataObject = {
+          new Date(new Date().setMonth(new Date().getMonth() - 6)),
+        );
+      const endTime = this.endTime || this.$formatDate(new Date());
+      queryStatistics({
         codeNumber: this.maplistArr.codeNumber,
         codeType: this.maplistArr.codeType,
-        startTime: startTime,
-        endTime: endTime,
-      };
-      queryStatistics(DataObject).then((res) => {
-        this.YCtableData = res.data.errList || [];
-        this.equipment = res.data || {};
-        this.updateChart(); // Update chart after data is received
+        startTime,
+        endTime,
+      }).then((res) => {
+        const data = res.data || {};
+        this.YCtableData = data.errList || [];
+        this.equipment = data;
+        this.$nextTick(() => {
+          if (this.showAnalysis) {
+            if (!this.myChart && this.$refs.chartRef) {
+              this.initChart();
+            } else {
+              this.updateChart();
+            }
+          }
+        });
       });
     },
     getOptionRecords() {
-      let DataObject = {
+      if (!this.maplistArr?.codeNumber) return;
+      this.shujuloading = true;
+      queryOptionRecords({
         codeNumber: this.maplistArr.codeNumber,
         codeType: this.maplistArr.codeType,
-      };
-      queryOptionRecords(DataObject).then((res) => {
-        this.tableData = res.data || [];
-      });
+      })
+        .then((res) => {
+          const list = res.data;
+          this.tableData = Array.isArray(list) ? list : list?.list || [];
+        })
+        .finally(() => {
+          this.shujuloading = false;
+        });
     },
-
     onDateChange(date) {
       if (Array.isArray(date)) {
         this.startTime = this.$formatDate(date[0]);
@@ -265,21 +322,29 @@ export default {
 
 <style lang="scss" scoped>
 .backbone {
-  width: 300px;
-  color: #fff;
-  background: rgba(0, 128, 128, 0.8);
-  // height: 100%;
-  // height: 95%;
-  border-radius: 5px;
-  padding: 20px;
+  width: 100%;
+  color: inherit;
+  background: transparent;
+  padding: 0;
+  border-radius: 0;
+}
+
+.backbone--flat .BOX {
+  background: transparent;
+  padding-left: 0;
+}
+
+.cockpit-analysis-chart {
+  width: 100%;
+  height: 160px;
 }
 
 .BOX {
-  background: rgba(0, 79, 95, 0.6);
+  background: transparent;
   display: flex;
-  padding-left: 10px;
+  padding-left: 0;
   flex-wrap: wrap;
-  padding-bottom: 15px;
+  padding-bottom: 8px;
 }
 
 .YC01 {
@@ -290,7 +355,7 @@ export default {
   background-repeat: no-repeat;
   background-position: center;
   margin-right: 15px;
-  margin-top: 15px;
+  margin-top: 8px;
   text-align: center;
 
   strong {
@@ -313,7 +378,7 @@ export default {
   background-repeat: no-repeat;
   background-position: center;
   margin-right: 15px;
-  margin-top: 15px;
+  margin-top: 8px;
   text-align: center;
 
   .textred {
@@ -341,47 +406,21 @@ export default {
   height: 60px;
 }
 
-.Tabtab {
-  font-size: 12px;
-}
-
-::v-deep.el-table__cell {
-  padding: 2px 0 !important;
-}
-
-::v-deep.el-table .el-table__cell {
-  padding: 2px 0 !important;
+.titleYC span:nth-child(1) {
+  margin: 0 70px 0 10px;
 }
 
-::v-deep.el-table--scrollable-y .el-table__body-wrapper {
-  overflow-y: clip !important;
+.titleJQ:not(.cockpit-history-table-head) span:nth-child(1) {
+  margin: 0 15px 0 10px;
 }
 
-.titleYC {
-  font-size: 14px;
-  background: #214e5d;
-  padding: 5px 0;
-
-  span:nth-child(1) {
-    margin: 0 70px 0 10px;
-  }
+.titleJQ:not(.cockpit-history-table-head) span:nth-child(2) {
+  margin: 0 45px 0 30px;
 }
 
-.titleJQ {
-  font-size: 14px;
-  background: #214e5d;
-  padding: 5px 0;
-
-  span:nth-child(1) {
-    margin: 0 15px 0 10px;
-  }
-
-  span:nth-child(2) {
-    margin: 0 45px 0 30px;
-  }
-}
-.el-date-editor--datetimerange.el-input,
-.el-date-editor--datetimerange.el-input__inner {
-  width: 250px;
+::v-deep .el-date-editor--datetimerange.el-input,
+::v-deep .el-date-editor--datetimerange.el-input__inner {
+  width: 100%;
+  max-width: 260px;
 }
 </style>

+ 80 - 34
src/views/admin/cockpitManage/component/tabroll.vue

@@ -1,16 +1,16 @@
 <template>
-  <div>
+  <div class="tabroll-wrap cockpit-tabroll-table">
     <el-table
-    :show-header="false"
+      :show-header="false"
       v-loading="shujuloading"
       :data="tableData"
       :max-height="maxHeight"
       ref="shujuscroll_Table"
       strip
+      style="width: 100%"
       @mouseenter.native="shujuautoScroll(true)"
       @mouseleave.native="shujuautoScroll(false)"
       id="Tabtab"
-      :header-cell-style="{ backgroundColor: 'red' }"
     >
       <el-table-column
         v-for="(column, index) in columns"
@@ -18,13 +18,16 @@
         :prop="column.prop"
         :label="column.label"
         show-overflow-tooltip
-        :width="getColumnWidth(column.prop)" 
-      ></el-table-column>
+        :width="getColumnWidth(column.prop)"
+        :min-width="getColumnMinWidth(column.prop)"
+      />
     </el-table>
   </div>
 </template>
 
 <script>
+import { COCKPIT_TABLE_BODY_HEIGHT } from "./cockpitTableMetrics";
+
 export default {
   props: {
     tableData: {
@@ -45,7 +48,7 @@ export default {
     },
     maxHeight: {
       type: Number,
-      default: 150,
+      default: COCKPIT_TABLE_BODY_HEIGHT,
     },
     columnWidths: {
       type: Object,
@@ -57,32 +60,60 @@ export default {
     },
   },
   mounted() {
-    this.shujuautoScroll();
+    this.$nextTick(() => this.shujuautoScroll());
+  },
+  watch: {
+    tableData() {
+      this.$nextTick(() => {
+        this.shujuautoScroll(true);
+        this.shujuautoScroll();
+      });
+    },
   },
   beforeDestroy() {
     this.shujuautoScroll(true);
   },
   methods: {
     shujuautoScroll(stop) {
-      const table = this.$refs.shujuscroll_Table;
-      const divData = table.$refs.bodyWrapper;
       if (stop) {
         window.clearInterval(this.scrolltimer);
-      } else {
-        this.scrolltimer = window.setInterval(() => {
-          divData.scrollTop += 1;
-          if (
-            divData.clientHeight + divData.scrollTop ==
-            divData.scrollHeight
-          ) {
-            divData.scrollTop = 0;
-          }
-        }, 150);
+        this.scrolltimer = null;
+        return;
       }
+      const table = this.$refs.shujuscroll_Table;
+      const divData = table && table.$refs.bodyWrapper;
+      if (!divData || !this.tableData || this.tableData.length === 0) {
+        return;
+      }
+      if (divData.scrollHeight <= divData.clientHeight) {
+        return;
+      }
+      window.clearInterval(this.scrolltimer);
+      this.scrolltimer = window.setInterval(() => {
+        divData.scrollTop += 1;
+        if (
+          divData.clientHeight + divData.scrollTop >=
+          divData.scrollHeight
+        ) {
+          divData.scrollTop = 0;
+        }
+      }, 150);
     },
     getColumnWidth(prop) {
-      return this.columnWidths[prop] + 'px'; // 根据传入的属性(prop)获取对应的列宽度
-      return this.YCcolumnWidths[prop] + 'px'; // 根据传入的属性(prop)获取对应的列宽度
+      const w =
+        this.columnWidths[prop] ?? this.YCcolumnWidths[prop];
+      if (w == null || w === "auto") return undefined;
+      if (typeof w === "string" && w.endsWith("%")) return undefined;
+      if (typeof w === "string") return w;
+      return `${w}px`;
+    },
+    getColumnMinWidth(prop) {
+      const w =
+        this.columnWidths[prop] ?? this.YCcolumnWidths[prop];
+      if (typeof w === "string" && w.endsWith("%")) {
+        return w;
+      }
+      return undefined;
     },
     tableRowClassName({ row, rowIndex }) {
       if (rowIndex % 2 === 1) {
@@ -96,12 +127,30 @@ export default {
 </script>
 
 <style lang="scss" scoped>
+.tabroll-wrap {
+  width: 100%;
+}
+
 #Tabtab {
+  width: 100% !important;
   font-size: 12px;
 }
 
-::v-deep.el-table .el-table__cell {
-  padding: 2px 0 !important;
+::v-deep #Tabtab .el-table__body,
+::v-deep #Tabtab .el-table__body-wrapper table {
+  width: 100% !important;
+  table-layout: fixed;
+}
+
+::v-deep .cockpit-tabroll-table .el-table__body .el-table__cell {
+  padding: 0 !important;
+}
+
+::v-deep .cockpit-tabroll-table .el-table__body .el-table__cell .cell {
+  padding-top: 0 !important;
+  padding-bottom: 0 !important;
+  padding-left: var(--cockpit-td-padding-x, 8px) !important;
+  padding-right: var(--cockpit-td-padding-x, 8px) !important;
 }
 
 /* 去掉最下面的那一条线 */
@@ -109,18 +158,15 @@ export default {
   height: 0px;
 }
 
-/* 滚动条样式 */
-::v-deep .el-table__body-wrapper::-webkit-scrollbar-track {
-  background-color: #004f5f;
-}
-
-::v-deep .el-table__body-wrapper::-webkit-scrollbar {
-  width: 0px;
-  opacity: 0.5;
+/* 自动滚动:隐藏滚动条 */
+::v-deep .cockpit-tabroll-table .el-table__body-wrapper {
+  scrollbar-width: none;
+  -ms-overflow-style: none;
 }
 
-::v-deep .el-table__body-wrapper::-webkit-scrollbar-thumb {
-  border-radius: 15px;
-  // background-color: rgba(0, 79, 95, 0.75);
+::v-deep .cockpit-tabroll-table .el-table__body-wrapper::-webkit-scrollbar {
+  width: 0 !important;
+  height: 0 !important;
+  display: none !important;
 }
 </style>

+ 223 - 0
src/views/health/components/health/HealthHeader.vue

@@ -0,0 +1,223 @@
+<template>
+  <div class="health-header__farm" ref="farmRoot">
+    <i class="el-icon-location health-header__farm-icon"></i>
+    <selecttree
+      class="health-header__selecttree"
+      size="small"
+      popper-class="health-header-tree-popper"
+      placeholder="请选择所属公司"
+      :list="parentOpt"
+      type="1"
+      v-model="companyCode"
+      @change="handleSelectChange"
+      :defaultParentProps="defaultParentProps"
+    />
+  </div>
+</template>
+
+<script>
+import selecttree from "@/components/selecttree.vue";
+import { getSysOrganizationAuthTreeByRoleId } from "@/api/ledger.js";
+
+export default {
+  name: "HealthHeader",
+  components: {
+    selecttree,
+  },
+  props: {
+    value: {
+      type: String,
+      default: "",
+    },
+  },
+  data() {
+    return {
+      companyCode: this.value,
+      parentOpt: [],
+      defaultParentProps: {
+        children: "children",
+        label: "companyName",
+        value: "codeNumber",
+      },
+    };
+  },
+  watch: {
+    value(val) {
+      this.companyCode = val;
+    },
+    companyCode(val) {
+      this.$emit("input", val);
+    },
+  },
+  created() {
+    this.GETtree();
+  },
+  mounted() {
+    this.$nextTick(this.mountToHeader);
+  },
+  beforeDestroy() {
+    this.unmountFromHeader();
+  },
+  methods: {
+    mountToHeader() {
+      const target = document.getElementById("header-page-tools");
+      const el = this.$refs.farmRoot;
+      if (!target || !el || target.contains(el)) return;
+
+      this._portalPlaceholder = document.createComment("health-header-anchor");
+      if (el.parentNode) {
+        el.parentNode.insertBefore(this._portalPlaceholder, el);
+      }
+      target.appendChild(el);
+    },
+    unmountFromHeader() {
+      const el = this.$refs.farmRoot;
+      if (
+        this._portalPlaceholder &&
+        this._portalPlaceholder.parentNode &&
+        el
+      ) {
+        this._portalPlaceholder.parentNode.insertBefore(
+          el,
+          this._portalPlaceholder
+        );
+        this._portalPlaceholder.parentNode.removeChild(this._portalPlaceholder);
+      } else if (el && el.parentNode) {
+        el.parentNode.removeChild(el);
+      }
+      this._portalPlaceholder = null;
+    },
+    async GETtree() {
+      try {
+        const res = await getSysOrganizationAuthTreeByRoleId();
+        const processedData = this.processTreeData(res.data || []);
+        this.parentOpt = processedData;
+
+        const defaultdata = (res.data || [])[0];
+        if (defaultdata) {
+          this.$nextTick(() => {
+            this.handleSelectChange(defaultdata);
+          });
+        }
+      } catch (error) {
+        console.error("加载组织树失败:", error);
+      }
+    },
+    processTreeData(treeData) {
+      const processedData = [];
+      const processNode = (node) => {
+        if (node.codeType === "field") {
+          node.companyName = node.fieldName;
+        }
+        if (node.children && node.children.length > 0) {
+          node.children.forEach(processNode);
+        }
+      };
+      treeData.forEach((root) => {
+        processNode(root);
+        processedData.push(root);
+      });
+      return processedData;
+    },
+    handleSelectChange(data) {
+      if (!data || !data.codeNumber) {
+        return;
+      }
+      this.companyCode = data.codeNumber;
+      this.$emit("input", data.codeNumber);
+      this.$emit("change", data);
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.health-header__farm {
+  display: flex;
+  align-items: center;
+  gap: 8px;
+  padding: 4px 12px 4px 10px;
+  background: rgba(15, 23, 42, 0.85);
+  border-radius: 6px;
+  border: 1px solid rgba(0, 242, 255, 0.25);
+  backdrop-filter: blur(8px);
+  transition: border-color 0.3s ease;
+
+  &:hover {
+    border-color: rgba(6, 182, 212, 0.5);
+  }
+}
+
+.health-header__farm-icon {
+  color: #22d3ee;
+  font-size: 16px;
+  flex-shrink: 0;
+}
+
+.health-header__selecttree {
+  width: 220px;
+
+  ::v-deep .el-input__inner {
+    background: transparent !important;
+    border: none !important;
+    color: #e2e8f0 !important;
+    padding-left: 0 !important;
+    height: 28px;
+    line-height: 28px;
+  }
+
+  ::v-deep .el-input__icon {
+    color: #64748b !important;
+  }
+}
+</style>
+
+<style lang="scss">
+.health-header-tree-popper.selecttree-popper {
+  background: #0d1930 !important;
+  border: 1px solid rgba(0, 242, 255, 0.25) !important;
+
+  .popper__arrow::after {
+    border-bottom-color: #0d1930 !important;
+  }
+
+  .el-select-dropdown__item.hasTree {
+    background: #0d1930 !important;
+
+    &.hover,
+    &:hover,
+    &.selected {
+      background: #0d1930 !important;
+    }
+  }
+
+  .el-tree {
+    background: transparent !important;
+    color: #b7dff5 !important;
+  }
+
+  .el-tree-node__label {
+    color: #b7dff5 !important;
+  }
+
+  .el-tree-node__content:hover {
+    background: rgba(0, 170, 255, 0.15) !important;
+  }
+
+  .el-tree-node__content:hover .el-tree-node__label {
+    color: #ffffff !important;
+  }
+
+  .el-tree-node.is-current > .el-tree-node__content,
+  .el-tree--highlight-current
+    .el-tree-node.is-current
+    > .el-tree-node__content {
+    background: #1890ff !important;
+    color: #ffffff !important;
+  }
+
+  .el-tree-node.is-current > .el-tree-node__content .el-tree-node__label {
+    color: #ffffff !important;
+  }
+}
+</style>

+ 417 - 0
src/views/health/components/health/HealthRankingPanel.vue

@@ -0,0 +1,417 @@
+<template>
+  <section class="health-ranking-panel">
+    <div
+      class="health-ranking-panel__card health-ranking-panel__card--good glass-card"
+    >
+      <h3 class="health-ranking-panel__title health-ranking-panel__title--good">
+        <i class="el-icon-top health-ranking-panel__title-icon"></i>
+        设备运行健康榜 (Top 5)
+      </h3>
+      <div
+        class="health-ranking-panel__viewport health-ranking-panel__viewport--good"
+      >
+        <div
+          class="health-ranking-panel__track"
+          :style="{ transform: `translateY(-${healthyTrackOffset}px)` }"
+        >
+          <div
+            v-for="(item, index) in healthyList"
+            :key="item.name"
+            class="health-ranking-panel__row health-ranking-panel__row--good"
+          >
+            <span
+              class="health-ranking-panel__rank-tag"
+              :class="`health-ranking-panel__rank-tag--good-${index + 1}`"
+            >
+              {{ index + 1 }}
+            </span>
+            <span class="health-ranking-panel__name">{{ item.name }}</span>
+            <span
+              class="health-ranking-panel__score health-ranking-panel__score--good"
+            >
+              {{ item.score }}
+            </span>
+          </div>
+        </div>
+      </div>
+    </div>
+
+    <div
+      class="health-ranking-panel__card health-ranking-panel__card--risk glass-card neon-border-red"
+    >
+      <h3
+        class="health-ranking-panel__title health-ranking-panel__title--danger"
+      >
+        <i
+          class="el-icon-warning health-ranking-panel__title-icon health-ranking-panel__pulse"
+        ></i>
+        设备异常预警榜 (Top 5)
+      </h3>
+      <div
+        class="health-ranking-panel__viewport health-ranking-panel__viewport--risk"
+      >
+        <div
+          class="health-ranking-panel__track"
+          :style="{ transform: `translateY(-${riskTrackOffset}px)` }"
+        >
+          <div
+            v-for="(item, index) in riskList"
+            :key="item.name"
+            class="health-ranking-panel__row"
+            :class="[
+              item.rowClass === 'strong'
+                ? 'health-ranking-panel__row--danger'
+                : 'health-ranking-panel__row--warning',
+            ]"
+          >
+            <span
+              class="health-ranking-panel__rank-tag"
+              :class="`health-ranking-panel__rank-tag--risk-${index + 1}`"
+            >
+              {{ index + 1 }}
+            </span>
+            <div class="health-ranking-panel__risk-info">
+              <span
+                class="health-ranking-panel__name health-ranking-panel__name--bold"
+              >
+                {{ item.name }}
+              </span>
+            </div>
+            <span
+              class="health-ranking-panel__badge"
+              :class="`health-ranking-panel__badge--${item.scoreClass}`"
+            >
+              {{ item.score }}
+            </span>
+          </div>
+        </div>
+      </div>
+    </div>
+  </section>
+</template>
+
+<script>
+const ROW_HEIGHT = 36;
+const ROW_GAP = 8;
+const ROW_STEP = ROW_HEIGHT + ROW_GAP;
+const SCROLL_INTERVAL = 3000;
+
+export default {
+  name: "HealthRankingPanel",
+  props: {
+    healthyList: {
+      type: Array,
+      default: () => [],
+    },
+    riskList: {
+      type: Array,
+      default: () => [],
+    },
+  },
+  data() {
+    return {
+      healthyScrollIndex: 0,
+      riskScrollIndex: 0,
+      healthyTimer: null,
+      riskTimer: null,
+      healthyVisibleCount: 3,
+      riskVisibleCount: 4,
+    };
+  },
+  computed: {
+    healthyMaxScrollIndex() {
+      return Math.max(0, this.healthyList.length - this.healthyVisibleCount);
+    },
+    riskMaxScrollIndex() {
+      return Math.max(0, this.riskList.length - this.riskVisibleCount);
+    },
+    healthyTrackOffset() {
+      return this.healthyScrollIndex * ROW_STEP;
+    },
+    riskTrackOffset() {
+      return this.riskScrollIndex * ROW_STEP;
+    },
+  },
+  watch: {
+    healthyList: {
+      deep: true,
+      handler() {
+        this.resetHealthyScroll();
+      },
+    },
+    riskList: {
+      deep: true,
+      handler() {
+        this.resetRiskScroll();
+      },
+    },
+  },
+  mounted() {
+    this.startHealthyScroll();
+    this.startRiskScroll();
+  },
+  beforeDestroy() {
+    this.clearScrollTimers();
+  },
+  methods: {
+    clearScrollTimers() {
+      if (this.healthyTimer) {
+        clearInterval(this.healthyTimer);
+        this.healthyTimer = null;
+      }
+      if (this.riskTimer) {
+        clearInterval(this.riskTimer);
+        this.riskTimer = null;
+      }
+    },
+    resetHealthyScroll() {
+      this.healthyScrollIndex = 0;
+      if (this.healthyTimer) {
+        clearInterval(this.healthyTimer);
+        this.healthyTimer = null;
+      }
+      this.startHealthyScroll();
+    },
+    resetRiskScroll() {
+      this.riskScrollIndex = 0;
+      if (this.riskTimer) {
+        clearInterval(this.riskTimer);
+        this.riskTimer = null;
+      }
+      this.startRiskScroll();
+    },
+    startHealthyScroll() {
+      if (this.healthyList.length <= this.healthyVisibleCount) return;
+
+      this.healthyTimer = setInterval(() => {
+        this.healthyScrollIndex =
+          this.healthyScrollIndex >= this.healthyMaxScrollIndex
+            ? 0
+            : this.healthyScrollIndex + 1;
+      }, SCROLL_INTERVAL);
+    },
+    startRiskScroll() {
+      if (this.riskList.length <= this.riskVisibleCount) return;
+
+      this.riskTimer = setInterval(() => {
+        this.riskScrollIndex =
+          this.riskScrollIndex >= this.riskMaxScrollIndex
+            ? 0
+            : this.riskScrollIndex + 1;
+      }, SCROLL_INTERVAL);
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+$rank-row-height: 36px;
+$rank-gap: 8px;
+
+.health-ranking-panel {
+  display: flex;
+  flex-direction: column;
+  gap: 24px;
+  min-width: 0;
+  height: 100%;
+}
+
+.health-ranking-panel__card {
+  padding: 16px;
+  display: flex;
+  flex-direction: column;
+}
+
+.health-ranking-panel__card--good {
+  flex: 0 0 auto;
+}
+
+.health-ranking-panel__card--risk {
+  flex: 1 1 auto;
+  min-height: 0;
+}
+
+.health-ranking-panel__title {
+  flex-shrink: 0;
+  margin: 0 0 12px;
+  font-size: 14px;
+  font-weight: 700;
+  display: flex;
+  align-items: center;
+}
+
+.health-ranking-panel__title--good {
+  color: #00ff88;
+}
+
+.health-ranking-panel__title--danger {
+  color: #ff3131;
+}
+
+.health-ranking-panel__title-icon {
+  margin-right: 8px;
+}
+
+.health-ranking-panel__pulse {
+  animation: health-pulse 2s ease-in-out infinite;
+}
+
+@keyframes health-pulse {
+  0%,
+  100% {
+    opacity: 1;
+  }
+  50% {
+    opacity: 0.45;
+  }
+}
+
+.health-ranking-panel__viewport {
+  flex-shrink: 0;
+  overflow: hidden;
+}
+
+.health-ranking-panel__viewport--good {
+  height: calc(#{$rank-row-height} * 3 + #{$rank-gap} * 2);
+}
+
+.health-ranking-panel__viewport--risk {
+  height: calc(#{$rank-row-height} * 4 + #{$rank-gap} * 3);
+}
+
+.health-ranking-panel__track {
+  display: flex;
+  flex-direction: column;
+  gap: $rank-gap;
+  transition: transform 0.6s ease-in-out;
+}
+
+.health-ranking-panel__row {
+  display: flex;
+  align-items: center;
+  gap: 10px;
+  height: $rank-row-height;
+  min-height: $rank-row-height;
+  padding: 0 8px;
+  border-radius: 6px;
+  box-sizing: border-box;
+}
+
+.health-ranking-panel__row--good {
+  background: rgba(16, 185, 129, 0.05);
+  border: 1px solid rgba(16, 185, 129, 0.1);
+}
+
+.health-ranking-panel__row--danger {
+  background: rgba(239, 68, 68, 0.1);
+  border: 1px solid rgba(239, 68, 68, 0.2);
+}
+
+.health-ranking-panel__row--warning {
+  background: rgba(239, 68, 68, 0.05);
+  border: 1px solid rgba(239, 68, 68, 0.1);
+  opacity: 0.8;
+}
+
+.health-ranking-panel__risk-info {
+  flex: 1;
+  min-width: 0;
+}
+
+.health-ranking-panel__rank-tag {
+  flex-shrink: 0;
+  display: inline-flex;
+  align-items: center;
+  justify-content: center;
+  width: 26px;
+  height: 18px;
+  font-size: 11px;
+  font-weight: 700;
+  line-height: 1;
+  color: #ffffff;
+  clip-path: polygon(
+    0 0,
+    calc(100% - 7px) 0,
+    100% 50%,
+    calc(100% - 7px) 100%,
+    0 100%
+  );
+}
+
+.health-ranking-panel__rank-tag--good-1 {
+  background: #00ff88;
+}
+
+.health-ranking-panel__rank-tag--good-2 {
+  background: #1e7cf8;
+}
+
+.health-ranking-panel__rank-tag--good-3 {
+  background: #22d3ee;
+}
+
+.health-ranking-panel__rank-tag--good-4,
+.health-ranking-panel__rank-tag--good-5 {
+  background: #64748b;
+}
+
+.health-ranking-panel__rank-tag--risk-1 {
+  background: #ff3131;
+}
+
+.health-ranking-panel__rank-tag--risk-2 {
+  background: #ff8c42;
+}
+
+.health-ranking-panel__rank-tag--risk-3 {
+  background: #facc15;
+  color: #1e293b;
+}
+
+.health-ranking-panel__rank-tag--risk-4,
+.health-ranking-panel__rank-tag--risk-5 {
+  background: #22d3ee;
+}
+
+.health-ranking-panel__name {
+  flex: 1;
+  min-width: 0;
+  font-size: 12px;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+
+.health-ranking-panel__name--bold {
+  font-weight: 700;
+}
+
+.health-ranking-panel__score {
+  flex-shrink: 0;
+  font-size: 12px;
+  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
+  font-weight: 700;
+}
+
+.health-ranking-panel__score--good {
+  color: #00ff88;
+}
+
+.health-ranking-panel__badge {
+  flex-shrink: 0;
+  padding: 2px 8px;
+  border-radius: 4px;
+  font-size: 10px;
+  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
+}
+
+.health-ranking-panel__badge--danger {
+  background: rgba(239, 68, 68, 0.2);
+  color: #ff3131;
+}
+
+.health-ranking-panel__badge--warning {
+  font-size: 12px;
+  color: #faad14;
+}
+</style>

+ 196 - 0
src/views/health/components/health/HealthScorePanel.vue

@@ -0,0 +1,196 @@
+<template>
+  <section class="health-score-panel glass-card">
+    <div class="scan-line"></div>
+    <h3 class="health-score-panel__title">
+      <i class="el-icon-success health-score-panel__icon"></i>
+      全场健康度实时评分
+    </h3>
+    <div ref="chartRef" class="health-score-panel__chart"></div>
+    <div class="health-score-panel__stats">
+      <div
+        v-for="item in summary"
+        :key="item.label"
+        class="health-score-panel__stat"
+      >
+        <div class="health-score-panel__stat-value" :style="{ color: item.color }">
+          {{ item.value }}
+        </div>
+        <div class="health-score-panel__stat-label">{{ item.label }}</div>
+      </div>
+    </div>
+  </section>
+</template>
+
+<script>
+import * as echarts from "echarts";
+
+export default {
+  name: "HealthScorePanel",
+  props: {
+    distribution: {
+      type: Array,
+      default: () => [],
+    },
+    summary: {
+      type: Array,
+      default: () => [],
+    },
+    totalScore: {
+      type: Number,
+      default: 92,
+    },
+  },
+  data() {
+    return {
+      chart: null,
+    };
+  },
+  mounted() {
+    this.initChart();
+    window.addEventListener("resize", this.handleResize);
+  },
+  beforeDestroy() {
+    window.removeEventListener("resize", this.handleResize);
+    if (this.chart) {
+      this.chart.dispose();
+      this.chart = null;
+    }
+  },
+  watch: {
+    distribution: {
+      deep: true,
+      handler() {
+        this.renderChart();
+      },
+    },
+    totalScore() {
+      this.renderChart();
+    },
+  },
+  methods: {
+    initChart() {
+      if (!this.$refs.chartRef) return;
+      this.chart = echarts.init(this.$refs.chartRef);
+      this.renderChart();
+    },
+    renderChart() {
+      if (!this.chart) return;
+      this.chart.setOption({
+        backgroundColor: "transparent",
+        series: [
+          {
+            type: "pie",
+            radius: ["60%", "85%"],
+            avoidLabelOverlap: false,
+            itemStyle: {
+              borderRadius: 10,
+              borderColor: "#050E23",
+              borderWidth: 5,
+            },
+            label: {
+              show: true,
+              position: "center",
+              formatter: `{score|${this.totalScore}}\n{label|综合评分}`,
+              rich: {
+                score: {
+                  fontSize: 48,
+                  fontWeight: "bold",
+                  color: "#00F2FF",
+                  fontFamily: "Orbitron, monospace",
+                  padding: [10, 0],
+                },
+                label: {
+                  fontSize: 12,
+                  color: "#64748b",
+                },
+              },
+            },
+            emphasis: {
+              label: {
+                show: true,
+              },
+            },
+            data: this.distribution.map((item) => ({
+              value: item.value,
+              name: item.name,
+              itemStyle: { color: item.color },
+            })),
+          },
+        ],
+      });
+    },
+    handleResize() {
+      if (this.chart) {
+        this.chart.resize();
+      }
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.health-score-panel {
+  padding: 24px;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  position: relative;
+  overflow: hidden;
+  height: 100%;
+  min-width: 0;
+}
+
+.health-score-panel__title {
+  width: 100%;
+  margin: 0 0 16px;
+  text-align: left;
+  color: #94a3b8;
+  font-size: 14px;
+  display: flex;
+  align-items: center;
+}
+
+.health-score-panel__icon {
+  margin-right: 8px;
+  color: #22d3ee;
+  font-size: 16px;
+}
+
+.health-score-panel__chart {
+  width: 100%;
+  height: 220px;
+}
+
+@media (min-width: 1280px) {
+  .health-score-panel__chart {
+    height: 256px;
+  }
+}
+
+.health-score-panel__stats {
+  display: grid;
+  grid-template-columns: repeat(4, minmax(0, 1fr));
+  gap: 8px;
+  width: 100%;
+  margin-top: 16px;
+}
+
+.health-score-panel__stat {
+  text-align: center;
+  padding: 8px;
+  background: rgba(255, 255, 255, 0.05);
+  border-radius: 8px;
+  border: 1px solid rgba(255, 255, 255, 0.05);
+}
+
+.health-score-panel__stat-value {
+  font-size: 18px;
+  font-weight: 700;
+}
+
+.health-score-panel__stat-label {
+  font-size: 10px;
+  color: #64748b;
+  margin-top: 2px;
+}
+</style>

+ 167 - 0
src/views/health/components/health/HealthSubsystemPanel.vue

@@ -0,0 +1,167 @@
+<template>
+  <section class="health-subsystem-panel glass-card subsystem-card">
+    <h3 class="health-subsystem-panel__title">
+      <i class="el-icon-data-analysis health-subsystem-panel__icon"></i>
+      子系统健康度多维对比
+    </h3>
+    <div ref="chartRef" class="health-subsystem-panel__chart"></div>
+  </section>
+</template>
+
+<script>
+import * as echarts from "echarts";
+
+export default {
+  name: "HealthSubsystemPanel",
+  props: {
+    chartData: {
+      type: Array,
+      default: () => [],
+    },
+  },
+  data() {
+    return {
+      chart: null,
+    };
+  },
+  mounted() {
+    this.initChart();
+    window.addEventListener("resize", this.handleResize);
+  },
+  beforeDestroy() {
+    window.removeEventListener("resize", this.handleResize);
+    if (this.chart) {
+      this.chart.dispose();
+      this.chart = null;
+    }
+  },
+  watch: {
+    chartData: {
+      deep: true,
+      handler() {
+        this.renderChart();
+      },
+    },
+  },
+  methods: {
+    initChart() {
+      if (!this.$refs.chartRef) return;
+      this.chart = echarts.init(this.$refs.chartRef);
+      this.renderChart();
+    },
+    renderChart() {
+      if (!this.chart) return;
+      this.chart.setOption({
+        backgroundColor: "transparent",
+        tooltip: {
+          trigger: "axis",
+          backgroundColor: "rgba(16, 30, 66, 0.95)",
+          borderColor: "rgba(120, 156, 255, 0.4)",
+          textStyle: { color: "#dbeafe" },
+          axisPointer: { type: "shadow" },
+        },
+        grid: {
+          top: "10%",
+          left: "3%",
+          right: "4%",
+          bottom: "6%",
+          containLabel: true,
+        },
+        xAxis: {
+          type: "category",
+          data: this.chartData.map((item) => item.name),
+          axisLine: {
+            lineStyle: {
+              color: "rgba(122, 149, 218, 0.35)",
+            },
+          },
+          axisTick: { show: false },
+          axisLabel: {
+            color: "#8da3c7",
+            fontSize: 13,
+            fontWeight: 600,
+          },
+        },
+        yAxis: {
+          type: "value",
+          max: 100,
+          axisLine: { show: false },
+          axisTick: { show: false },
+          splitLine: {
+            lineStyle: {
+              color: "rgba(98, 121, 186, 0.2)",
+              type: "dashed",
+            },
+          },
+          axisLabel: {
+            color: "#7f94b7",
+            fontSize: 12,
+          },
+        },
+        series: [
+          {
+            data: this.chartData.map((item) => ({
+              value: item.value,
+              itemStyle: {
+                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
+                  { offset: 0, color: item.colors[0] },
+                  { offset: 1, color: item.colors[1] },
+                ]),
+              },
+            })),
+            type: "bar",
+            barWidth: "42%",
+            barCategoryGap: "42%",
+            showBackground: true,
+            backgroundStyle: {
+              color: "rgba(119, 143, 199, 0.12)",
+              borderRadius: [12, 12, 0, 0],
+            },
+            itemStyle: {
+              borderRadius: [8, 8, 0, 0],
+            },
+          },
+        ],
+      });
+    },
+    handleResize() {
+      if (this.chart) {
+        this.chart.resize();
+      }
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.health-subsystem-panel {
+  padding: 24px;
+  height: 100%;
+  min-width: 0;
+}
+
+.health-subsystem-panel__title {
+  margin: 0 0 16px;
+  color: #94a3b8;
+  font-size: 14px;
+  display: flex;
+  align-items: center;
+}
+
+.health-subsystem-panel__icon {
+  margin-right: 8px;
+  color: #c4b5fd;
+  font-size: 16px;
+}
+
+.health-subsystem-panel__chart {
+  width: 100%;
+  height: 260px;
+}
+
+@media (min-width: 1280px) {
+  .health-subsystem-panel__chart {
+    height: 320px;
+  }
+}
+</style>

+ 327 - 0
src/views/health/components/health/HealthUnitCard.vue

@@ -0,0 +1,327 @@
+<template>
+  <div
+    class="health-unit-card glass-card"
+    :class="{
+      'health-unit-card--dimmed': unit.dimmed,
+      'health-unit-card--interactive': unit.interactive,
+    }"
+  >
+    <div class="health-unit-card__header">
+      <div>
+        <h3
+          class="health-unit-card__name"
+          :class="{ 'health-unit-card__name--interactive': unit.interactive }"
+        >
+          {{ unit.name }}
+        </h3>
+        <p class="health-unit-card__model">{{ unit.model }}</p>
+      </div>
+      <span class="health-unit-card__status" :class="statusClass">
+        {{ unit.statusText }}
+      </span>
+    </div>
+
+    <div
+      class="health-unit-card__score-wrap"
+      :class="{ 'health-unit-card__score-wrap--glow': unit.showGlow }"
+    >
+      <div v-if="unit.showGlow" class="health-unit-card__score-glow"></div>
+      <span class="health-unit-card__score" :class="scoreClass">{{
+        unit.score
+      }}</span>
+      <span v-if="unit.showScoreLabel" class="health-unit-card__score-label"
+        >Score</span
+      >
+    </div>
+
+    <div class="health-unit-card__metrics">
+      <div
+        v-for="(metric, index) in unit.metrics"
+        :key="`${metric.label}-${index}`"
+      >
+        <div class="health-unit-card__metric-row">
+          <span class="health-unit-card__metric-label">{{ metric.label }}</span>
+          <span
+            class="health-unit-card__metric-value"
+            :class="metricToneClass(metric.tone)"
+          >
+            {{ metric.value }}%
+          </span>
+        </div>
+        <div class="health-unit-card__metric-bar">
+          <div
+            class="health-unit-card__metric-fill"
+            :class="[
+              metricBarClass(metric.tone),
+              { 'health-unit-card__metric-fill--glow': metric.glow },
+            ]"
+            :style="{ width: `${metric.value}%` }"
+          ></div>
+        </div>
+      </div>
+    </div>
+
+    <a
+      class="health-unit-card__link"
+      href="javascript:void(0)"
+      @click.prevent="drawerVisible = true"
+    >
+      查看诊断详情
+      <i class="el-icon-right health-unit-card__link-icon"></i>
+    </a>
+
+    <HealthUnitDetailDrawer :visible.sync="drawerVisible" :unit="unit" />
+  </div>
+</template>
+
+<script>
+import HealthUnitDetailDrawer from "./HealthUnitDetailDrawer.vue";
+
+export default {
+  name: "HealthUnitCard",
+  components: {
+    HealthUnitDetailDrawer,
+  },
+  props: {
+    unit: {
+      type: Object,
+      required: true,
+    },
+  },
+  data() {
+    return {
+      drawerVisible: false,
+    };
+  },
+  computed: {
+    statusClass() {
+      return `health-unit-card__status--${this.unit.statusType}`;
+    },
+    scoreClass() {
+      return `health-unit-card__score--${this.unit.scoreTone}`;
+    },
+  },
+  methods: {
+    metricToneClass(tone) {
+      return `health-unit-card__metric-value--${tone}`;
+    },
+    metricBarClass(tone) {
+      return `health-unit-card__metric-fill--${tone}`;
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.health-unit-card {
+  padding: 16px;
+
+  &--dimmed {
+    opacity: 0.9;
+  }
+}
+
+.health-unit-card__header {
+  display: flex;
+  justify-content: space-between;
+  align-items: flex-start;
+  margin-bottom: 16px;
+}
+
+.health-unit-card__name {
+  margin: 0;
+  font-size: 14px;
+  font-weight: 700;
+}
+
+.health-unit-card--interactive:hover .health-unit-card__name--interactive {
+  text-shadow: 0 0 8px rgba(0, 242, 255, 0.8);
+  color: #00f2ff;
+}
+
+.health-unit-card__model {
+  margin: 4px 0 0;
+  font-size: 10px;
+  color: #64748b;
+}
+
+.health-unit-card__status {
+  padding: 2px 6px;
+  border-radius: 4px;
+  font-size: 9px;
+  line-height: 1.4;
+  white-space: nowrap;
+}
+
+.health-unit-card__status--fault {
+  background: rgba(239, 68, 68, 0.2);
+  color: #f87171;
+  border: 1px solid rgba(239, 68, 68, 0.3);
+}
+
+.health-unit-card__status--excellent {
+  background: rgba(16, 185, 129, 0.2);
+  color: #34d399;
+  border: 1px solid rgba(16, 185, 129, 0.3);
+}
+
+.health-unit-card__status--excellent-plain {
+  background: rgba(16, 185, 129, 0.2);
+  color: #34d399;
+}
+
+.health-unit-card__status--good {
+  background: rgba(59, 130, 246, 0.2);
+  color: #60a5fa;
+}
+
+.health-unit-card__status--warning {
+  background: rgba(234, 179, 8, 0.2);
+  color: #facc15;
+}
+
+.health-unit-card__score-wrap {
+  position: relative;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  padding: 16px 0;
+}
+
+.health-unit-card__score-wrap--glow {
+  position: relative;
+}
+
+.health-unit-card__score-glow {
+  position: absolute;
+  inset: 0;
+  background: rgba(239, 68, 68, 0.05);
+  filter: blur(24px);
+  border-radius: 9999px;
+}
+
+.health-unit-card__score {
+  position: relative;
+  font-size: 30px;
+  font-weight: 700;
+  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
+}
+
+.health-unit-card__score--danger {
+  color: #ef4444;
+}
+
+.health-unit-card__score--excellent {
+  color: #34d399;
+}
+
+.health-unit-card__score--good {
+  color: #60a5fa;
+}
+
+.health-unit-card__score--warning {
+  color: #facc15;
+}
+
+.health-unit-card__score-label {
+  font-size: 10px;
+  color: #64748b;
+  margin-left: 4px;
+  margin-top: 8px;
+}
+
+.health-unit-card__metrics {
+  display: flex;
+  flex-direction: column;
+  gap: 6px;
+  margin-bottom: 16px;
+}
+
+.health-unit-card__metric-row {
+  display: flex;
+  justify-content: space-between;
+  font-size: 10px;
+}
+
+.health-unit-card__metric-label {
+  color: #64748b;
+}
+
+.health-unit-card__metric-value--emerald {
+  color: #34d399;
+}
+
+.health-unit-card__metric-value--danger {
+  color: #f87171;
+}
+
+.health-unit-card__metric-value--good {
+  color: #60a5fa;
+}
+
+.health-unit-card__metric-value--warning {
+  color: #facc15;
+}
+
+.health-unit-card__metric-bar {
+  width: 100%;
+  height: 4px;
+  background: #1e293b;
+  border-radius: 9999px;
+  overflow: hidden;
+}
+
+.health-unit-card__metric-fill {
+  height: 100%;
+  border-radius: 9999px;
+}
+
+.health-unit-card__metric-fill--emerald {
+  background: #10b981;
+}
+
+.health-unit-card__metric-fill--danger {
+  background: #ef4444;
+}
+
+.health-unit-card__metric-fill--good {
+  background: #3b82f6;
+}
+
+.health-unit-card__metric-fill--warning {
+  background: #eab308;
+}
+
+.health-unit-card__metric-fill--glow.health-unit-card__metric-fill--emerald {
+  box-shadow: 0 0 8px #10b981;
+}
+
+.health-unit-card__metric-fill--glow.health-unit-card__metric-fill--danger {
+  box-shadow: 0 0 8px #ef4444;
+}
+
+.health-unit-card__link {
+  display: block;
+  text-align: center;
+  padding: 6px 0;
+  background: rgba(255, 255, 255, 0.05);
+  border-radius: 6px;
+  font-size: 10px;
+  color: inherit;
+  text-decoration: none;
+  border: 1px solid rgba(255, 255, 255, 0.1);
+  transition: all 0.3s ease;
+
+  &:hover {
+    background: rgba(6, 182, 212, 0.2);
+    border-color: rgba(6, 182, 212, 0.5);
+    color: #e2e8f0;
+  }
+}
+
+.health-unit-card__link-icon {
+  margin-left: 4px;
+  font-size: 12px;
+  vertical-align: middle;
+}
+</style>

+ 565 - 0
src/views/health/components/health/HealthUnitDetailDrawer.vue

@@ -0,0 +1,565 @@
+<template>
+  <el-drawer
+    :visible.sync="drawerVisible"
+    direction="rtl"
+    size="480px"
+    :title="drawerTitle"
+    custom-class="health-unit-detail-drawer"
+    append-to-body
+    @opened="handleOpened"
+    @closed="handleClosed"
+  >
+    <div class="unit-detail">
+      <section class="unit-detail__section">
+        <h4 class="unit-detail__heading">{{ unitName }}风机综合健康评分</h4>
+        <div ref="gaugeRef" class="unit-detail__gauge"></div>
+      </section>
+
+      <section class="unit-detail__section">
+        <div class="unit-detail__section-head">
+          <h4 class="unit-detail__heading">综合健康评分趋势图</h4>
+          <el-radio-group
+            v-model="timeRange.overall"
+            size="mini"
+            class="unit-detail__range"
+            @change="renderOverallTrend"
+          >
+            <el-radio-button label="7">近7天</el-radio-button>
+            <el-radio-button label="30">近30天</el-radio-button>
+            <el-radio-button label="365">近1年</el-radio-button>
+          </el-radio-group>
+        </div>
+        <div ref="overallTrendRef" class="unit-detail__chart"></div>
+      </section>
+
+      <section
+        v-for="section in detail.healthSections"
+        :key="section.title"
+        class="unit-detail__health-block"
+      >
+        <div class="unit-detail__health-title">{{ section.title }}</div>
+        <div
+          v-for="item in section.items"
+          :key="item.name"
+          class="unit-detail__health-row"
+        >
+          <span class="unit-detail__health-name">
+            {{ item.name }}
+            <i v-if="item.help" class="el-icon-question unit-detail__help"></i>
+          </span>
+          <span class="unit-detail__health-score">
+            {{ item.score == null ? "/" : item.score }}
+          </span>
+          <span v-if="item.status" class="unit-detail__health-status">
+            <i
+              class="unit-detail__status-dot"
+              :style="{ backgroundColor: statusInfo(item.status).color }"
+            ></i>
+            {{ statusInfo(item.status).label }}
+          </span>
+          <span v-else class="unit-detail__health-status unit-detail__health-status--empty"
+            >/</span
+          >
+        </div>
+      </section>
+
+      <section class="unit-detail__section">
+        <div class="unit-detail__section-head">
+          <h4 class="unit-detail__heading">结构健康趋势图</h4>
+          <el-radio-group
+            v-model="timeRange.structural"
+            size="mini"
+            class="unit-detail__range"
+            @change="renderStructuralTrend"
+          >
+            <el-radio-button label="7">近7天</el-radio-button>
+            <el-radio-button label="30">近30天</el-radio-button>
+            <el-radio-button label="365">近1年</el-radio-button>
+          </el-radio-group>
+        </div>
+        <div ref="structuralTrendRef" class="unit-detail__chart unit-detail__chart--tall"></div>
+      </section>
+
+      <section class="unit-detail__section">
+        <div class="unit-detail__section-head">
+          <h4 class="unit-detail__heading">系统健康趋势图</h4>
+          <el-radio-group
+            v-model="timeRange.system"
+            size="mini"
+            class="unit-detail__range"
+            @change="renderSystemTrend"
+          >
+            <el-radio-button label="7">近7天</el-radio-button>
+            <el-radio-button label="30">近30天</el-radio-button>
+            <el-radio-button label="365">近1年</el-radio-button>
+          </el-radio-group>
+        </div>
+        <div ref="systemTrendRef" class="unit-detail__chart unit-detail__chart--tall"></div>
+      </section>
+
+      <section class="unit-detail__section">
+        <div class="unit-detail__section-head">
+          <h4 class="unit-detail__heading">部件健康趋势图</h4>
+          <el-radio-group
+            v-model="timeRange.component"
+            size="mini"
+            class="unit-detail__range"
+            @change="renderComponentTrend"
+          >
+            <el-radio-button label="7">近7天</el-radio-button>
+            <el-radio-button label="30">近30天</el-radio-button>
+            <el-radio-button label="365">近1年</el-radio-button>
+          </el-radio-group>
+        </div>
+        <div ref="componentTrendRef" class="unit-detail__chart unit-detail__chart--tall"></div>
+      </section>
+    </div>
+
+    <div class="unit-detail__footer">
+      <el-button size="small" @click="drawerVisible = false">取消</el-button>
+    </div>
+  </el-drawer>
+</template>
+
+<script>
+import * as echarts from "echarts";
+import {
+  buildTrendData,
+  getUnitDetailData,
+  HEALTH_STATUS,
+} from "./unitDetailData";
+
+export default {
+  name: "HealthUnitDetailDrawer",
+  props: {
+    visible: {
+      type: Boolean,
+      default: false,
+    },
+    unit: {
+      type: Object,
+      default: () => ({}),
+    },
+  },
+  data() {
+    return {
+      detail: getUnitDetailData(),
+      timeRange: {
+        overall: "7",
+        structural: "7",
+        system: "7",
+        component: "7",
+      },
+      charts: {},
+    };
+  },
+  computed: {
+    drawerVisible: {
+      get() {
+        return this.visible;
+      },
+      set(val) {
+        this.$emit("update:visible", val);
+      },
+    },
+    drawerTitle() {
+      return "机组详情";
+    },
+    unitName() {
+      return (this.unit && this.unit.name) || "XXX";
+    },
+  },
+  watch: {
+    unit: {
+      deep: true,
+      handler(val) {
+        this.detail = getUnitDetailData(val);
+        if (this.visible) {
+          this.$nextTick(() => {
+            this.renderGauge();
+            this.renderAllTrends();
+          });
+        }
+      },
+    },
+  },
+  beforeDestroy() {
+    window.removeEventListener("resize", this.handleResize);
+    this.disposeCharts();
+  },
+  methods: {
+    statusInfo(status) {
+      return HEALTH_STATUS[status] || { label: "--", color: "#64748b" };
+    },
+    handleOpened() {
+      this.timeRange = {
+        overall: "7",
+        structural: "7",
+        system: "7",
+        component: "7",
+      };
+      this.detail = getUnitDetailData(this.unit);
+      this.$nextTick(() => {
+        this.initCharts();
+        window.addEventListener("resize", this.handleResize);
+      });
+    },
+    handleClosed() {
+      window.removeEventListener("resize", this.handleResize);
+      this.disposeCharts();
+    },
+    initCharts() {
+      this.initChart("gauge", this.$refs.gaugeRef);
+      this.initChart("overall", this.$refs.overallTrendRef);
+      this.initChart("structural", this.$refs.structuralTrendRef);
+      this.initChart("system", this.$refs.systemTrendRef);
+      this.initChart("component", this.$refs.componentTrendRef);
+      this.renderGauge();
+      this.renderAllTrends();
+    },
+    initChart(key, el) {
+      if (!el) return;
+      if (this.charts[key]) {
+        this.charts[key].dispose();
+      }
+      this.charts[key] = echarts.init(el);
+    },
+    disposeCharts() {
+      Object.keys(this.charts).forEach((key) => {
+        if (this.charts[key]) {
+          this.charts[key].dispose();
+        }
+      });
+      this.charts = {};
+    },
+    renderGauge() {
+      const chart = this.charts.gauge;
+      if (!chart) return;
+      chart.setOption({
+        backgroundColor: "transparent",
+        series: [
+          {
+            type: "gauge",
+            startAngle: 180,
+            endAngle: 0,
+            min: 0,
+            max: 100,
+            radius: "100%",
+            center: ["50%", "72%"],
+            splitNumber: 5,
+            axisLine: {
+              lineStyle: {
+                width: 18,
+                color: [
+                  [0.2, "#FF4A4A"],
+                  [0.4, "#FF8C42"],
+                  [0.6, "#F7C43B"],
+                  [0.8, "#5BC0EB"],
+                  [1, "#1E7CF8"],
+                ],
+              },
+            },
+            pointer: { show: false },
+            axisTick: { show: false },
+            splitLine: { show: false },
+            axisLabel: {
+              show: true,
+              distance: -36,
+              color: "#64748b",
+              fontSize: 10,
+            },
+            detail: {
+              valueAnimation: true,
+              formatter: "{value}",
+              fontSize: 42,
+              fontWeight: 700,
+              color: "#e2e8f0",
+              offsetCenter: [0, "-8%"],
+            },
+            data: [{ value: this.detail.gaugeScore }],
+          },
+        ],
+      });
+    },
+    buildLineOption(trendData, showLegend = false) {
+      const pointCount = trendData.labels.length;
+      const showPointLabel = !showLegend && pointCount <= 12;
+
+      return {
+        backgroundColor: "transparent",
+        tooltip: {
+          trigger: "axis",
+          backgroundColor: "rgba(16, 30, 66, 0.95)",
+          borderColor: "rgba(120, 156, 255, 0.4)",
+          textStyle: { color: "#dbeafe" },
+        },
+        legend: showLegend
+          ? {
+              top: 0,
+              left: "center",
+              itemWidth: 10,
+              itemHeight: 10,
+              textStyle: { color: "#94a3b8", fontSize: 10 },
+            }
+          : { show: false },
+        grid: {
+          top: showLegend ? "20%" : showPointLabel ? "14%" : "8%",
+          left: "3%",
+          right: "4%",
+          bottom: "8%",
+          containLabel: true,
+        },
+        xAxis: {
+          type: "category",
+          boundaryGap: false,
+          data: trendData.labels,
+          axisLine: { lineStyle: { color: "rgba(122, 149, 218, 0.35)" } },
+          axisTick: { show: false },
+          axisLabel: {
+            color: "#64748b",
+            fontSize: 10,
+            interval: pointCount > 15 ? Math.floor(pointCount / 8) : 0,
+          },
+        },
+        yAxis: {
+          type: "value",
+          min: 0,
+          max: 100,
+          splitNumber: 4,
+          splitLine: { lineStyle: { color: "rgba(122, 149, 218, 0.12)" } },
+          axisLine: { show: false },
+          axisTick: { show: false },
+          axisLabel: { color: "#64748b", fontSize: 10 },
+        },
+        series: trendData.series.map((item, index) => ({
+          name: item.name,
+          type: "line",
+          smooth: true,
+          symbol: "circle",
+          symbolSize: 6,
+          showSymbol: pointCount <= 15,
+          lineStyle: { width: 2, color: item.color },
+          itemStyle: { color: item.color, borderColor: "#0d1930", borderWidth: 1 },
+          label: showPointLabel && index === 0
+            ? {
+                show: true,
+                position: "top",
+                distance: 6,
+                color: "#94a3b8",
+                fontSize: 10,
+              }
+            : { show: false },
+          areaStyle: showLegend
+            ? undefined
+            : {
+                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
+                  { offset: 0, color: `${item.color}55` },
+                  { offset: 1, color: `${item.color}08` },
+                ]),
+              },
+          data: item.data,
+        })),
+      };
+    },
+    renderOverallTrend() {
+      const chart = this.charts.overall;
+      if (!chart) return;
+      const trendData = buildTrendData(
+        this.detail.trendMeta.overall,
+        this.timeRange.overall
+      );
+      chart.setOption(this.buildLineOption(trendData, false), true);
+    },
+    renderStructuralTrend() {
+      const chart = this.charts.structural;
+      if (!chart) return;
+      const trendData = buildTrendData(
+        this.detail.trendMeta.structural,
+        this.timeRange.structural
+      );
+      chart.setOption(this.buildLineOption(trendData, true), true);
+    },
+    renderSystemTrend() {
+      const chart = this.charts.system;
+      if (!chart) return;
+      const trendData = buildTrendData(
+        this.detail.trendMeta.system,
+        this.timeRange.system
+      );
+      chart.setOption(this.buildLineOption(trendData, true), true);
+    },
+    renderComponentTrend() {
+      const chart = this.charts.component;
+      if (!chart) return;
+      const trendData = buildTrendData(
+        this.detail.trendMeta.component,
+        this.timeRange.component
+      );
+      chart.setOption(this.buildLineOption(trendData, true), true);
+    },
+    renderAllTrends() {
+      this.renderOverallTrend();
+      this.renderStructuralTrend();
+      this.renderSystemTrend();
+      this.renderComponentTrend();
+    },
+    handleResize() {
+      Object.values(this.charts).forEach((chart) => {
+        if (chart) chart.resize();
+      });
+    },
+  },
+};
+</script>
+
+<style lang="scss">
+.health-unit-detail-drawer {
+  .el-drawer__body {
+    display: flex;
+    flex-direction: column;
+    padding: 0;
+    overflow: hidden;
+  }
+}
+
+.unit-detail__range {
+  flex-shrink: 0;
+
+  .el-radio-button__inner {
+    padding: 5px 10px;
+    font-size: 10px;
+    color: #94a3b8;
+    background: rgba(255, 255, 255, 0.04);
+    border-color: rgba(255, 255, 255, 0.12) !important;
+    box-shadow: none !important;
+  }
+
+  .el-radio-button:first-child .el-radio-button__inner {
+    border-radius: 4px 0 0 4px;
+  }
+
+  .el-radio-button:last-child .el-radio-button__inner {
+    border-radius: 0 4px 4px 0;
+  }
+
+  .el-radio-button__orig-radio:checked + .el-radio-button__inner {
+    color: #ffffff;
+    background: #0891b2;
+    border-color: #0891b2 !important;
+    box-shadow: -1px 0 0 0 #0891b2 !important;
+  }
+}
+</style>
+
+<style lang="scss" scoped>
+.unit-detail {
+  flex: 1;
+  overflow-y: auto;
+  padding: 16px 20px 12px;
+}
+
+.unit-detail__section {
+  margin-bottom: 20px;
+}
+
+.unit-detail__section-head {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  gap: 8px;
+  margin-bottom: 8px;
+}
+
+.unit-detail__heading {
+  margin: 0;
+  font-size: 13px;
+  font-weight: 600;
+  color: #cbd5e1;
+}
+
+.unit-detail__gauge {
+  width: 100%;
+  height: 180px;
+}
+
+.unit-detail__chart {
+  width: 100%;
+  height: 180px;
+}
+
+.unit-detail__chart--tall {
+  height: 220px;
+}
+
+.unit-detail__health-block {
+  margin-bottom: 16px;
+  border: 1px solid rgba(255, 255, 255, 0.06);
+  border-radius: 6px;
+  overflow: hidden;
+}
+
+.unit-detail__health-title {
+  padding: 8px 12px;
+  background: rgba(255, 255, 255, 0.05);
+  font-size: 12px;
+  font-weight: 600;
+  color: #94a3b8;
+}
+
+.unit-detail__health-row {
+  display: grid;
+  grid-template-columns: 1fr 48px 56px;
+  align-items: center;
+  gap: 8px;
+  padding: 10px 12px;
+  font-size: 12px;
+  border-top: 1px solid rgba(255, 255, 255, 0.04);
+
+  &:first-of-type {
+    border-top: none;
+  }
+}
+
+.unit-detail__health-name {
+  color: #e2e8f0;
+}
+
+.unit-detail__help {
+  margin-left: 4px;
+  color: #64748b;
+  font-size: 12px;
+}
+
+.unit-detail__health-score {
+  text-align: center;
+  color: #cbd5e1;
+  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
+}
+
+.unit-detail__health-status {
+  display: inline-flex;
+  align-items: center;
+  justify-content: flex-end;
+  gap: 4px;
+  color: #94a3b8;
+}
+
+.unit-detail__health-status--empty {
+  justify-content: center;
+}
+
+.unit-detail__status-dot {
+  display: inline-block;
+  width: 8px;
+  height: 8px;
+  border-radius: 50%;
+}
+
+.unit-detail__footer {
+  flex-shrink: 0;
+  padding: 12px 20px 16px;
+  border-top: 1px solid rgba(255, 255, 255, 0.08);
+  text-align: right;
+  background: rgba(5, 14, 35, 0.6);
+}
+</style>

+ 132 - 0
src/views/health/components/health/dashboardData.js

@@ -0,0 +1,132 @@
+export const scoreDistribution = [
+  { value: 82, name: "优", color: "#14F39A" },
+  { value: 14, name: "良", color: "#1E7CF8" },
+  { value: 3, name: "中", color: "#F7C43B" },
+  { value: 1, name: "差", color: "#FF4A4A" },
+];
+
+export const scoreSummary = [
+  { label: "优 (台)", value: 82, color: "#00FF88" },
+  { label: "良 (台)", value: 14, color: "#0077FF" },
+  { label: "中 (台)", value: 3, color: "#FAAD14" },
+  { label: "差 (台)", value: 1, color: "#FF3131" },
+];
+
+export const subsystemData = [
+  { name: "结构健康", value: 95, colors: ["#22e8ff", "#1f7fff"] },
+  { name: "系统健康", value: 86, colors: ["#c58cff", "#7b3dff"] },
+  { name: "部件健康", value: 91, colors: ["#1df3a0", "#14a67a"] },
+];
+
+export const healthyRankList = [
+  { name: "风机 C-130", score: 98.5 },
+  { name: "风机 A-042", score: 97.2 },
+  { name: "风机 B-012", score: 96.8 },
+  { name: "风机 C-118", score: 96.1 },
+  { name: "风机 D-205", score: 95.4 },
+];
+
+export const riskRankList = [
+  {
+    name: "贵州红阳二期明阳42号风机",
+    score: 34,
+    scoreClass: "danger",
+    rowClass: "strong",
+  },
+  {
+    name: "风机 A-008",
+    score: 40,
+    scoreClass: "warning",
+    rowClass: "muted",
+  },
+  {
+    name: "风机 A-009",
+    score: 40,
+    scoreClass: "warning",
+    rowClass: "muted",
+  },
+  {
+    name: "风机 A-010",
+    score: 40,
+    scoreClass: "warning",
+    rowClass: "muted",
+  },
+  {
+    name: "风机 A-011",
+    score: 41,
+    scoreClass: "warning",
+    rowClass: "muted",
+  },
+];
+
+export const unitCards = [
+  {
+    name: "贵州红阳二期明阳42号...",
+    model: "型号: WT-5.5MW-158",
+    statusText: "故障中",
+    statusType: "fault",
+    score: 42,
+    scoreTone: "danger",
+    showScoreLabel: true,
+    showGlow: true,
+    interactive: true,
+    metrics: [
+      { label: "结构健康", value: 88, tone: "emerald", glow: true },
+      { label: "系统健康", value: 32, tone: "danger", glow: true },
+      { label: "部件健康", value: 95, tone: "emerald", glow: false },
+    ],
+  },
+  {
+    name: "风机 C-118",
+    model: "型号: WT-5.5MW-158",
+    statusText: "运行优",
+    statusType: "excellent",
+    score: 96,
+    scoreTone: "excellent",
+    metrics: [
+      { label: "部件健康", value: 95, tone: "emerald", glow: false },
+      { label: "系统健康", value: 32, tone: "danger", glow: true },
+      { label: "部件健康", value: 95, tone: "emerald", glow: false },
+    ],
+  },
+  {
+    name: "风机 C-119",
+    model: "WT-5.5MW",
+    statusText: "运行良",
+    statusType: "good",
+    score: 88,
+    scoreTone: "good",
+    dimmed: true,
+    metrics: [
+      { label: "部件健康", value: 82, tone: "good", glow: false },
+      { label: "系统健康", value: 32, tone: "danger", glow: true },
+      { label: "部件健康", value: 95, tone: "emerald", glow: false },
+    ],
+  },
+  {
+    name: "风机 C-120",
+    model: "WT-5.5MW",
+    statusText: "运行优",
+    statusType: "excellent-plain",
+    score: 94,
+    scoreTone: "excellent",
+    metrics: [
+      { label: "部件健康", value: 92, tone: "emerald", glow: false },
+      { label: "系统健康", value: 32, tone: "danger", glow: true },
+      { label: "部件健康", value: 95, tone: "emerald", glow: false },
+    ],
+  },
+  {
+    name: "风机 C-121",
+    model: "WT-5.5MW",
+    statusText: "运行中",
+    statusType: "warning",
+    score: 75,
+    scoreTone: "warning",
+    metrics: [
+      { label: "部件健康", value: 68, tone: "warning", glow: false },
+      { label: "系统健康", value: 32, tone: "danger", glow: true },
+      { label: "部件健康", value: 95, tone: "emerald", glow: false },
+    ],
+  },
+];

+ 132 - 0
src/views/health/components/health/health-dashboard.scss

@@ -0,0 +1,132 @@
+.health-dashboard-page {
+  height: 100%;
+  min-height: 0;
+  position: relative;
+  display: flex;
+  flex-direction: column;
+  padding: 0;
+  margin: 0;
+  background-color: var(--content-bg, #000510);
+  background-image: none;
+  color: var(--text-cyan, #b7dff5);
+  font-family: "Inter", system-ui, -apple-system, sans-serif;
+  overflow-x: hidden;
+  box-sizing: border-box;
+
+  /* 仅科技蓝主题:使用固定的科技蓝底纹 */
+  html[data-theme="tech-blue"] & {
+    background-color: #050e23;
+    background-image: radial-gradient(
+        circle at 50% 50%,
+        rgba(16, 33, 79, 0.8) 0%,
+        transparent 80%
+      ),
+      linear-gradient(rgba(18, 16, 16, 0.4) 1px, transparent 1px),
+      linear-gradient(90deg, rgba(18, 16, 16, 0.4) 1px, transparent 1px);
+    background-size: 100% 100%, 30px 30px, 30px 30px;
+    color: #e2e8f0;
+  }
+
+  *,
+  *::before,
+  *::after {
+    box-sizing: border-box;
+  }
+
+  .glass-card {
+    background: rgba(13, 25, 48, 0.7);
+    backdrop-filter: blur(12px);
+    border: 1px solid rgba(0, 242, 255, 0.2);
+    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
+    border-radius: 12px;
+    position: relative;
+    transition: all 0.3s ease;
+
+    &:hover {
+      border-color: rgba(0, 242, 255, 0.5);
+      box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
+    }
+  }
+
+  .subsystem-card {
+    background: radial-gradient(
+        circle at 50% -15%,
+        rgba(91, 77, 255, 0.18),
+        transparent 48%
+      ),
+      linear-gradient(180deg, rgba(10, 24, 58, 0.92), rgba(7, 18, 44, 0.94));
+    border: 1px solid rgba(92, 124, 255, 0.22);
+    box-shadow: inset 0 0 0 1px rgba(70, 112, 255, 0.12),
+      0 18px 36px rgba(5, 10, 32, 0.58);
+  }
+
+  .neon-text-blue {
+    text-shadow: 0 0 8px rgba(0, 242, 255, 0.8);
+    color: #00f2ff;
+  }
+
+  .neon-border-red {
+    border-color: rgba(255, 49, 49, 0.5) !important;
+    box-shadow: inset 0 0 10px rgba(255, 49, 49, 0.2);
+  }
+
+  .scan-line {
+    position: absolute;
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 2px;
+    background: linear-gradient(
+      90deg,
+      transparent,
+      rgba(0, 242, 255, 0.5),
+      transparent
+    );
+    animation: health-scan 4s linear infinite;
+    pointer-events: none;
+  }
+
+  @keyframes health-scan {
+    0% {
+      top: 0;
+    }
+    100% {
+      top: 100%;
+    }
+  }
+
+  .health-page__body {
+    flex: 1 1 auto;
+    min-height: 0;
+    overflow-y: auto;
+    overflow-x: hidden;
+  }
+
+  .dashboard-main {
+    display: flex;
+    flex-direction: column;
+    gap: 24px;
+    max-width: 1600px;
+    margin: 0 auto;
+    width: 100%;
+    min-width: 0;
+    padding: 16px;
+    box-sizing: border-box;
+  }
+
+  .dashboard-top-row > * {
+    min-width: 0;
+    min-height: 0;
+  }
+
+  .dashboard-footer {
+    margin-top: 32px;
+    padding: 16px 16px 24px;
+    border-top: 1px solid #1e293b;
+    text-align: center;
+    color: #475569;
+    font-size: 10px;
+    letter-spacing: 0.2em;
+    text-transform: uppercase;
+  }
+}

+ 150 - 0
src/views/health/components/health/unitDetailData.js

@@ -0,0 +1,150 @@
+export const HEALTH_STATUS = {
+  excellent: { label: "优", color: "#14F39A" },
+  good: { label: "良", color: "#1E7CF8" },
+  fair: { label: "中", color: "#F7C43B" },
+  poor: { label: "差", color: "#FF4A4A" },
+};
+
+const TREND_COLORS = ["#22d3ee", "#1E7CF8", "#14F39A", "#F7C43B", "#FF4A4A", "#C58CFF"];
+
+function getDateLabels(count) {
+  const labels = [];
+  const now = new Date();
+  for (let i = count - 1; i >= 0; i -= 1) {
+    const date = new Date(now);
+    date.setDate(date.getDate() - i);
+    const month = String(date.getMonth() + 1).padStart(2, "0");
+    const day = String(date.getDate()).padStart(2, "0");
+    labels.push(`${month}/${day}`);
+  }
+  return labels;
+}
+
+function getMonthLabels(count = 12) {
+  const labels = [];
+  const now = new Date();
+  for (let i = count - 1; i >= 0; i -= 1) {
+    const date = new Date(now.getFullYear(), now.getMonth() - i, 1);
+    labels.push(`${date.getFullYear()}/${String(date.getMonth() + 1).padStart(2, "0")}`);
+  }
+  return labels;
+}
+
+function getIndexLabels(count) {
+  return Array.from({ length: count }, (_, i) => String(i + 1));
+}
+
+function clampScore(value) {
+  return Math.max(0, Math.min(100, Math.round(value)));
+}
+
+function buildSeriesValues(count, base, offset = 0) {
+  return Array.from({ length: count }, (_, i) =>
+    clampScore(base + Math.sin((i + offset) * 0.75) * 14 + ((i + offset) % 5) * 3)
+  );
+}
+
+export function getTrendDays(range) {
+  if (range === "30") return 30;
+  if (range === "365") return 12;
+  return 7;
+}
+
+function getTrendLabels(range) {
+  if (range === "365") return getMonthLabels(12);
+  if (range === "30") return getDateLabels(30);
+  return getIndexLabels(7);
+}
+
+function buildSingleTrendByRange(range, baseScore) {
+  if (range === "7") {
+    return {
+      labels: getIndexLabels(7),
+      values: [23, 13, 12, 23, 55, 23, clampScore(baseScore || 80)],
+    };
+  }
+
+  const count = getTrendDays(range);
+  const labels = getTrendLabels(range);
+  const values = buildSeriesValues(count, baseScore, 1);
+  return { labels, values };
+}
+
+function buildMultiTrendByRange(names, bases, range) {
+  const count = getTrendDays(range);
+  const labels = getTrendLabels(range);
+
+  return {
+    labels,
+    series: names.map((name, index) => ({
+      name,
+      color: TREND_COLORS[index % TREND_COLORS.length],
+      data: buildSeriesValues(count, bases[index] || 70, index + 1),
+    })),
+  };
+}
+
+export function getUnitDetailData(unit = {}) {
+  const score = unit.score || 85;
+
+  return {
+    gaugeScore: score,
+    healthSections: [
+      {
+        title: "结构健康",
+        items: [
+          { name: "叶轮", score: 92, status: "excellent" },
+          { name: "塔筒", score: 76, status: "good" },
+        ],
+      },
+      {
+        title: "系统健康",
+        items: [
+          { name: "偏航系统", score: 40, status: "poor" },
+          { name: "变桨系统", score: 64, status: "fair" },
+          { name: "液压系统", score: 71, status: "good" },
+          { name: "主控系统", score: 71, status: "good" },
+        ],
+      },
+      {
+        title: "部件健康",
+        items: [
+          { name: "发电机", score: 76, status: "good" },
+          { name: "齿轮箱", score: 71, status: "good" },
+          { name: "主轴", score: null, status: null, help: true },
+          { name: "变流器", score: 95, status: "excellent" },
+        ],
+      },
+    ],
+    trendMeta: {
+      overall: { type: "single", base: score },
+      structural: {
+        type: "multi",
+        names: ["叶轮", "塔筒"],
+        bases: [92, 76],
+      },
+      system: {
+        type: "multi",
+        names: ["偏航系统", "变桨系统", "液压系统", "主控系统"],
+        bases: [40, 64, 71, 71],
+      },
+      component: {
+        type: "multi",
+        names: ["发电机", "齿轮箱", "主轴", "变流器"],
+        bases: [76, 71, 68, 95],
+      },
+    },
+  };
+}
+
+export function buildTrendData(meta, range) {
+  if (meta.type === "single") {
+    const trend = buildSingleTrendByRange(range, meta.base);
+    return {
+      labels: trend.labels,
+      series: [{ name: "综合健康", color: "#22d3ee", data: trend.values }],
+    };
+  }
+
+  return buildMultiTrendByRange(meta.names, meta.bases, range);
+}

+ 94 - 727
src/views/health/index.vue

@@ -1,774 +1,141 @@
 <template>
-  <div class="global-variable">
-    <div class="searchbox">
-      <p>
-        单位:
-        <selecttree
-          size="small"
-          style="width: 180px"
-          placeholder="请选择所属公司"
-          :list="parentOpt"
-          type="1"
-          v-model="companyCode"
-          :defaultParentProps="{
-            children: 'children',
-            label: 'companyName',
-            value: 'codeNumber',
-          }"
-        />
-      </p>
-
-      <p>
-        时间:
-        <el-date-picker
-          v-model="timevalue"
-          size="small"
-          type="month"
-          placeholder="选择月"
-          :picker-options="monthPickerOptions"
-        />
-      </p>
-
-      <el-button type="primary" size="small" @click="conditions">
-        查询
-      </el-button>
-    </div>
-
-    <div class="kuang">
-      <!-- 加载中动画 -->
-      <div v-if="loading" class="loader-wrapper">
-        <div class="loader"></div>
-      </div>
-
-      <!-- 空状态 -->
-      <el-empty
-        class="Anempty"
-        v-if="!loading && ListData.length === 0"
-        :image-size="200"
-      />
-
-      <!-- 主体内容 -->
-      <div class="main-body" v-if="!loading && ListData.length > 0">
-        <div
-          class="basics"
-          v-for="(item, index) in ListData"
-          :key="item + index"
-        >
-          <div class="title">
-            <span>
-              <SvgIcons
-                name="WindPower3"
-                class="WindPower3"
-                width="26"
-                height="26"
-              />
-            </span>
-            <h4>风机:{{ item.wind_turbine_name }}</h4>
-            <span class="mill">{{ millTypeMap[item.mill_type] || "-" }}</span>
-          </div>
-
-          <div class="content">
-            <div class="summary" style="color: #28a745">
-              <span :style="{ color: getHealthColor(item.total_health_score) }">
-                {{
-                  item.total_health_score < 0
-                    ? "-"
-                    : Math.floor(item.total_health_score)
-                }}
-              </span>
-              <span :style="{ color: getHealthColor(item.total_health_score) }">
-                {{ getHealthLabel(item.total_health_score) }}
-              </span>
-            </div>
-
-            <ul class="health">
-              <li>
-                <span>发电机组</span>
-                <span :class="'health-' + item.val">
-                  {{
-                    item.subsystems.generator.health_score >= 0
-                      ? String(
-                          Math.floor(item.subsystems.generator.health_score),
-                        ).slice(0, 3)
-                      : "-"
-                  }}
-                </span>
-              </li>
-
-              <li v-if="item.subsystems.drive_train">
-                <span>传动系统</span>
-                <span :class="'health-' + item.val">
-                  {{
-                    item.subsystems.drive_train.health_score >= 0
-                      ? String(
-                          Math.floor(item.subsystems.drive_train.health_score),
-                        ).slice(0, 3)
-                      : "-"
-                  }}
-                </span>
-              </li>
-
-              <li>
-                <span>机舱系统</span>
-                <span :class="'health-' + item.val">
-                  {{
-                    item.subsystems.nacelle.health_score >= 0
-                      ? String(
-                          Math.floor(item.subsystems.nacelle.health_score),
-                        ).slice(0, 3)
-                      : "-"
-                  }}
-                </span>
-              </li>
-
-              <li>
-                <span>电网环境</span>
-                <span :class="'health-' + item.val">
-                  {{
-                    item.subsystems.grid.health_score >= 0
-                      ? String(
-                          Math.floor(item.subsystems.grid.health_score),
-                        ).slice(0, 3)
-                      : "-"
-                  }}
-                </span>
-              </li>
-            </ul>
-          </div>
-
-          <!-- 健康评估建议(通用展示) -->
-          <!-- <div class="advice-box">
-            <div class="advice-head">
-              <span class="advice-title">健康评估建议</span>
-              <span
-                class="advice-badge"
-                :class="`is-${getHealthLevelKey(item.total_health_score)}`"
-              >
-                {{ getHealthLabel(item.total_health_score) }}
-              </span>
-            </div>
-            <p class="advice-text">
-              {{ getHealthAdvice(item.total_health_score) }}
-            </p>
-          </div> -->
+  <div class="health-dashboard-page">
+    <HealthHeader v-model="companyCode" @change="handleFarmChange" />
+
+    <div class="health-page__body">
+      <main class="dashboard-main">
+        <div class="dashboard-top-row">
+          <HealthScorePanel
+            :distribution="scoreDistribution"
+            :summary="scoreSummary"
+            :total-score="totalScore"
+          />
+
+          <HealthSubsystemPanel :chart-data="subsystemData" />
+
+          <HealthRankingPanel
+            :healthy-list="healthyRankList"
+            :risk-list="riskRankList"
+          />
         </div>
-      </div>
-    </div>
 
-    <!-- 健康度说明(卡片版) -->
-    <div class="health-legend">
-      <div class="legend-head">
-        <span class="legend-title">健康度说明</span>
-      </div>
-      <div class="legend-body">
-        <div class="legend-item is-good">
-          <div class="legend-icon" aria-hidden="true">
-            <svg viewBox="0 0 24 24" class="legend-icon-svg">
-              <path
-                class="shield"
-                d="M12 2.5 19 6.2v6.4c0 5.2-3.6 9.8-7 10.9-3.4-1.1-7-5.7-7-10.9V6.2L12 2.5Z"
-              />
-              <path class="mark" d="M8.2 12.2l2.3 2.3 5.3-5.3" />
-            </svg>
-          </div>
-          <div class="legend-content">
-            <p class="legend-range">100–85分(健康)</p>
-            <p class="legend-advice">
-              建议:按计划进行常规巡检与维护,保持当前运行状态,无需额外检修。
-            </p>
-          </div>
-        </div>
-        <div class="legend-item is-subhealthy">
-          <div class="legend-icon" aria-hidden="true">
-            <svg viewBox="0 0 24 24" class="legend-icon-svg">
-              <path
-                class="shield"
-                d="M12 2.5 19 6.2v6.4c0 5.2-3.6 9.8-7 10.9-3.4-1.1-7-5.7-7-10.9V6.2L12 2.5Z"
-              />
-              <path class="mark" d="M12 7.6v6.2" />
-              <path class="mark" d="M12 16.9h.01" />
-            </svg>
-          </div>
-          <div class="legend-content">
-            <p class="legend-range">84–70分(亚健康)</p>
-            <p class="legend-advice">
-              建议:加强状态监测,缩短巡检周期,排查潜在隐患,可安排预防性维护。
-            </p>
-          </div>
-        </div>
-        <div class="legend-item is-normal">
-          <div class="legend-icon" aria-hidden="true">
-            <svg viewBox="0 0 24 24" class="legend-icon-svg">
-              <path
-                class="shield"
-                d="M12 2.5 19 6.2v6.4c0 5.2-3.6 9.8-7 10.9-3.4-1.1-7-5.7-7-10.9V6.2L12 2.5Z"
-              />
-              <path class="mark" d="M12 7.6v6.2" />
-              <path class="mark" d="M12 16.9h.01" />
-            </svg>
-          </div>
-          <div class="legend-content">
-            <p class="legend-range">69–55分(一般)</p>
-            <p class="legend-advice">
-              建议:开展专项检测与故障诊断,制定针对性检修计划,及时处理发现的问题,避免状态进一步恶化。
-            </p>
-          </div>
-        </div>
-        <div class="legend-item is-fault">
-          <div class="legend-icon" aria-hidden="true">
-            <svg viewBox="0 0 24 24" class="legend-icon-svg">
-              <path
-                class="shield"
-                d="M12 2.5 19 6.2v6.4c0 5.2-3.6 9.8-7 10.9-3.4-1.1-7-5.7-7-10.9V6.2L12 2.5Z"
-              />
-              <path class="mark" d="M9 9l6 6" />
-              <path class="mark" d="M15 9l-6 6" />
-            </svg>
-          </div>
-          <div class="legend-content">
-            <p class="legend-range">55分以下(故障)</p>
-            <p class="legend-advice">
-              建议:立即停机或安排紧急检修,进行全面故障排查与修复,必要时更换关键部件,确保设备恢复正常运行能力。
-            </p>
-          </div>
-        </div>
-      </div>
+        <section class="health-unit-grid">
+          <HealthUnitCard
+            v-for="unit in unitCards"
+            :key="unit.name"
+            :unit="unit"
+          />
+        </section>
+      </main>
     </div>
   </div>
 </template>
 
 <script>
-import { getSysOrganizationAuthTreeByRoleId } from "@/api/ledger.js";
-import selecttree from "../../components/selecttree.vue";
-import axios from "axios";
+import HealthHeader from "./components/health/HealthHeader.vue";
+import HealthScorePanel from "./components/health/HealthScorePanel.vue";
+import HealthSubsystemPanel from "./components/health/HealthSubsystemPanel.vue";
+import HealthRankingPanel from "./components/health/HealthRankingPanel.vue";
+import HealthUnitCard from "./components/health/HealthUnitCard.vue";
+import {
+  healthyRankList,
+  riskRankList,
+  scoreDistribution,
+  scoreSummary,
+  subsystemData,
+  unitCards,
+} from "./components/health/dashboardData";
 
 export default {
+  name: "HealthDashboard",
   components: {
-    selecttree,
+    HealthHeader,
+    HealthScorePanel,
+    HealthSubsystemPanel,
+    HealthRankingPanel,
+    HealthUnitCard,
   },
   data() {
     return {
-      parentOpt: [],
       companyCode: "",
-      ListData: [],
-      loading: false, // ✅ 加载状态.
-      // demo演示
-      timevalue: new Date(2024, 6), // 7 月是 6,因为月份从 0 开始
+      totalScore: 92,
+      scoreDistribution,
+      scoreSummary,
+      subsystemData,
+      healthyRankList,
+      riskRankList,
+      unitCards,
     };
   },
-  computed: {
-    millTypeMap() {
-      return {
-        dfig: "双馈",
-        direct: "直驱",
-        semi: "半直驱",
-      };
-    },
-
-    monthPickerOptions() {
-      return {
-        disabledDate: (time) => {
-          const code = this.companyCode;
-          const date = time;
-
-          if (code === "WOF046400029") {
-            const start = new Date("2023-10-01");
-            const end = new Date("2024-10-30");
-            return date < start || date > end;
-          } else if (code === "WOF091200030") {
-            const start = new Date("2023-01-01");
-            const end = new Date("2024-11-30");
-            return date < start || date > end;
-          } else if (code === "WOF093400005") {
-            const start = new Date("2023-12-01");
-            const end = new Date("2024-05-30");
-            return date < start || date > end;
-          } else {
-            // 其他公司不限制时间选择
-            return false;
-          }
-        },
-      };
-    },
-  },
-  created() {
-    this.GETtree();
+  mounted() {
+    this.$nextTick(() => {
+      window.dispatchEvent(new Event("resize"));
+    });
   },
   methods: {
-    async GETtree() {
-      const res = await getSysOrganizationAuthTreeByRoleId();
-      const treedata = res.data;
-      const processedData = this.processTreeData(treedata);
-      this.parentOpt = processedData;
-      this.defaultdata = res.data[0];
-      // demo演示
-      this.$nextTick(() => {
-        this.companyCode = "WOF046400029";
-      });
-    },
-
-    processTreeData(treeData) {
-      const processedData = [];
-      function processNode(node) {
-        if (node.codeType === "field") {
-          node.companyName = node.fieldName;
-        }
-        if (node.children && node.children.length > 0) {
-          node.children.forEach((child) => {
-            processNode(child);
-          });
-        }
-      }
-      treeData.forEach((root) => {
-        processNode(root);
-        processedData.push(root);
-      });
-      return processedData;
-    },
-
-    getHealthLabel(val) {
-      if (!Number.isFinite(val) || val < 0) return "无数据";
-      if (val >= 85) return "健康";
-      if (val >= 70) return "亚健康";
-      if (val >= 55) return "一般";
-      return "故障";
-    },
-
-    getHealthLevelKey(val) {
-      if (!Number.isFinite(val) || val < 0) return "nodata";
-      if (val >= 85) return "good";
-      if (val >= 70) return "subhealthy";
-      if (val >= 55) return "normal";
-      return "fault";
-    },
-
-    getHealthAdvice(val) {
-      if (!Number.isFinite(val) || val < 0) return "暂无健康评估数据。";
-      if (val >= 85) {
-        return "按计划进行常规巡检与维护,保持当前运行状态,无需额外检修。";
-      }
-      if (val >= 70) {
-        return "加强状态监测,缩短巡检周期,排查潜在隐患,可安排预防性维护。";
-      }
-      if (val >= 55) {
-        return "开展专项检测与故障诊断,制定针对性检修计划,及时处理发现的问题,避免状态进一步恶化。";
-      }
-      return "立即停机或安排紧急检修,进行全面故障排查与修复,必要时更换关键部件,确保设备恢复正常运行能力。";
-    },
-
-    getHealthColor(val) {
-      if (!Number.isFinite(val) || val < 0) return "#6c757d"; // 灰色
-      if (val >= 85) return "#28a745"; // 绿色
-      if (val >= 70) return "#ffc107"; // 黄色
-      if (val >= 55) return "#fd7e14"; // 橙色
-      return "#dc3545"; // 红色
-    },
-
-    conditions() {
-      const fullStr = this.$formatDateTWO(this.timevalue);
-      const datePart = typeof fullStr === "string" ? fullStr.slice(0, 7) : "";
-      const parms = {
-        windcode: this.companyCode,
-        month: datePart,
-      };
-
-      this.loading = true; // ✅ 显示 loading
-      const start = performance.now(); // ⏱️ 请求开始时间
-
-      axios
-        .post(`/AnalysisMulti/health_assess`, parms)
-        .then((res) => {
-          this.ListData = res.data;
-          const end = performance.now(); // ⏱️ 请求结束时间
-          const duration = ((end - start) / 1000).toFixed(2);
-          console.log(`接口请求耗时:${duration} 秒`);
-        })
-        .catch((error) => {
-          console.error("Error fetching data:", error);
-          const end = performance.now(); // ⏱️ 请求结束时间
-          const duration = ((end - start) / 1000).toFixed(2);
-          console.log(`接口请求耗时:${duration} 秒`);
-        })
-        .finally(() => {
-          this.loading = false; // ✅ 隐藏 loading
-        });
+    handleFarmChange(data) {
+      if (!data || !data.codeNumber) return;
+      // TODO: 切换风场/组织后刷新仪表盘数据
+      console.log("当前选中:", data.companyName || data.fieldName, data);
     },
   },
 };
 </script>
 
-<style lang="scss" scoped>
-.searchbox {
-  display: flex;
-  margin: 0 0 20px 0;
-  p {
-    margin-right: 10px;
-  }
-  .el-select {
-    width: 180px;
-  }
-}
-
-.el-input__inner {
-  width: 340px;
-}
-
-.main-body {
-  margin: 0 auto;
-  display: grid;
-  grid-template-columns: repeat(auto-fill, 260px); /* 严格保持300px宽度 */
-  justify-content: space-evenly; /* 均匀分布 */
-  gap: 10px;
-
-  // height: min-content;
-  // max-height: 700px;
-  overflow: hidden;
-  overflow-y: auto;
-  .basics {
-    width: 260px; /* 固定宽度 */
-    display: flex;
-    flex-direction: column;
-    margin-bottom: 20px;
-    border: 1px solid var(--header-bg);
-
-    .title {
-      padding: 5px 0;
-      width: 100%;
-      border-bottom: 1px solid var(--header-bg);
-      text-align: left;
-
-      display: flex;
-      align-items: center; // 垂直居中
-      //   justify-content: center; // 水平居中
+<style lang="scss">
+@import "./components/health/health-dashboard.scss";
 
-      span {
-        display: inline-block;
-        margin-right: 6px;
-
-        svg {
-          display: block;
-        }
-      }
-
-      h4 {
-        width: 175px;
-        color: var(--header-bg);
-        font-size: 1.1em;
-        font-weight: 600;
-        margin: 0;
-      }
-      .mill {
-        font-size: 12px;
-        color: rgb(43, 42, 42);
-      }
-    }
-
-    .content {
-      display: flex;
-      width: 100%;
-      gap: 28px;
-      .summary {
-        width: 70px;
-        display: flex;
-        flex-direction: column; // 垂直排列
-        align-items: center; // 居中对齐
-        justify-content: center;
-        font-weight: bold;
-        padding-left: 26px;
-        span {
-          display: block;
-          text-align: center;
-          line-height: 1.3;
-          &:first-child {
-            font-size: 1.6em; // 更大的字体
-            margin-bottom: 4px;
-          }
-          &:last-child {
-            font-size: 0.8em; // 稍小一点
-          }
-        }
-      }
-
-      .health {
-        flex: 1;
-        display: flex;
-        flex-wrap: wrap;
-        gap: 6px;
-        list-style: none;
-        padding: 0;
-        margin: 0;
-
-        li {
-          display: flex;
-          flex-direction: column;
-          align-items: center;
-          justify-content: center;
-          padding: 6px 6px;
-          border-radius: 4px;
-          min-width: 60px;
-          font-size: 0.8em;
+.health-dashboard-page {
+  .dashboard-top-row {
+    display: grid;
+    grid-template-columns: 1fr;
+    gap: 24px;
+    min-width: 0;
+  }
 
-          span {
-            display: block;
-            text-align: center;
-            line-height: 1.3;
-            &:first-child {
-              font-size: 0.9em;
-              font-weight: 600;
-              margin-bottom: 2px;
-            }
-          }
-        }
-        li span {
-          &:last-child {
-            color: var(--header-bg);
-          }
-        }
-      }
+  @media (min-width: 900px) {
+    .dashboard-top-row {
+      grid-template-columns: repeat(2, minmax(0, 1fr));
     }
 
-    .advice-box {
-      margin-top: 10px;
-      padding: 10px 10px;
-      border-top: 1px solid var(--header-bg);
-      background: #fff;
-
-      .advice-head {
-        display: flex;
-        align-items: center;
-        justify-content: space-between;
-        gap: 8px;
-        margin-bottom: 6px;
-      }
-      .advice-title {
-        font-size: 12px;
-        font-weight: 700;
-        color: #303133;
-      }
-      .advice-badge {
-        font-size: 12px;
-        font-weight: 700;
-        padding: 2px 8px;
-        border-radius: 999px;
-        &.is-good {
-          color: #1f7a3a;
-          background: #e7f6ee;
-        }
-        &.is-subhealthy {
-          color: #8a6d00;
-          background: #fff6e5;
-        }
-        &.is-normal {
-          color: #9a4d00;
-          background: #fff0e6;
-        }
-        &.is-fault {
-          color: #b42318;
-          background: #ffebee;
-        }
-        &.is-nodata {
-          color: #606266;
-          background: #f4f4f5;
-        }
-      }
-      .advice-text {
-        margin: 0;
-        font-size: 12px;
-        line-height: 1.45;
-        color: #606266;
-        word-break: break-all;
-      }
+    .dashboard-top-row > :last-child {
+      grid-column: span 2;
     }
   }
-}
-.jia {
-  color: var(--header-bg);
-}
-.kuang {
-  min-height: 79vh;
-  height: 680px;
-  position: relative;
-  overflow: hidden;
-  overflow-y: auto;
-  .Anempty {
-    position: absolute;
-    top: 50%;
-    left: 50%;
-    transform: translate(-50%, -50%);
-  }
-}
 
-.health-legend {
-  margin-top: 14px;
-  border-radius: 14px;
-  background: #fff;
-  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.08);
-  border: 1px solid rgba(228, 231, 237, 0.8);
-  overflow: hidden;
+  @media (min-width: 1280px) {
+    .dashboard-top-row {
+      grid-template-columns: repeat(3, minmax(0, 1fr));
+    }
 
-  .legend-head {
-    padding: 12px 14px 0;
-  }
-  .legend-title {
-    font-size: 14px;
-    font-weight: 800;
-    color: #303133;
+    .dashboard-top-row > :last-child {
+      grid-column: auto;
+    }
   }
 
-  .legend-body {
+  .health-unit-grid {
     display: grid;
-    grid-template-columns: repeat(4, minmax(0, 1fr));
-    gap: 0;
-    padding: 10px 10px 12px;
-  }
-
-  .legend-item {
-    display: flex;
-    align-items: flex-start;
-    gap: 10px;
-    padding: 10px 12px;
-    position: relative;
-    min-height: 88px;
-  }
-  .legend-item + .legend-item::before {
-    content: "";
-    position: absolute;
-    left: 0;
-    top: 16px;
-    bottom: 16px;
-    width: 1px;
-    background: rgba(220, 223, 230, 0.7);
-  }
-
-  .legend-icon {
-    width: 34px;
-    height: 34px;
-    flex: 0 0 auto;
-    display: flex;
-    align-items: center;
-    justify-content: center;
-    color: currentColor;
-  }
-  .legend-icon-svg {
-    width: 22px;
-    height: 22px;
-  }
-  .legend-icon-svg .shield {
-    fill: none;
-    stroke: currentColor;
-    stroke-width: 1.8;
-    stroke-linejoin: round;
-  }
-  .legend-icon-svg .mark {
-    fill: none;
-    stroke: currentColor;
-    stroke-width: 2.2;
-    stroke-linecap: round;
-    stroke-linejoin: round;
-  }
-  .legend-content {
-    flex: 1;
+    grid-template-columns: repeat(1, minmax(0, 1fr));
+    gap: 16px;
     min-width: 0;
   }
-  .legend-range {
-    margin: 0 0 6px;
-    font-size: 13px;
-    font-weight: 800;
-    line-height: 1.2;
-  }
-  .legend-advice {
-    margin: 0;
-    font-size: 12px;
-    line-height: 1.45;
-    color: #606266;
-    word-break: break-all;
-  }
 
-  .legend-item.is-good {
-    color: #28a745;
-    .legend-range {
-      color: inherit;
-    }
-  }
-  .legend-item.is-subhealthy {
-    color: #ffc107;
-    .legend-range {
-      color: inherit;
-    }
-  }
-  .legend-item.is-normal {
-    color: #fd7e14;
-    .legend-range {
-      color: inherit;
-    }
-  }
-  .legend-item.is-fault {
-    color: #dc3545;
-    .legend-range {
-      color: inherit;
+  @media (min-width: 768px) {
+    .health-unit-grid {
+      grid-template-columns: repeat(2, minmax(0, 1fr));
     }
   }
-}
 
-@media (max-width: 768px) {
-  .health-legend {
-    .legend-body {
-      grid-template-columns: 1fr;
-    }
-    .legend-item + .legend-item::before {
-      display: none;
-    }
-    .legend-item {
-      border-top: 1px solid rgba(220, 223, 230, 0.7);
-    }
-    .legend-item:first-child {
-      border-top: 0;
+  @media (min-width: 1024px) {
+    .health-unit-grid {
+      grid-template-columns: repeat(3, minmax(0, 1fr));
     }
   }
-}
 
-// 动画
-/* ✅ loading 包裹容器 */
-.loader-wrapper {
-  display: flex;
-  justify-content: center;
-  align-items: center;
-  height: 100%; /* 可根据页面需要调整高度 */
-}
-
-/* ✅ loading 样式动画 */
-
-.loader {
-  width: 50px;
-  --b: 8px;
-  aspect-ratio: 1;
-  border-radius: 50%;
-  padding: 1px;
-  background: conic-gradient(#0000 10%, var(--header-bg)) content-box;
-
-  -webkit-mask: repeating-conic-gradient(
-      #0000 0deg,
-      #000 1deg 20deg,
-      #0000 21deg 36deg
-    ),
-    radial-gradient(
-      farthest-side,
-      #0000 calc(100% - var(--b) - 1px),
-      #000 calc(100% - var(--b))
-    );
-  mask: repeating-conic-gradient(#0000 0deg, #000 1deg 20deg, #0000 21deg 36deg),
-    radial-gradient(
-      farthest-side,
-      #0000 calc(100% - var(--b) - 1px),
-      #000 calc(100% - var(--b))
-    );
-  -webkit-mask-composite: destination-in;
-  mask-composite: intersect;
-  animation: l4 1s infinite steps(10);
-}
-@keyframes l4 {
-  to {
-    transform: rotate(1turn);
+  @media (min-width: 1280px) {
+    .health-unit-grid {
+      grid-template-columns: repeat(5, minmax(0, 1fr));
+    }
   }
 }
 </style>

+ 36 - 62
src/views/health/malfunction.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="global-variable">
+  <div class="global-variable malfunction-page">
     <!-- 查询条件 -->
     <div class="searchbox">
       <p>
@@ -478,72 +478,21 @@ export default {
 .global-variable {
   padding: 10px;
 }
-.head {
-  padding: 5px 0;
-  display: flex;
-  justify-content: space-between;
-
-  ul {
-    display: flex;
-    width: 500px;
-    height: 65px;
-    justify-content: space-between;
-    li {
-      cursor: pointer;
-      padding: 8px 12px 0 12px;
-      border-radius: 4px;
-      transition: all 0.3s;
-
-      &:hover {
-        background-color: #f0f0f0;
-      }
-
-      &.active {
-        background-color: #e6f7ff;
-        border-bottom: 2px solid var(--header-bg);
-
-        span {
-          color: var(--header-bg);
-          font-weight: bold;
-        }
-      }
 
-      .Simg {
-        width: 30px;
-        height: 30px;
-        display: flex;
-        align-items: center;
-        justify-content: center;
-        margin: 0 auto;
-
-        img {
-          max-width: 100%;
-          max-height: 100%;
-        }
-      }
-
-      span {
-        display: block;
-        font-size: 12px;
-        font-weight: 600;
-        text-align: center;
-        margin-top: 5px;
-      }
-    }
-  }
-}
 .searchbox {
   display: flex;
-  margin-bottom: 10px;
+  margin-bottom: 8px;
   align-items: center;
   flex-wrap: wrap;
-  // padding-top: 10px;
+  color: #ffffff;
+
   p {
     margin-right: 10px;
     margin-bottom: 0;
-    margin-top: 10px;
+    margin-top: 8px;
     display: flex;
     align-items: center;
+    color: #b7dff5;
 
     .el-select,
     .el-date-picker {
@@ -554,22 +503,47 @@ export default {
   .el-select {
     width: 180px;
   }
+
   .search-btn {
-    margin-top: 10px;
+    margin-top: 8px;
   }
 }
+
 .main-body {
-  margin-top: 10px;
-  // border: 1px solid #ebeef5;
+  margin-top: 8px;
   border-radius: 4px;
-  padding: 10px;
-  background: #fff;
+  padding: 0;
+  background: transparent;
 }
 
 .el-range-editor.el-input__inner {
   width: 370px;
 }
 
+::v-deep .el-tabs__header {
+  margin-bottom: 8px;
+}
+
+::v-deep .el-tabs__item {
+  color: rgba(183, 223, 245, 0.75) !important;
+}
+
+::v-deep .el-tabs__item.is-active {
+  color: #ffffff !important;
+}
+
+::v-deep .el-tabs__item:hover {
+  color: #ffffff !important;
+}
+
+::v-deep .el-tabs__active-bar {
+  background-color: #00aaff !important;
+}
+
+::v-deep .el-tabs__nav-wrap::after {
+  background-color: rgba(0, 170, 255, 0.25) !important;
+}
+
 /* 放在你的组件 <style scoped> 或全局样式里 */
 .custom-loading-style .el-loading-spinner i {
   font-size: 26px;

+ 29 - 18
src/views/home/Index.vue

@@ -14,25 +14,25 @@
 
         <!-- <MenuTag></MenuTag> -->
         <!-- 主体内容-->
-        <transition name="slide-fade">
-          <div class="main-content">
+        <div class="main-content">
+          <transition name="slide-fade">
             <router-view />
-          </div>
-        </transition>
+          </transition>
+        </div>
       </el-main>
     </el-container>
     <!-- 默认 -->
     <el-container v-else="menuShow === 'default'">
-      <Menu></Menu>
+      <MenuDt></MenuDt>
       <el-main>
         <HeaderCom class="headerBox" @setLoding="setLoding"></HeaderCom>
         <!-- <MenuTag></MenuTag> -->
         <!-- 主体内容-->
-        <transition name="slide-fade">
-          <div class="main-content">
+        <div class="main-content">
+          <transition name="slide-fade">
             <router-view />
-          </div>
-        </transition>
+          </transition>
+        </div>
       </el-main>
     </el-container>
   </div>
@@ -42,6 +42,7 @@
 import HeaderCom from "@/components/HeaderCom.vue";
 import MenuHD from "./components/MenuHD.vue";
 import Menu from "./components/Menu.vue";
+import MenuDt from "./components/MenuDt.vue";
 import MenuTag from "@/components/MenuTag.vue";
 
 export default {
@@ -50,6 +51,7 @@ export default {
     MenuHD,
     HeaderCom,
     MenuTag,
+    MenuDt,
   },
   data() {
     return {
@@ -66,28 +68,34 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-::v-deep.el-main::-webkit-scrollbar {
-  width: 0px !important; /* 滚动条宽度 */
-}
 .homeWrap {
   height: 100vh;
+  overflow: hidden;
+
   .el-container {
-    // height: 100%;
-    min-height: 89vh;
+    height: 100%;
+    min-height: 0;
   }
+
   .el-main {
     min-width: 800px;
-    // min-height: 88vh;
     height: 100%;
-    background-color: #f7f7f8;
+    display: flex;
+    flex-direction: column;
     padding: 0;
     overflow: hidden;
+    background-color: var(--content-bg, #f5f7fa);
+
     .main-content {
-      height: 100%;
+      flex: 1 1 auto;
+      min-height: 0;
+      overflow-y: auto;
+      overflow-x: hidden;
     }
   }
 }
 ::v-deep.el-header {
+  flex-shrink: 0;
   padding: 0 !important;
   background: #1b3b7f;
   color: #fff !important;
@@ -111,7 +119,10 @@ export default {
   }
 }
 .headerBox {
-  background: #fff;
+  flex-shrink: 0;
+  background: var(--header-bg, #001529) !important;
+  // border-bottom: 1px solid var(--panel-border, rgba(0, 170, 255, 0.35));
+  color: var(--text-color, #ffffff);
 }
 .slide-fade-enter-active {
   transition: all 0.3s ease-out;

+ 862 - 0
src/views/home/components/MenuDt.vue

@@ -0,0 +1,862 @@
+<!--
+ * @Author: your name
+ * @Date: 2026-05-21 15:49:05
+ * @LastEditTime: 2026-05-21 15:49:16
+ * @LastEditors: milo-MacBook-Pro.local
+ * @Description: In User Settings Edit
+ * @FilePath: /performance-test/src/views/home/components/MenuDt.vue
+-->
+<template>
+  <el-aside
+    :width="!isCollapse ? '250px' : '100px'"
+    :class="[
+      'asideBox',
+      isTechBlueTheme ? 'asideBox--tech' : 'asideBox--legacy',
+    ]"
+  >
+    <div class="homeBox"></div>
+    <el-menu
+      collapse-transition
+      ref="menu"
+      :class="['mt-3 el-menu-vertical-demo', menuThemeClass]"
+      @open="handleOpen"
+      @close="handleClose"
+      :background-color="menuBackgroundColor"
+      :text-color="menuTextColor"
+      :active-text-color="menuActiveTextColor"
+      :router="false"
+      :default-active="menuDefaultActive"
+      :collapse="isCollapse"
+      :default-openeds="openMenus"
+    >
+      <template v-for="item in routerList">
+        <!-- 有子菜单 -->
+        <el-submenu
+          v-if="
+            item.children && item.children.length && item.meta?.hidden === false
+          "
+          :index="normalizedMenuParentIndex(item)"
+          :popper-append-to-body="true"
+          :popper-class="menuPopperClass"
+        >
+          <template slot="title">
+            <i v-if="isElPrefix(item.iconName)" class="el-icon-menu"></i>
+            <i v-else class="svnIcon">
+              <svg-icon :icon-class="item.iconName" />
+            </i>
+            <span>{{ item.name }}</span>
+          </template>
+
+          <!-- 子菜单项 -->
+          <el-menu-item
+            v-for="child in item.children"
+            v-if="child.meta?.hidden === false"
+            :key="child.id"
+            class="menu-dt-leaf"
+            :class="{ 'dt-menu-leaf-active': menuLeafIsActive(child) }"
+            :index="menuItemIndex(child)"
+            @click="handleChangeMenuUrl(child)"
+          >
+            <i v-if="isElPrefix(child.iconName)" class="el-icon-menu"></i>
+            <i v-else class="svnIcon">
+              <svg-icon :icon-class="child.iconName" />
+            </i>
+            <span>{{ child.name }}</span>
+          </el-menu-item>
+        </el-submenu>
+
+        <!-- 没有子菜单 -->
+        <el-tooltip
+          v-else-if="item.meta?.hidden === false"
+          class="box-item"
+          effect="dark"
+          :content="item.name"
+          placement="right-start"
+        >
+          <el-menu-item
+            class="menu-dt-leaf"
+            :class="{ 'dt-menu-leaf-active': menuLeafIsActive(item) }"
+            :key="item.id"
+            :index="menuItemIndex(item)"
+            @click="handleChangeMenuUrl(item)"
+          >
+            <i v-if="isElPrefix(item.iconName)" class="el-icon-menu"></i>
+            <i v-else-if="item.iconName" class="svnIcon">
+              <svg-icon :icon-class="item.iconName" />
+            </i>
+            <i
+              class="svnIcon"
+              v-else-if="item.path === '/home/laserRangeFinder'"
+            >
+              <svg-icon
+                style="width: 22px; height: 22px"
+                icon-class="laserRangeFinder"
+              />
+            </i>
+            <span>{{ item.name }}</span>
+          </el-menu-item>
+        </el-tooltip>
+      </template>
+    </el-menu>
+
+    <!-- 展开/收起 -->
+    <div class="foldBox flexCenter">
+      <span
+        v-show="isCollapse"
+        class="el-icon-s-unfold icon"
+        @click.stop="isCollapse = false"
+        >展开</span
+      >
+      <el-switch
+        v-show="!isCollapse"
+        :value="isExpanded"
+        @change="toggleAllMenus"
+      />
+      <span
+        v-show="!isCollapse"
+        class="el-icon-s-fold icon"
+        @click.stop="isCollapse = true"
+        >收起</span
+      >
+    </div>
+  </el-aside>
+</template>
+
+<script>
+import { mapActions, mapState } from "vuex";
+
+export default {
+  data() {
+    return {
+      isExpanded: false,
+      openMenus: [],
+      isCollapse: true,
+      activeIndex: false,
+      keyObject: {},
+      activeTextColor: "#ffffff",
+      /** Element UI 会先响应 default-active 变 '' 并清空内部高亮,解析失败时用最近一次有效 index 兜底,避免闪一下又消失 */
+      staleMenuFallbackIndex: "",
+      routerList: [
+        {
+          id: 1,
+          path: "/home/cockpitManage",
+          name: "首页",
+          iconName: "gps",
+          meta: { hidden: false },
+        },
+      ],
+    };
+  },
+  created() {
+    this.routerList = [
+      ...this.routerList,
+      ...this.$store.state.auth.dynamicRouter,
+    ];
+  },
+  computed: {
+    ...mapState({
+      currentMenuIndex: (state) => state.breadStore?.currentUrl?.routeUrl,
+      currentTheme: (state) => state.themes?.theme,
+    }),
+    isTechBlueTheme() {
+      return this.currentTheme === "tech-blue";
+    },
+    menuThemeClass() {
+      return this.isTechBlueTheme ? "menu-dt-dark" : "menu-dt-light";
+    },
+    menuBackgroundColor() {
+      return this.isTechBlueTheme ? "#141414" : "#eff1f3";
+    },
+    menuTextColor() {
+      return this.isTechBlueTheme ? "#999999" : "#606266";
+    },
+    menuActiveTextColor() {
+      if (this.isTechBlueTheme) return "#ffffff";
+      const primary = getComputedStyle(document.documentElement)
+        .getPropertyValue("--primary-color")
+        .trim();
+      return primary || "#82780c";
+    },
+    menuPopperClass() {
+      return this.isTechBlueTheme ? "menu-dt-dark-popup" : "";
+    },
+    allMenuIndexes() {
+      return this.routerList.map((item) =>
+        item.children && item.children.length && item.meta?.hidden === false
+          ? this.normalizedMenuParentIndex(item)
+          : this.menuItemIndex(item),
+      );
+    },
+    /** 传给 el-menu 的 default-active:优先按路由解析,失败时若在「同一菜单页」则用 stale 占位,防止 Element 把 activeIndex 清空 */
+    menuDefaultActive() {
+      const direct = this.resolveMenuActiveFromRoute(this.$route);
+      if (direct) return direct;
+      if (
+        this.staleMenuFallbackIndex &&
+        this.routeMatchesMenuIndex(this.$route, this.staleMenuFallbackIndex)
+      ) {
+        return this.staleMenuFallbackIndex;
+      }
+      return "";
+    },
+  },
+  watch: {
+    currentMenuIndex(newVal) {
+      if (newVal && this.$refs.menu) {
+        this.$refs.menu.close(newVal);
+      }
+    },
+    $route() {
+      const d = this.resolveMenuActiveFromRoute(this.$route);
+      if (d) {
+        this.staleMenuFallbackIndex = d;
+      } else if (
+        !this.routeMatchesMenuIndex(this.$route, this.staleMenuFallbackIndex)
+      ) {
+        this.staleMenuFallbackIndex = "";
+      }
+      this.$nextTick(() => this.syncElMenuHighlight());
+    },
+    routerList() {
+      const d = this.resolveMenuActiveFromRoute(this.$route);
+      if (d) this.staleMenuFallbackIndex = d;
+      this.$nextTick(() => this.syncElMenuHighlight());
+    },
+  },
+  mounted() {
+    const initial = this.resolveMenuActiveFromRoute(this.$route);
+    if (initial) this.staleMenuFallbackIndex = initial;
+    this.$nextTick(() => this.syncElMenuHighlight());
+  },
+  methods: {
+    ...mapActions("menuTag", ["addTag"]),
+    toggleAllMenus() {
+      this.isExpanded = !this.isExpanded;
+      this.openMenus = this.isExpanded
+        ? this.routerList
+            .filter((item) => item.children && item.children.length)
+            .map((item) => this.normalizedMenuParentIndex(item))
+        : [];
+    },
+    normalizePath(path) {
+      if (path == null || path === "") return "";
+      const t = String(path).trim();
+      return t.startsWith("/") ? t : `/${t}`;
+    },
+    /** 后台 path 常与 vue-router resolve 不一致,用多候选路径对齐 $route.path */
+    menuPathCandidatesForLeaf(rawPath) {
+      const p = this.normalizePath(rawPath);
+      const set = new Set([p]);
+      if (!/^\/home(\/|$)/.test(p)) {
+        set.add(`/home${p.startsWith("/") ? "" : "/"}${p.replace(/^\//, "")}`);
+      }
+      return [...set];
+    },
+    leafMatchesRoute(leaf, routePath, qid) {
+      const pathOk = this.menuPathCandidatesForLeaf(leaf.path).includes(
+        routePath,
+      );
+      if (!pathOk) return false;
+      if (qid === undefined) return true;
+      return String(leaf.id) === qid;
+    },
+    parseMenuIndexString(indexStr) {
+      if (!indexStr || typeof indexStr !== "string") return null;
+      const q = indexStr.indexOf("?");
+      const pathPart = q >= 0 ? indexStr.slice(0, q) : indexStr;
+      let id = undefined;
+      if (q >= 0) {
+        const params = new URLSearchParams(indexStr.slice(q + 1));
+        if (params.has("id")) id = String(params.get("id"));
+      }
+      const pathname = this.normalizePath(pathPart);
+      return { pathname, id };
+    },
+    /** 当前路由是否与某个已注册的菜单 index(含 path + id)一致,用于避免因 path 写法差异误清高亮 */
+    routeMatchesMenuIndex(route, indexStr) {
+      const parsed = this.parseMenuIndexString(indexStr);
+      if (!parsed) return false;
+      const qid =
+        route.query.id !== undefined ? String(route.query.id) : undefined;
+      const candidates = this.menuPathCandidatesForLeaf(parsed.pathname);
+      if (!candidates.includes(route.path)) return false;
+      // 两边的 id 都有则必须一致;若 URL 暂时没有 id(重定向瞬时等),只要 path 对上就视为仍为该菜单页
+      if (parsed.id !== undefined && qid !== undefined) {
+        return parsed.id === qid;
+      }
+      return true;
+    },
+    /** 必须与 el-menu-item 的 :index 字符串完全一致(含路径规范),否则高亮失效 */
+    menuItemIndex(item) {
+      const p = this.normalizePath(item.path);
+      return `${p}?id=${item.id}`;
+    },
+    normalizedMenuParentIndex(item) {
+      return this.normalizePath(item.path);
+    },
+    /** 与 menuDefaultActive 一致即选中(兜底子菜单叶子项未及时打上 is-active 时仍显示蓝底高亮) */
+    menuLeafIsActive(item) {
+      if (!item) return false;
+      const idx = this.menuDefaultActive;
+      return !!idx && idx === this.menuItemIndex(item);
+    },
+    getVisibleLeafMenuItems() {
+      const leaves = [];
+      for (const item of this.routerList) {
+        if (item.meta?.hidden !== false) continue;
+        const isSubmenuParent =
+          item.children && item.children.length && item.meta?.hidden === false;
+        if (isSubmenuParent) {
+          for (const child of item.children) {
+            if (child.meta?.hidden === false) {
+              leaves.push(child);
+            }
+          }
+        } else {
+          leaves.push(item);
+        }
+      }
+      return leaves;
+    },
+    resolveMenuActiveFromRoute(route) {
+      const routePath = route.path;
+      const qid =
+        route.query.id !== undefined ? String(route.query.id) : undefined;
+      const leaves = this.getVisibleLeafMenuItems();
+
+      let chosen = null;
+      const pathMatches = leaves.filter((leaf) =>
+        this.leafMatchesRoute(leaf, routePath, qid),
+      );
+
+      if (pathMatches.length === 1) {
+        chosen =
+          qid !== undefined && String(pathMatches[0].id) !== qid
+            ? null
+            : pathMatches[0];
+      } else if (pathMatches.length > 1) {
+        chosen =
+          qid !== undefined
+            ? pathMatches.find((leaf) => String(leaf.id) === qid) || null
+            : null;
+      }
+
+      let index = chosen ? this.menuItemIndex(chosen) : "";
+
+      /** 兜底:pathname 已对但菜单 index 仅用「无 /home 前缀」等写法注册了 items */
+      if (!index && leaves.length && qid !== undefined) {
+        const idLeaf = leaves.find((leaf) => String(leaf.id) === qid);
+        if (
+          idLeaf &&
+          this.menuPathCandidatesForLeaf(idLeaf.path).includes(routePath)
+        ) {
+          index = this.menuItemIndex(idLeaf);
+        }
+      }
+
+      return index;
+    },
+    syncElMenuHighlight(retriesLeft = 16) {
+      const menu = this.$refs.menu;
+      if (!menu) return;
+
+      const idx = this.menuDefaultActive;
+      const items = menu.items || {};
+      const current = menu.activeIndex;
+
+      if (!idx) {
+        if (
+          current &&
+          items[current] &&
+          this.routeMatchesMenuIndex(this.$route, current)
+        ) {
+          return;
+        }
+        menu.activeIndex = "";
+        return;
+      }
+
+      if (!items[idx]) {
+        if (retriesLeft > 0) {
+          this.$nextTick(() => this.syncElMenuHighlight(retriesLeft - 1));
+        } else if (
+          current &&
+          items[current] &&
+          this.routeMatchesMenuIndex(this.$route, current)
+        ) {
+          return;
+        }
+        return;
+      }
+
+      menu.activeIndex = idx;
+      if (idx) this.staleMenuFallbackIndex = idx;
+      menu.initOpenedMenu();
+    },
+    // 修复后的跳转方法
+    handleChangeMenuUrl(item) {
+      const key = this.menuItemIndex(item);
+      this.staleMenuFallbackIndex = key;
+
+      const tag = { path: key, name: item.name, label: item.name };
+      this.addTag(tag);
+
+      // 用 nextTick 兼容 Firefox
+      this.$nextTick(() => {
+        this.$router.push(key).catch((err) => {
+          if (err.name !== "NavigationDuplicated") {
+            console.error("路由跳转失败:", err);
+          }
+        });
+      });
+    },
+    isElPrefix(str) {
+      return /^el-/.test(str);
+    },
+    handleOpen(key, keyPath) {
+      this.activeIndex = false;
+      this.keyObject = { key, keyPath };
+    },
+    handleClose(key, keyPath) {
+      this.activeIndex = false;
+      this.keyObject = { key, keyPath };
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+/* 深色侧栏主题色 */
+$dt-bg: #141414;
+$dt-item-blue: #1890ff;
+$dt-active-bg: #1890ff;
+$dt-text-inactive: #999999;
+$dt-radius: 8px;
+
+.el-menu-vertical-demo:not(.el-menu--collapse) {
+  width: 200px;
+  min-height: 400px;
+}
+.stop-animation,
+.active-animation {
+  font-size: 0px;
+}
+
+.asideBox {
+  height: 100vh;
+  overflow-y: scroll;
+  position: relative;
+  padding-bottom: 40px;
+  padding-top: 16px;
+  box-sizing: border-box;
+  display: flex;
+  align-items: flex-start;
+  justify-content: flex-start;
+  flex-direction: column;
+  position: relative;
+
+  &.asideBox--tech {
+    background: $dt-bg;
+    border-right: 1px solid #2a2a2a;
+    border-radius: 0 16px 16px 0;
+
+    .el-menu {
+      background-color: $dt-bg !important;
+    }
+
+    .foldBox .icon {
+      color: #a6a6a6;
+    }
+  }
+
+  &.asideBox--legacy {
+    background: #eff1f3;
+    border-right: 1px solid #e4e7ed;
+    border-radius: 0;
+
+    .el-menu {
+      background-color: #eff1f3 !important;
+    }
+
+    .foldBox .icon {
+      color: #666666;
+    }
+  }
+
+  .homeBox {
+    width: 100%;
+    padding: 0 20px;
+    display: flex;
+    flex-direction: column;
+    align-items: flex-start;
+    justify-content: flex-start;
+    box-sizing: border-box;
+
+    .logoItem {
+      display: flex;
+      width: 100%;
+      cursor: pointer;
+      box-sizing: border-box;
+
+      span {
+        line-height: 50px;
+        margin: 0 auto;
+      }
+
+      .logoImg {
+        img {
+          height: 100%;
+          width: inherit;
+        }
+
+        width: 50px;
+        height: 50px;
+      }
+    }
+
+    .search {
+      display: flex;
+      width: 100%;
+      align-items: center;
+      justify-content: center;
+
+      .el-icon-search {
+        margin-top: 28px;
+      }
+
+      .el-input {
+        width: inherit;
+      }
+    }
+
+    .frame {
+      display: flex;
+      justify-content: space-between;
+      align-items: center;
+      color: #666;
+      width: 100%;
+      margin-top: 20px;
+      margin-bottom: 10px;
+      cursor: pointer;
+
+      .homeIndex {
+        display: flex;
+        justify-content: center;
+        align-items: center;
+        font-size: 18px;
+
+        .home_active {
+          margin-right: 2px;
+        }
+
+        p {
+          color: #666;
+          font-size: 18px;
+        }
+      }
+
+      &:hover {
+        p {
+          color: #19436d;
+        }
+
+        transition: width 0.5s ease, transform 0.5s ease;
+        transform-origin: left;
+      }
+
+      .left {
+        left: 50%;
+        transform: scaleX(0);
+      }
+
+      .right {
+        left: 0;
+        transform: scaleX(0);
+      }
+    }
+  }
+
+  .el-menu {
+    margin-bottom: 10px;
+    border: none;
+    overflow-y: auto;
+    width: 100% !important;
+    height: 100%;
+  }
+}
+
+::v-deep .menu-dt-light.el-menu {
+  .el-menu-item,
+  .el-submenu__title {
+    color: #606266 !important;
+    border-radius: 4px;
+    margin: 2px 8px;
+    height: 44px;
+    line-height: 44px;
+  }
+
+  .el-menu-item:not(.is-active):not(.dt-menu-leaf-active) .svnIcon,
+  .el-submenu__title .svnIcon {
+    color: #606266;
+    svg {
+      fill: #606266;
+    }
+  }
+
+  .el-menu-item.dt-menu-leaf-active,
+  .el-menu-item.is-active {
+    background-color: transparent !important;
+    color: var(--primary-color, #82780c) !important;
+
+    span {
+      color: var(--primary-color, #82780c) !important;
+    }
+
+    .el-icon-menu,
+    .svnIcon {
+      color: var(--primary-color, #82780c) !important;
+    }
+
+    .svnIcon svg {
+      fill: var(--primary-color, #82780c) !important;
+    }
+  }
+
+  .el-menu-item:hover:not(.is-active):not(.dt-menu-leaf-active),
+  .el-submenu__title:hover {
+    background-color: rgba(0, 0, 0, 0.04) !important;
+  }
+
+  .el-menu--inline {
+    background-color: #eff1f3 !important;
+  }
+
+  .el-submenu .el-menu-item {
+    padding-left: 44px !important;
+  }
+}
+
+.flexCenter {
+  display: flex;
+  align-items: center !important;
+  justify-content: space-between !important;
+  width: 200px;
+}
+
+.foldBox {
+  position: fixed;
+  bottom: 10px;
+  left: 20px;
+  padding: 10px;
+
+  .icon {
+    cursor: pointer;
+    color: #a6a6a6;
+    font-size: 14px;
+  }
+}
+
+::v-deep .menu-dt-dark.el-menu {
+  .el-menu-item,
+  .el-submenu__title {
+    color: $dt-text-inactive !important;
+    border-radius: $dt-radius;
+    margin: 4px 10px;
+    margin-left: 10px !important;
+    height: 44px;
+    line-height: 44px;
+    border: none !important;
+  }
+
+  /* 未选中:字灰、图标品牌蓝 */
+  .el-menu-item:not(.is-active):not(.dt-menu-leaf-active) .el-icon-menu,
+  .el-submenu__title .el-icon-menu {
+    color: $dt-item-blue !important;
+  }
+
+  .el-menu-item:not(.is-active):not(.dt-menu-leaf-active) span,
+  .el-submenu__title span {
+    color: $dt-text-inactive !important;
+  }
+
+  .el-menu-item:not(.is-active):not(.dt-menu-leaf-active) .svnIcon,
+  .el-submenu__title .svnIcon {
+    color: $dt-item-blue;
+    svg {
+      fill: $dt-item-blue;
+    }
+  }
+
+  /* Element is-active + 路由类:蓝底白字(子菜单内需盖过 theme-chalk hover 底色)*/
+  .el-menu-item.dt-menu-leaf-active,
+  .el-menu-item.is-active {
+    background-color: $dt-active-bg !important;
+    color: #fff !important;
+
+    span {
+      color: #fff !important;
+    }
+
+    .el-icon-menu,
+    .svnIcon {
+      color: #fff !important;
+    }
+    .svnIcon svg {
+      fill: #fff !important;
+    }
+  }
+
+  .el-submenu .el-menu--inline .el-menu-item.dt-menu-leaf-active,
+  .el-submenu .el-menu--inline .el-menu-item.is-active {
+    background-color: $dt-active-bg !important;
+  }
+
+  .el-menu-item.dt-menu-leaf-active:hover,
+  .el-menu-item.dt-menu-leaf-active:focus,
+  .el-menu-item.is-active:hover,
+  .el-menu-item.is-active:focus {
+    background-color: $dt-active-bg !important;
+    color: #fff !important;
+  }
+
+  .el-menu-item:focus,
+  .el-menu-item:hover:not(.is-active):not(.dt-menu-leaf-active) {
+    background-color: rgba(255, 255, 255, 0.06) !important;
+  }
+
+  .el-submenu__title:hover {
+    background-color: rgba(255, 255, 255, 0.06) !important;
+  }
+
+  /* 子菜单展开区域 */
+  .el-menu--inline {
+    background-color: #0d0d0d !important;
+  }
+
+  .el-submenu .el-menu-item {
+    min-width: auto;
+    padding-left: 44px !important;
+  }
+}
+
+::v-deep .el-submenu__title {
+  display: flex;
+  align-items: center;
+}
+
+::v-deep .el-submenu__icon-arrow {
+  right: 16px;
+  color: $dt-text-inactive;
+}
+
+::v-deep .svnIcon {
+  vertical-align: middle;
+  margin-right: 8px;
+  width: 24px;
+  text-align: center;
+  font-size: 18px;
+  display: inline-flex;
+  align-items: center;
+  justify-content: center;
+}
+
+::-webkit-scrollbar {
+  width: 6px;
+  display: none;
+}
+
+::-webkit-scrollbar-thumb {
+  border-radius: 10px;
+  background-color: #3a3a3a;
+  cursor: pointer;
+}
+
+::-webkit-scrollbar-thumb:hover {
+  background-color: #4a4a4a;
+}
+
+::-webkit-scrollbar-track-piece {
+  background-color: #1a1a1a;
+  border-radius: 10px;
+}
+
+.asideBox:hover ::-webkit-scrollbar {
+  display: block !important;
+}
+
+/* 旧版侧栏左缩进由 ::v-deep 内 margin 统一控制 */
+</style>
+
+<!-- 收起侧栏时子菜单弹出层挂到 body,需非 scoped 样式 -->
+<style lang="scss">
+$dt-bg: #141414;
+$dt-item-blue: #1890ff;
+$dt-active-bg: #1890ff;
+$dt-text-inactive: #999999;
+$dt-radius: 8px;
+
+.menu-dt-dark-popup {
+  .el-menu--popup {
+    background-color: $dt-bg !important;
+    border: 1px solid rgba(0, 170, 255, 0.25);
+    min-width: 160px;
+    padding: 4px 0;
+  }
+
+  .el-menu-item {
+    color: $dt-text-inactive !important;
+    border-radius: $dt-radius;
+    margin: 4px 8px;
+    height: 44px;
+    line-height: 44px;
+
+    span {
+      color: $dt-text-inactive !important;
+    }
+
+    .el-icon-menu,
+    .svnIcon {
+      color: $dt-item-blue !important;
+    }
+
+    .svnIcon svg {
+      fill: $dt-item-blue;
+    }
+  }
+
+  .el-menu-item.is-active,
+  .el-menu-item.dt-menu-leaf-active {
+    background-color: $dt-active-bg !important;
+    color: #fff !important;
+
+    span {
+      color: #fff !important;
+    }
+
+    .el-icon-menu,
+    .svnIcon {
+      color: #fff !important;
+    }
+
+    .svnIcon svg {
+      fill: #fff !important;
+    }
+  }
+
+  .el-menu-item.is-active:hover,
+  .el-menu-item.is-active:focus,
+  .el-menu-item.dt-menu-leaf-active:hover,
+  .el-menu-item.dt-menu-leaf-active:focus {
+    background-color: $dt-active-bg !important;
+    color: #fff !important;
+
+    span {
+      color: #fff !important;
+    }
+  }
+
+  .el-menu-item:hover:not(.is-active):not(.dt-menu-leaf-active) {
+    background-color: rgba(255, 255, 255, 0.06) !important;
+  }
+}
+</style>

+ 51 - 0
src/views/ledger/milltype.vue

@@ -247,6 +247,14 @@
           </el-form-item>
         </div>
         <div class="form-row">
+          <el-form-item label="发电机额定转速:" prop="generatorRatedSpeed">
+            <el-input v-model="ruleForm.generatorRatedSpeed"></el-input>
+          </el-form-item>
+          <el-form-item label="叶轮额定转速:" prop="impellerRatedSpeed">
+            <el-input v-model="ruleForm.impellerRatedSpeed"></el-input>
+          </el-form-item>
+        </div>
+        <div class="form-row">
           <!-- <el-form-item label="厂商编号:" prop="manufacturerCode">
             <el-input
               v-model="ruleForm.manufacturerCode"
@@ -330,6 +338,14 @@
           <p>切出风速:</p>
           <span>{{ particularsdata.ratedCutOutWindspeed }} m/s</span>
         </div>
+        <div class="condition">
+          <p>发电机额定转速:</p>
+          <span>{{ particularsdata.generatorRatedSpeed }}</span>
+        </div>
+        <div class="condition">
+          <p>叶轮额定转速:</p>
+          <span>{{ particularsdata.impellerRatedSpeed }}</span>
+        </div>
       </div>
       <!-- <div class="attachment">
         <p class="model-center" @click="downloadfile">下载标准功率曲线附件</p>
@@ -420,6 +436,8 @@ export default {
         ratedWindSpeed: "",
         ratedCutInWindspeed: "",
         ratedCutOutWindspeed: "",
+        generatorRatedSpeed: "",
+        impellerRatedSpeed: "",
       },
       curvedMotionTypeOptions: [],
       rules: {
@@ -454,6 +472,18 @@ export default {
           { required: true, message: "请输入传动比", trigger: "blur" },
           { validator: this.validateNumber, trigger: ["blur", "change"] }, // 假设您也有验证数字的自定义验证器
         ],
+        generatorRatedSpeed: [
+          {
+            validator: this.validateNumberOptional,
+            trigger: ["blur", "change"],
+          },
+        ],
+        impellerRatedSpeed: [
+          {
+            validator: this.validateNumberOptional,
+            trigger: ["blur", "change"],
+          },
+        ],
       },
       particularsdata: [],
       // 新增信息
@@ -564,6 +594,12 @@ export default {
           ratedWindSpeed: this.ruleForm.ratedWindSpeed,
           ratedCutInWindspeed: this.ruleForm.ratedCutInWindspeed,
           ratedCutOutWindspeed: this.ruleForm.ratedCutOutWindspeed,
+          generatorRatedSpeed: this.parseSpeedValue(
+            this.ruleForm.generatorRatedSpeed,
+          ),
+          impellerRatedSpeed: this.parseSpeedValue(
+            this.ruleForm.impellerRatedSpeed,
+          ),
         };
 
         if (this.isEdit) {
@@ -610,6 +646,21 @@ export default {
       }
     },
 
+    validateNumberOptional(rule, value, callback) {
+      if (value === "" || value === null || value === undefined) {
+        callback();
+        return;
+      }
+      this.validateNumber(rule, value, callback);
+    },
+
+    parseSpeedValue(value) {
+      if (value === "" || value === null || value === undefined) {
+        return undefined;
+      }
+      return Number(value);
+    },
+
     // 删除
     deleted(row) {
       console.log(row, "row");

+ 9 - 19
src/views/login/Index.vue

@@ -140,10 +140,10 @@ export default {
   transform: translate(-50%, -50%);
   padding: 0 50px;
   width: 450px;
-  background: #fff;
-  border: 1px solid rgb(231, 231, 231);
-  border-radius: 5px;
-  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.4);
+  background: var(--panel-bg, #000c17);
+  border: 1px solid var(--panel-border, rgba(0, 170, 255, 0.45));
+  border-radius: 4px;
+  box-shadow: var(--panel-glow, 0 0 20px rgba(0, 120, 255, 0.2));
   margin: auto;
 
   .leftLogin {
@@ -155,41 +155,31 @@ export default {
       line-height: 50px;
       font-size: 20px;
       font-weight: 600;
-      color: #00baad;
+      color: var(--text-cyan, #52c8f2);
       margin-top: 20px;
     }
 
     .el-divider--horizontal {
       margin: 10px 0;
-      height: 4px;
-      background: #ba2200;
+      height: 2px;
+      background: var(--primary-color, #1890ff);
     }
 
     .loginText {
       .custom-button {
         width: 300px;
         margin-bottom: 10px;
-        background-color: #00baad;
-        color: white;
-        border: 2px solid #00baad;
-      }
-
-      .custom-button:hover {
-        background-color: #00baad;
-        color: white;
-        border: 2px solid #00baad;
       }
     }
 
     .forgot {
       font-size: 12px;
-      color: rgb(143, 143, 143);
+      color: var(--text-muted, rgba(82, 200, 242, 0.65));
       margin-top: 20px;
     }
 
     .forgot:hover {
-      font-size: 12px;
-      color: rgb(0, 0, 0);
+      color: var(--text-cyan, #52c8f2);
       margin-top: 20px;
     }
 

+ 52 - 95
src/views/overview/components/analysis_information/index.vue

@@ -1,5 +1,9 @@
 <template>
-  <el-card shadow="always" class="box-card" v-loading="loading">
+  <el-card
+    shadow="always"
+    class="box-card analysis-info-card"
+    v-loading="loading"
+  >
     <div class="box-header">
       <h4 style="font-weight: 700">分析介绍:</h4>
       <div class="box-header-min">
@@ -149,7 +153,7 @@
                     class="WindPower3"
                     width="40px"
                     height="42px"
-                    color="#222"
+                    :color="turbineIconColor"
                   ></SvgIcons>
                   <span>{{ itemData.engineName }}机组</span>
                 </div>
@@ -207,6 +211,14 @@ export default {
     },
   },
 
+  computed: {
+    isTechBlueTheme() {
+      return this.$store.state.themes?.theme === "tech-blue";
+    },
+    turbineIconColor() {
+      return this.isTechBlueTheme ? "#b7dff5" : "#606266";
+    },
+  },
   data() {
     return {
       loading: false,
@@ -292,6 +304,22 @@ export default {
 </script>
 
 <style scoped lang="scss">
+.analysis-info-card {
+  width: 100%;
+  height: 100%;
+  overflow-y: auto;
+  background: transparent !important;
+  border: none !important;
+  box-shadow: none !important;
+  color: var(--text-cyan, #303133);
+}
+
+::v-deep .analysis-info-card .el-card__body {
+  width: 100%;
+  height: 100%;
+  background: transparent !important;
+}
+
 .completeAssetssType {
   display: flex;
   flex-wrap: wrap;
@@ -300,72 +328,38 @@ export default {
     margin-right: 10px;
     margin-bottom: 10px;
   }
-
-  ::v-deep .el-tag--warning {
-    background-color: #0080803a !important;
-    border-color: #0080803a !important;
-    color: #008080 !important;
-  }
-}
-
-.el-card__body {
-  width: 100%;
-  height: 100%;
-  // margin-bottom: 20px !important;
 }
 
 .content {
   width: 100%;
   display: flex;
   justify-content: space-between;
-  // align-items: flex-start;
-  /* 上对齐 */
   height: 100%;
   border-bottom: 1px solid #ebeef5;
-  /* 确保内容区域有高度 */
 }
-.box-min {
-  padding: 10px;
 
-  color: #303133;
+.box-min,
+.box-header,
+.left .box-content-min {
+  padding: 10px;
+  color: var(--text-cyan, #303133);
 
-  h4 {
-    color: #303133;
-    // border-bottom: 1px solid #ebeef5;
+  h4,
+  h6 {
     font-size: 14px;
     font-weight: 500;
     margin-bottom: 10px;
-  }
-  ::v-deep .analysisTypes {
-    h6 {
-      font-weight: 500 !important;
-      font-size: 12px;
-      margin: 5px 0;
-    }
-  }
-  .analysisTypes:last-child {
-    margin-bottom: 50px;
+    color: var(--text-cyan, #303133);
   }
 }
 
+.box-min .analysisTypes:last-child {
+  margin-bottom: 50px;
+}
+
 .left {
   width: 70%;
 
-  // flex: 1;
-  .box-content-min {
-    padding: 10px;
-    // border-bottom: 1px solid #ebeef5;
-    color: #303133;
-
-    h4 {
-      color: #303133;
-      // border-bottom: 1px solid #ebeef5;
-      font-size: 14px;
-      font-weight: 500;
-      margin-bottom: 10px;
-    }
-  }
-
   .analysisCompletionUnit {
     display: flex;
     flex-wrap: wrap;
@@ -375,17 +369,20 @@ export default {
     .itemAnalysisCompletionUnit {
       text-align: center;
       margin-bottom: 10px;
-      border: #eaeef6 solid 1px;
       margin-right: 10px;
-      border-radius: 10px;
+      border-radius: 4px;
       padding: 10px 5px;
-      span {
-        font-size: 12px;
-      }
+      cursor: pointer;
+      transition: background-color 0.2s ease, border-color 0.2s ease;
+
       .WindPower3 {
         padding: 10px 5px;
         text-align: center;
       }
+
+      span {
+        font-size: 12px;
+      }
     }
   }
 }
@@ -393,8 +390,6 @@ export default {
 .right {
   width: 30%;
   height: 100%;
-  /* 确保容器高度为100% */
-  // flex: 1;
   display: flex;
   justify-content: center;
   align-items: center;
@@ -402,60 +397,22 @@ export default {
 
 .right .map-ditu {
   width: 100%;
-  /* 设置地图的宽度 */
   height: 40vh;
   border-radius: 90px;
-
-  /* 设置地图的高度 */
 }
 
-.box-card {
-  width: 100%;
-  height: 100%;
-  overflow-y: scroll;
-  /* 滚动条整体样式 */
-  &::-webkit-scrollbar {
-    width: 6px; /* 滚动条宽度 */
-  }
-
-  /* 滚动条轨道 */
-  &::-webkit-scrollbar-track {
-    background: #f5f7fa;
-    border-radius: 3px;
-  }
-
-  /* 滚动条滑块 */
-  &::-webkit-scrollbar-thumb {
-    background: #c0c4cc;
-    border-radius: 3px;
-  }
-
-  /* 滚动条滑块悬停时 */
-  &::-webkit-scrollbar-thumb:hover {
-    background: #909399;
-  }
-
+.box-card.analysis-info-card {
   .box-header {
-    padding: 10px;
     border-bottom: 1px solid #ebeef5;
-    color: #303133;
-
-    h4 {
-      color: #303133;
-      font-size: 14px;
-      font-weight: 500;
-      // margin-bottom: 10px;
-    }
   }
 
   .box-header-min {
-    padding: 10px;
     font-size: 14px;
-    color: #606266;
     line-height: 22px;
 
     .headerMessage {
       font-size: 16px;
+      font-weight: 600;
     }
   }
 }

+ 13 - 5
src/views/overview/components/dicCard/index.vue

@@ -14,7 +14,11 @@
         <svg-icon icon-class="pl4" style="width: 35px; height: 35px" />
       </div>
     </el-tooltip>
-    <el-drawer :visible.sync="drawer" title="分析评论">
+    <el-drawer
+      :visible.sync="drawer"
+      title="分析评论"
+      custom-class="overview-drawer"
+    >
       <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
         <el-tab-pane label="当前评论" name="current">
           <template
@@ -128,19 +132,23 @@ export default {
   position: fixed;
   right: 40px;
   bottom: 20%;
-  background: rgb(255, 255, 255);
+  background: var(--panel-bg, #000c17);
+  border: 1px solid var(--panel-border, rgba(0, 170, 255, 0.45));
   border-radius: 50%;
   width: 50px;
   height: 50px;
-  color: #707070;
+  color: var(--text-cyan, #b7dff5);
   font-size: 30px;
-  box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px;
+  box-shadow: 0 0 12px rgba(0, 100, 255, 0.18);
   display: flex;
   align-items: center;
   justify-content: center;
+  cursor: pointer;
 }
+
 .drawerDescription:hover {
-  background: rgb(196, 199, 206);
+  background: var(--bgopacity-color, rgba(0, 170, 255, 0.12));
+  color: #ffffff;
 }
 .el-tabs--border-card {
   height: 100%;

+ 8 - 7
src/views/overview/components/filterChart/index.vue

@@ -68,13 +68,10 @@
           "
           >查询</el-button
         >
-        <el-button
-          type="primary"
-          size="small"
-          @click="onSubmit('handlePrevious')"
+        <el-button size="small" @click="onSubmit('handlePrevious')"
           >上一次分析结果</el-button
         >
-        <el-button type="primary" size="small" @click="onSubmit('handleNext')"
+        <el-button size="small" @click="onSubmit('handleNext')"
           >下一次分析结果</el-button
         >
       </el-form-item>
@@ -167,7 +164,7 @@ export default {
     // 保证只有在通过事件传递数据时才更新
     if (this.setUpimg.length > 0) {
       this.form.dgeneratorSpeed = this.form.dgeneratorSpeed.filter(
-        (item) => this.setUpimg.includes(item.label) // 过滤出label在setUpimg中的项
+        (item) => this.setUpimg.includes(item.label), // 过滤出label在setUpimg中的项
       );
     } else {
       this.form.dgeneratorSpeed = [];
@@ -192,10 +189,14 @@ export default {
 </script>
 <style scoped lang="scss">
 .filterChart {
+  padding: 12px 0;
+  color: #ffffff;
+
   h3 {
     font-size: 16px;
     font-weight: 500;
-    margin-top: 10px 0;
+    margin: 10px 0;
+    color: var(--text-cyan, #303133);
   }
 }
 // ::v-deep.el-input--small .el-input__inner {

+ 69 - 74
src/views/overview/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="global-variable" v-loading="loading">
+  <div class="global-variable overview-page" v-loading="loading">
     <div class="left">
       <div class="leftTitle">
         <el-input
@@ -40,14 +40,18 @@
     <div class="right">
       <el-menu
         :default-active="activeIndex"
-        class="el-menu-demo"
+        class="el-menu-demo overview-top-menu"
         mode="horizontal"
+        background-color="transparent"
+        :text-color="overviewMenuTextColor"
+        :active-text-color="overviewMenuActiveTextColor"
         @select="handleSelect"
       >
         <template v-for="menuItem in assetssTypeData">
           <el-submenu
             :index="menuItem.typeCode + menuItem.typeName"
             v-if="menuItem.children && menuItem.children.length"
+            popper-class="overview-menu-popup"
           >
             <template slot="title">{{ menuItem.typeName }}</template>
 
@@ -123,6 +127,7 @@
       :title="'分析主题:' + batchTitle"
       :visible="isShowComment"
       width="40%"
+      custom-class="overview-dialog"
       v-dialogDrag
       :modal="false"
       :lock-scroll="false"
@@ -149,6 +154,24 @@
 import { queryAllAnalysisType } from "@/api/performance";
 import { getAnalysisCodeInfo } from "@/api/overview";
 export default {
+  computed: {
+    isTechBlueTheme() {
+      return this.$store.state.themes?.theme === "tech-blue";
+    },
+    overviewMenuTextColor() {
+      return this.isTechBlueTheme ? "#b7dff5" : "#606266";
+    },
+    overviewMenuActiveTextColor() {
+      if (this.isTechBlueTheme) return "#ffffff";
+      const themeColors = {
+        light: "#82780c",
+        green: "#008080",
+        blue: "#1a3b7f",
+        dark: "#607d8b",
+      };
+      return themeColors[this.$store.state.themes?.theme] || "#82780c";
+    },
+  },
   data() {
     return {
       defalueExpandAll: process.env.VUE_APP_Helath === "demo" ? true : false,
@@ -384,7 +407,7 @@ export default {
                   if (child.typeCode === "speed_torque_power") {
                     return (
                       self.findIndex(
-                        (c) => c.typeCode === "speed_torque_power"
+                        (c) => c.typeCode === "speed_torque_power",
                       ) === index
                     );
                   }
@@ -427,7 +450,7 @@ export default {
       this.isShowComment = true;
       this.dialogInitBatchCode = val;
       const batchObj = this.batchList.find((item) =>
-        item.batchCode === val ? item.batchName : ""
+        item.batchCode === val ? item.batchName : "",
       );
       this.batchTitle = batchObj.batchName;
     },
@@ -458,123 +481,99 @@ export default {
   display: flex;
   height: 89vh;
   overflow: hidden;
+  color: var(--text-cyan, #303133);
+
   .left {
     width: 200px;
-    border-right: 1px solid #ebeef5;
     padding-right: 20px;
     margin-bottom: 20px;
     overflow-y: scroll;
+    border-right: 1px solid #ebeef5;
+
     .leftTitle {
       display: flex;
       align-items: center;
       justify-content: space-between;
+
+      .el-dropdown-link {
+        color: var(--text-cyan, #606266);
+        cursor: pointer;
+      }
+
       .el-icon-more-outline {
         margin-left: 10px;
         transform: rotate(90deg);
       }
     }
-    /* 滚动条整体样式 */
-    &::-webkit-scrollbar {
-      width: 0px; /* 滚动条宽度 */
-    }
 
-    /* 滚动条轨道 */
-    &::-webkit-scrollbar-track {
-      background: #f5f7fa;
-      border-radius: 3px;
-    }
-
-    /* 滚动条滑块 */
-    &::-webkit-scrollbar-thumb {
-      background: #c0c4cc;
-      border-radius: 3px;
+    &::-webkit-scrollbar {
+      width: 0;
     }
 
-    /* 滚动条滑块悬停时 */
-    &::-webkit-scrollbar-thumb:hover {
-      background: #909399;
-    }
     .filterInput {
       margin: 20px 0;
     }
   }
+
   .right {
     flex: 1;
     padding-left: 20px;
     overflow: hidden;
 
-    /* 横向滚动设置 */
     .el-menu-demo {
-      max-width: 100%; /* 容器宽度为100% */
-      white-space: nowrap; /* 阻止换行 */
-      overflow-x: auto; /* 允许横向滚动 */
-      display: flex; /* 让子菜单元素保持在同一行 */
-
-      /* 滚动条整体样式 */
-      &::-webkit-scrollbar {
-        height: 6px; /* 滚动条宽度 */
-      }
-
-      /* 滚动条轨道 */
-      &::-webkit-scrollbar-track {
-        background: #f5f7fa;
-        border-radius: 3px;
-      }
-
-      /* 滚动条滑块 */
-      &::-webkit-scrollbar-thumb {
-        background: #c0c4cc;
-        border-radius: 3px;
-      }
-
-      /* 滚动条滑块悬停时 */
-      &::-webkit-scrollbar-thumb:hover {
-        background: #909399;
-      }
+      max-width: 100%;
+      white-space: nowrap;
+      overflow-x: auto;
+      display: flex;
     }
   }
-  .tousutiwen_box {
+
+  .tousutiwen_box,
+  .tousutiwen_box1 {
     position: fixed;
-    right: 40px;
-    bottom: 10%;
-    background: rgb(255, 255, 255);
     border-radius: 50%;
     width: 50px;
     height: 50px;
-    color: rgb(132, 145, 165);
-    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px;
     display: flex;
     align-items: center;
     justify-content: center;
+    background: var(--panel-bg, #000c17);
+    border: 1px solid var(--panel-border, rgba(0, 170, 255, 0.45));
+    color: var(--text-cyan, #b7dff5);
+    box-shadow: 0 0 12px rgba(0, 100, 255, 0.18);
+    cursor: pointer;
   }
+
+  .tousutiwen_box {
+    right: 40px;
+    bottom: 10%;
+  }
+
   .tousutiwen_box1 {
-    position: fixed;
     right: 80px;
     bottom: 25%;
-    background: rgb(255, 255, 255);
-    border-radius: 50%;
-    width: 50px;
-    height: 50px;
-    color: rgb(132, 145, 165);
-    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
-    display: flex;
-    align-items: center;
-    justify-content: center;
   }
+
   .tousutiwen_box:hover,
   .tousutiwen_box1:hover {
-    background: rgb(196, 199, 206);
+    background: var(--bgopacity-color, rgba(0, 170, 255, 0.12));
+    color: #ffffff;
   }
-  .el-menu-demo {
-    border-bottom: 1px solid #ebeef5;
+
+  ::v-deep .overview-top-menu {
+    border-bottom: 1px solid var(--panel-border, rgba(0, 170, 255, 0.35)) !important;
+    background: transparent !important;
   }
+
   ::v-deep .el-submenu__title {
     padding: 0 10px !important;
   }
 }
+
 .el-dialog__wrapper {
   position: relative !important;
 }
+
 ::v-deep .el-dialog {
   position: fixed !important;
   z-index: 999 !important;
@@ -582,13 +581,9 @@ export default {
   left: 50%;
   transform: translate(0, -50%);
 }
+
 ::v-deep .el-dialog__body {
   overflow-y: scroll;
   height: 80vh;
 }
-
-.is-current > .el-tree-node__content {
-  // background-color: #f0f7ff !important;
-  background-color: #f90 !important;
-}
 </style>

+ 70 - 15
src/views/performance/components/analysisEvent.vue

@@ -1,14 +1,14 @@
 <!--
  * @Author: your name
  * @Date: 2024-05-29 09:13:51
- * @LastEditTime: 2025-09-04 17:07:30
- * @LastEditors: bogon
+ * @LastEditTime: 2026-05-25 14:42:38
+ * @LastEditors: milo-MacBook-Pro.local
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/performance/components/analysisEvent.vue
 -->
 <template>
   <!-- 分析事件页面 -->
-  <div v-loading="loading">
+  <div class="analysis-event-page" v-loading="loading">
     <el-form
       ref="form"
       :model="form"
@@ -330,12 +330,13 @@
       :visible.sync="drawer"
       :direction="direction"
       :before-close="handleClose"
+      custom-class="analysis-event-drawer"
       class="drawerOption"
     >
       <el-row>
         <el-col :span="12"
           ><div class="drawerLeft">
-            <div style="text-align: center; font-size: 16px">常用功能设置</div>
+            <div class="drawer-section-title">常用功能设置</div>
             <el-checkbox
               :indeterminate="isIndeterminate"
               v-model="checkAll"
@@ -364,7 +365,7 @@
         >
         <el-col :span="12">
           <div class="drawerRight">
-            <div style="text-align: center; font-size: 16px">已选中功能</div>
+            <div class="drawer-section-title">已选中功能</div>
             <ul>
               <li v-for="func in checkedCities" :key="func">
                 {{ func }}
@@ -805,18 +806,49 @@ export default {
 };
 </script>
 <style scoped lang="scss">
+.analysis-event-page {
+  color: var(--text-cyan, #303133);
+
+  ::v-deep .el-collapse {
+    background: transparent;
+    margin: 0 10px;
+    border-color: #ebeef5;
+  }
+
+  ::v-deep .el-collapse-item__header {
+    font-size: 15px;
+    padding: 0 16px;
+    font-weight: 500;
+  }
+
+  ::v-deep .el-collapse-item__content {
+    padding: 16px 12px;
+  }
+
+  ::v-deep .setting {
+    color: var(--primary-color, #82780c);
+    cursor: pointer;
+    font-size: 24px;
+    margin-left: 10px;
+
+    &:hover {
+      opacity: 0.85;
+    }
+  }
+}
+
 .box-card {
   margin: 10px 0;
   width: 100%;
   font-size: 14px;
   height: 100%;
+  background: transparent !important;
+  box-shadow: none !important;
+  border: 1px solid #ebeef5;
+
   .filedView {
     height: 60px;
-    // line-height: 60px;
-    background-color: #fff;
-    color: #303133;
     cursor: pointer;
-    border-bottom: 1px solid #ebeef5;
     font-size: 16px;
     text-align: center;
     display: flex;
@@ -824,19 +856,24 @@ export default {
     align-items: center;
     font-weight: 500;
     margin-bottom: 10px;
+    padding: 0 16px;
   }
-  .el-card__body {
+
+  ::v-deep .el-card__body {
     width: 100%;
     height: 100% !important;
+
     .left {
       > div {
         line-height: 3;
       }
     }
+
     .el-row {
       height: 100%;
       width: 100%;
     }
+
     .el-col {
       min-height: 500px;
     }
@@ -844,6 +881,9 @@ export default {
     .right {
       height: 500px;
       width: 100%;
+      border-radius: 4px;
+      overflow: hidden;
+
       iframe {
         width: 100%;
         height: 100%;
@@ -894,39 +934,54 @@ export default {
   .el-drawer {
     width: 33% !important;
   }
+
   .el-checkbox-group {
     line-height: 40px !important;
   }
+
   .drawerLeft {
     margin-left: 20px;
-    color: #606266 !important;
+    color: var(--text-cyan, #303133) !important;
+  }
+
+  .drawer-section-title {
+    text-align: center;
+    font-size: 16px;
+    color: var(--text-cyan, #303133);
+    margin-bottom: 8px;
   }
+
   .checkFromRow {
     .el-col-12 {
-      color: #606266 !important;
+      color: var(--text-cyan, #303133) !important;
       font-size: 14px;
     }
+
     .el-col-12:nth-child(even) {
       text-align: end !important;
     }
   }
+
   .drawerRight {
     margin-right: 20px;
-    color: #606266 !important;
+    color: var(--text-cyan, #303133) !important;
     font-size: 14px;
+
     ul {
       list-style-type: none;
       padding: 0;
-      color: #606266 !important;
+      color: var(--text-cyan, #303133) !important;
+
       li {
         display: flex;
         align-items: center;
         justify-content: space-between;
-        padding: 0px 10px;
+        padding: 0 10px;
         line-height: 40px !important;
       }
     }
   }
+
   .demo-drawer__footer {
     display: flex;
     margin-top: 50px;

+ 4 - 0
src/views/performance/components/custonAsCom/dragChart/components/chartConfig/form/chartTitle.vue

@@ -1451,13 +1451,17 @@ export default {
 ::v-deep .el-form-item {
   width: 100% !important;
   margin-bottom: 5px;
+
   .el-form-item__label {
     width: 100% !important;
+    color: var(--drag-chart-label, #606266) !important;
   }
+
   .attributeItemData {
     display: flex;
     justify-content: space-between;
     align-items: center;
+    color: var(--drag-chart-text, #303133);
   }
 }
 .el-divider--horizontal {

+ 29 - 2
src/views/performance/components/custonAsCom/dragChart/components/chartsAttributes.vue

@@ -209,25 +209,52 @@ export default {
 </script>
 <style scoped lang="scss">
 .chartContiner {
-  background-color: pink;
   width: 268px;
-  // width: 200px;
   height: 100%;
+  background: var(--drag-chart-panel-bg, #ffffff);
+  color: var(--drag-chart-text, #303133);
 
   ::v-deep .card {
     height: 100%;
     border-radius: 0 !important;
     overflow: scroll;
+    background: transparent !important;
+    border: none !important;
+    box-shadow: none !important;
   }
+
+  ::v-deep .el-card__body {
+    background: transparent !important;
+    color: var(--drag-chart-text, #303133);
+  }
+
+  ::v-deep .el-tabs__item {
+    color: var(--drag-chart-tab-text, #606266) !important;
+  }
+
+  ::v-deep .el-tabs__item.is-active {
+    color: var(--drag-chart-tab-active-text, var(--primary-color, #82780c)) !important;
+  }
+
+  ::v-deep .el-form-item__label {
+    color: var(--drag-chart-label, #606266) !important;
+  }
+
+  ::v-deep .el-divider {
+    background-color: var(--drag-chart-divider, #ebeef5) !important;
+  }
+
   .toolbox {
     width: 50px;
     text-align: center;
   }
 }
+
 ::v-deep .el-divider--horizontal {
   margin: 5px 0;
   height: 2px;
 }
+
 ::v-deep .el-form--label-top .el-form-item__label {
   padding: 0;
 }

+ 26 - 12
src/views/performance/components/custonAsCom/dragChart/components/chartsContent.vue

@@ -14,9 +14,9 @@
       :unit="10"
       :scale="1"
       :precision="0"
-      :rulerColor="'#00aaff'"
-      :bgColor="'#ffffff'"
-      :cornerColor="'#333'"
+      :rulerColor="rulerColor"
+      :bgColor="rulerBgColor"
+      :cornerColor="rulerCornerColor"
       :guidelineColor="'#f00'"
       :cornerSize="10"
       :scrollLeft="0"
@@ -115,6 +115,15 @@ export default {
       currentChartList: "currentChartList",
       curChart: "curEdit",
     }),
+    rulerColor() {
+      return this.getThemeCssVar("--drag-chart-ruler-color", "#909399");
+    },
+    rulerBgColor() {
+      return this.getThemeCssVar("--drag-chart-ruler-bg", "#f5f7fa");
+    },
+    rulerCornerColor() {
+      return this.getThemeCssVar("--drag-chart-corner-color", "#606266");
+    },
   },
   mounted() {
     this.getScrollSize();
@@ -130,6 +139,12 @@ export default {
       // "recordOriginChartList",
       // "restoreOriginChartList",
     ]),
+    getThemeCssVar(name, fallback) {
+      const value = getComputedStyle(document.documentElement)
+        .getPropertyValue(name)
+        .trim();
+      return value || fallback;
+    },
     // ruler-tool 组件标尺滚动事件
     handleScroll({ scrollLeft, scrollTop }) {
       console.log("标尺滚动:", scrollLeft, scrollTop);
@@ -241,25 +256,24 @@ export default {
 </script>
 <style scoped lang="scss">
 .chartContiner {
-  //   background-color: #fff;
   flex: 1;
   height: 100%;
   width: 1800px;
   overflow: scroll;
-  ::v-deep .vue-ruler-wrapper {
-    // width: 100% !important;
-  }
+  background: var(--drag-chart-page-bg, var(--content-bg, #f0f2f5));
+
   .canvas-wrapper {
     position: relative;
     width: var(--canvasWidth);
     height: var(--canvasHeight);
-    background: #fff;
-    border-radius: 10px;
-    box-shadow: 0 0 0 10px #d6dce0;
-    outline: 10px solid #d6dce0;
-    outline-offset: 0px;
+    background: var(--drag-chart-canvas-bg, #ffffff);
+    border-radius: 4px;
+    border: 1px solid var(--drag-chart-canvas-border, #dcdfe6);
+    box-shadow: none;
+
     .info {
       opacity: 0;
+
       .icon-wrapper {
         position: absolute;
         bottom: -35px;

+ 23 - 6
src/views/performance/components/custonAsCom/dragChart/components/chartsData.vue

@@ -196,23 +196,40 @@ export default {
 <style scoped lang="scss">
 .el-tree {
   overflow: hidden !important;
+  background: transparent !important;
+  color: var(--drag-chart-text, #303133) !important;
 }
+
 .chartContiner {
-  background-color: skyblue;
   width: 300px;
   height: 100%;
+  background: var(--drag-chart-panel-bg, #ffffff);
+  color: var(--drag-chart-text, #303133);
+
   ::v-deep .card {
     height: 100%;
     border-radius: 0 !important;
-    // .el-card__body {
     overflow: scroll;
-    // }
+    background: transparent !important;
+    border: none !important;
+    box-shadow: none !important;
   }
+
+  ::v-deep .el-card__body {
+    background: transparent !important;
+    color: var(--drag-chart-text, #303133);
+  }
+
+  ::v-deep .el-tree-node__content {
+    color: var(--drag-chart-text, #303133) !important;
+  }
+
+  ::v-deep .el-tree-node__content:hover {
+    background-color: var(--drag-chart-tree-hover, #f5f7fa) !important;
+  }
+
   ::v-deep .el-radio {
     margin: 0;
-    .el-radio__label {
-      // padding: 0;
-    }
   }
 }
 </style>

+ 38 - 26
src/views/performance/components/custonAsCom/dragChart/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="chartsBox">
+  <div class="chartsBox drag-chart-page">
     <!-- 主内容区 -->
     <ChartsContent :addChartType="addChartType" :config="config" />
 
@@ -104,66 +104,78 @@ export default {
   width: 100%;
   height: 100%;
   display: flex;
-  gap: 5px; /* 控制抽屉之间的间距 */
+  gap: 5px;
   align-items: flex-start;
-  background-color: #fff;
+  background-color: var(--drag-chart-page-bg, var(--content-bg, #f0f2f5));
+  color: var(--drag-chart-text, #303133);
 }
 
-/* 每组按钮 + 抽屉的容器 */
 .drawer-box {
   display: flex;
   align-items: flex-start;
-  gap: 0px;
+  gap: 0;
   height: 100%;
   overflow: scroll;
+
   .drawer-text {
-    background-color: #eef1f3;
-    writing-mode: vertical-rl; /* 从上到下,从右到左 */
-    text-orientation: upright; /* 保证文字不倒置 */
+    background: var(--drag-chart-drawer-collapsed-bg, #f5f7fa);
+    border: 1px solid var(--drag-chart-drawer-collapsed-border, #dcdfe6);
+    color: var(--drag-chart-drawer-collapsed-text, #606266);
+    writing-mode: vertical-rl;
+    text-orientation: upright;
     height: 100%;
-    // display: inline-block; /* 必须加,否则transform无效 */
-    // transform: rotate(90deg);
-    // transform-origin: left top; /* 设置旋转基准点,可根据需求调整 */
+    padding: 12px 8px;
+    cursor: pointer;
+    transition: background-color 0.2s ease;
+
+    &:hover {
+      opacity: 0.88;
+    }
   }
 }
 
-/* 控制按钮 */
 .drawer-btn {
-  // padding: 6px 12px;
-  // background: #409eff;
-  color: #000;
+  color: var(--drag-chart-header-text, #ffffff);
+  background: transparent;
   border: none;
   border-radius: 4px;
   cursor: pointer;
+  font-size: 14px;
+  font-weight: 500;
   transition: 0.2s;
 }
-.drawer-btn:hover {
-  background: #eef1f3;
-}
 
-/* 抽屉内容区 */
 .drawer-panel {
   width: 270px;
-  background: #fff;
-  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
-  border-radius: 6px;
-  border: 1px #eef1f3 solid;
-  // padding: 10px;
+  background: var(--drag-chart-panel-bg, #ffffff);
+  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
+  border-radius: 4px;
+  border: 1px solid var(--drag-chart-panel-border, #ebeef5);
   height: 100%;
   transition: all 0.3s ease;
+  overflow: hidden;
+
   .titleBox {
     display: flex;
-    padding: 10px;
+    padding: 12px 14px;
     justify-content: space-between;
     align-items: center;
+    background: var(--drag-chart-header-bg, var(--primary-color, #82780c));
+    border-bottom: 1px solid var(--drag-chart-panel-border, #ebeef5);
+    cursor: pointer;
+
+    .el-icon-s-fold {
+      color: var(--drag-chart-header-text, #ffffff);
+      font-size: 16px;
+    }
   }
 }
 
-/* 抽屉动画 */
 .drawer-slide-enter-active,
 .drawer-slide-leave-active {
   transition: all 0.3s ease;
 }
+
 .drawer-slide-enter,
 .drawer-slide-leave-to {
   opacity: 0;

+ 33 - 8
src/views/performance/customAnalysis.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="content">
+  <div class="content custom-analysis-page">
     <el-tabs
       ref="tabs"
       tab-position="left"
@@ -660,20 +660,42 @@ export default {
 .content {
   width: 100%;
   height: 88vh;
+  background: var(--custom-analysis-bg, var(--content-bg, #f5f7fa));
+  color: var(--custom-analysis-text, #303133);
+
   ::v-deep .el-tabs__active-bar {
-    // height: 50px !important;
-    transition: transform 0.3s ease; // 添加过渡效果
+    transition: transform 0.3s ease;
+  }
+
+  ::v-deep .el-tabs--left .el-tabs__header {
+    background: var(--custom-analysis-sidebar-bg, #f5f7fa);
+    border-right: 1px solid var(--custom-analysis-border, #ebeef5);
   }
+
   ::v-deep .el-tabs--left .el-tabs__item {
     height: 55px;
     line-height: 55px;
+    color: var(--custom-analysis-tab-text, #606266) !important;
+  }
+
+  ::v-deep .el-tabs--left .el-tabs__item.is-active {
+    color: var(--custom-analysis-tab-active-text, var(--primary-color, #82780c)) !important;
+    background: var(--custom-analysis-tab-active-bg, rgba(0, 0, 0, 0.04));
   }
+
   ::v-deep .el-tabs__item {
     padding: 0;
   }
+
+  ::v-deep .el-tabs__content {
+    height: 100% !important;
+    background: var(--custom-analysis-content-bg, var(--content-bg, #f5f7fa));
+  }
+
   .popover-footer {
     text-align: right;
   }
+
   ::v-deep .iconFont {
     padding: 0 20px;
     width: 100% !important;
@@ -681,34 +703,37 @@ export default {
     display: inline-block;
   }
 
-  ::v-deep .el-tabs__content {
-    height: 100% !important;
-  }
   .chartsTab {
     width: 100%;
     height: 100%;
   }
+
   .el-tab-pane {
     height: 100%;
     overflow: scroll !important;
   }
+
   .demo-input-suffix {
     display: flex;
+
     .line {
       display: flex;
       justify-content: center;
+      color: var(--custom-analysis-text, #303133);
     }
   }
+
   .el-input--small {
-    // font-size: 13px;
     width: 190px !important;
   }
 }
+
 .uploadBoxContent {
   margin: 5px;
   display: flex;
-  flex-direction: 1;
+  flex: 1;
   align-items: center;
   cursor: pointer;
+  color: var(--custom-analysis-text, #303133);
 }
 </style>

+ 9 - 5
src/views/system/userMag/index.vue

@@ -39,7 +39,6 @@
       <div class="newly">
         <el-button
           v-hasPermi="['system:users:add']"
-   
           @click="newnuedialog"
           size="small"
           >新增</el-button
@@ -47,7 +46,6 @@
       </div>
     </div>
     <div class="list-page">
-    
       <el-table
         v-loading="loading"
         class="center-align-table"
@@ -76,7 +74,12 @@
         </el-table-column>
         <el-table-column prop="state" align="center" label="状态" width="100">
           <template slot-scope="scope">
-            <span>
+            <span
+              :class="{
+                'dt-status-on': scope.row.state == 1,
+                'dt-status-off': scope.row.state == 0 || scope.row.state == 2,
+              }"
+            >
               {{
                 scope.row.state == 0
                   ? "停用"
@@ -663,7 +666,8 @@ export default {
     margin-bottom: 25px;
   }
 }
-.condition {display: flex;
-justify-content: space-between;
+.condition {
+  display: flex;
+  justify-content: space-between;
 }
 </style>

+ 196 - 87
src/views/transition/index.vue

@@ -1,13 +1,16 @@
 <template>
-  <div class="kernel">
-    <el-collapse v-model="activeNames">
+  <div class="transition-page">
+    <el-collapse v-model="activeNames" class="transition-collapse">
       <el-collapse-item title="基础信息" name="1">
         <p @click="database" class="CPC">
-          数据入库风场统计数: <span>{{ windFarmCount }}</span
-          >个
+          数据入库风场统计数: <span>{{ windFarmCount || 0 }}</span>个
         </p>
 
-        <el-drawer title="入库统计" :visible.sync="drawer">
+        <el-drawer
+          title="入库统计"
+          :visible.sync="drawer"
+          custom-class="transition-drawer"
+        >
           <div class="card" v-for="(item, index) in Rklist" :key="index">
             <p>{{ item.windFarmName }}</p>
 
@@ -27,7 +30,12 @@
           </div>
         </el-drawer>
 
-        <el-dialog title="统计信息" :visible.sync="dialogVisible" width="50%">
+        <el-dialog
+          title="统计信息"
+          :visible.sync="dialogVisible"
+          width="50%"
+          custom-class="transition-dialog"
+        >
           <ul class="scrollable-list">
             <li v-for="(item, index) in dataset" :key="index">
               任务名称: <span>{{ item.taskName }}</span> 时间跨度:<span>{{
@@ -38,41 +46,49 @@
           </ul>
         </el-dialog>
 
-        <el-descriptions title="最新入库详情">
+        <el-descriptions
+          class="incoming-desc"
+          title="最新入库详情"
+          :column="4"
+          size="small"
+          border
+        >
           <el-descriptions-item label="任务名称">{{
-            this.incoming.taskName
+            incoming.taskName || "--"
           }}</el-descriptions-item>
           <el-descriptions-item label="数据类型">{{
-            this.incoming.transferTypeName
+            incoming.transferTypeName || "--"
           }}</el-descriptions-item>
-          <el-descriptions-item label="时间颗粒度"
-            >{{ this.incoming.timeGranularity }}(秒)</el-descriptions-item
-          >
-          <el-descriptions-item label="时间范围"
-            >{{ this.incoming.dataMinTime }}~{{
-              this.incoming.dataMaxTime
-            }}</el-descriptions-item
-          >
+          <el-descriptions-item label="时间颗粒度">
+            {{ incoming.timeGranularity ? `${incoming.timeGranularity}(秒)` : "--" }}
+          </el-descriptions-item>
+          <el-descriptions-item label="时间范围">
+            {{
+              incoming.dataMinTime && incoming.dataMaxTime
+                ? `${incoming.dataMinTime}~${incoming.dataMaxTime}`
+                : "--"
+            }}
+          </el-descriptions-item>
           <el-descriptions-item label="风场名称">{{
-            this.incoming.windFarmName
+            incoming.windFarmName || "--"
           }}</el-descriptions-item>
           <el-descriptions-item label="机组数量">{{
-            this.incoming.engineCount
+            incoming.engineCount || "--"
           }}</el-descriptions-item>
           <el-descriptions-item label="入库时间">{{
-            this.incoming.transferFinishTime
+            incoming.transferFinishTime || "--"
           }}</el-descriptions-item>
           <el-descriptions-item label="收资人">{{
-            this.incoming.dataCollector
+            incoming.dataCollector || "--"
           }}</el-descriptions-item>
         </el-descriptions>
       </el-collapse-item>
     </el-collapse>
 
     <div class="condition">
-      <p>
-        风场名称:
-        <el-select v-model="windvalue" placeholder="请选择">
+      <div class="condition-item">
+        <span class="condition-label">风场名称</span>
+        <el-select v-model="windvalue" placeholder="请选择" size="small" clearable>
           <el-option
             v-for="item in windoptions"
             :key="item.fieldCode"
@@ -81,10 +97,10 @@
           >
           </el-option>
         </el-select>
-      </p>
-      <p>
-        导入类型:
-        <el-select v-model="typevalue" placeholder="请选择">
+      </div>
+      <div class="condition-item">
+        <span class="condition-label">导入类型</span>
+        <el-select v-model="typevalue" placeholder="请选择" size="small" clearable>
           <el-option
             v-for="item in typeoptions"
             :key="item.paramKey"
@@ -93,10 +109,10 @@
           >
           </el-option>
         </el-select>
-      </p>
-      <p>
-        导入状态:
-        <el-select v-model="statevalue" placeholder="请选择">
+      </div>
+      <div class="condition-item">
+        <span class="condition-label">导入状态</span>
+        <el-select v-model="statevalue" placeholder="请选择" size="small" clearable>
           <el-option
             v-for="item in stateoptions"
             :key="item.transferStatus"
@@ -105,16 +121,21 @@
           >
           </el-option>
         </el-select>
-      </p>
+      </div>
 
-      <div>
-        <el-button @click="query">查询</el-button>
-        <el-button @click="reset">重置</el-button>
-        <el-button @click="newtransition" type="primary">新增转换</el-button>
+      <div class="condition-actions">
+        <el-button size="small" @click="query">查询</el-button>
+        <el-button size="small" @click="reset">重置</el-button>
+        <el-button size="small" @click="newtransition" type="primary">新增转换</el-button>
       </div>
     </div>
 
-    <el-dialog title="转换" :visible.sync="transitionShow" width="30%">
+    <el-dialog
+      title="转换"
+      :visible.sync="transitionShow"
+      width="30%"
+      custom-class="transition-dialog"
+    >
       <el-form ref="form" :model="form" :rules="formRules" label-width="80px">
         <el-form-item label="选择风场" prop="wind">
           <el-select v-model="form.wind" clearable placeholder="请选择风场">
@@ -156,6 +177,7 @@
         title="提交"
         :visible.sync="innerVisible"
         append-to-body
+        custom-class="transition-dialog"
       >
         <div class="renwu">
           <p>
@@ -171,7 +193,7 @@
       </el-dialog>
     </el-dialog>
 
-    <template>
+    <div class="table-section">
       <el-table :data="tableData" style="width: 100%">
         <el-table-column type="expand">
           <template slot-scope="props">
@@ -251,7 +273,7 @@
         layout="total, prev, pager, next"
         :total="total"
       ></el-pagination>
-    </template>
+    </div>
   </div>
 </template>
 
@@ -549,35 +571,108 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-.CPC {
-  border: 1px solid #008080;
-  background: #00808057;
-  display: inline-block;
-  padding: 10px;
-  color: #000000;
-  border-radius: 5px;
-  cursor: pointer;
-}
-.kernel {
-  min-height: 100vh;
+.transition-page {
+  min-height: calc(100vh - 120px);
   width: 100%;
-  background: #fff;
-  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
-  padding: 0 40px;
+  padding: 12px 16px;
+  background: var(--panel-bg, #000c17);
+  color: #ffffff;
+  box-sizing: border-box;
+
+  ::v-deep .transition-collapse {
+    border-color: var(--panel-border, rgba(0, 170, 255, 0.35)) !important;
+
+    .el-collapse-item__header {
+      height: 40px;
+      line-height: 40px;
+      padding: 0 12px;
+      font-weight: 600;
+      font-size: 15px;
+      background: linear-gradient(90deg, #001529 0%, #002a5c 100%) !important;
+      color: #ffffff !important;
+      border-bottom-color: var(--panel-border, rgba(0, 170, 255, 0.35)) !important;
+    }
 
-  h3 {
-    font-size: 40px;
-    font-weight: 600;
-    text-align: center;
+    .el-collapse-item__wrap {
+      background: transparent !important;
+      border-bottom-color: var(--panel-border, rgba(0, 170, 255, 0.35)) !important;
+    }
+
+    .el-collapse-item__content {
+      padding: 10px 12px 6px;
+      color: #ffffff;
+    }
+  }
+
+  .incoming-desc {
+    margin-top: 8px;
+
+    ::v-deep .el-descriptions__header {
+      margin-bottom: 8px;
+    }
+
+    ::v-deep .el-descriptions__title {
+      font-size: 14px;
+    }
+
+    ::v-deep .el-descriptions-item__cell {
+      padding: 6px 10px !important;
+    }
   }
 
   .condition {
     display: flex;
-    padding: 20px 0;
+    flex-wrap: wrap;
+    align-items: center;
+    gap: 12px 16px;
+    padding: 10px 0 8px;
+    margin-top: 4px;
+    border-bottom: 1px solid var(--panel-border, rgba(0, 170, 255, 0.25));
+  }
 
-    p {
-      margin-right: 20px;
-    }
+  .condition-item {
+    display: flex;
+    align-items: center;
+    gap: 8px;
+  }
+
+  .condition-label {
+    color: var(--text-cyan, #b7dff5);
+    white-space: nowrap;
+    font-size: 14px;
+  }
+
+  .condition-actions {
+    display: flex;
+    align-items: center;
+    gap: 8px;
+    margin-left: auto;
+  }
+
+  .table-section {
+    margin-top: 8px;
+  }
+}
+
+.CPC {
+  border: 1px solid rgba(0, 170, 255, 0.45);
+  background: rgba(0, 170, 255, 0.12);
+  display: inline-block;
+  padding: 6px 12px;
+  margin: 0 0 4px;
+  color: #ffffff;
+  border-radius: 4px;
+  cursor: pointer;
+  font-size: 14px;
+  line-height: 1.4;
+
+  span {
+    color: #00aaff;
+    font-weight: 600;
+  }
+
+  &:hover {
+    background: rgba(0, 170, 255, 0.22);
   }
 }
 
@@ -587,7 +682,7 @@ export default {
 
 .demo-table-expand label {
   width: 90px;
-  color: #99a9bf;
+  color: var(--text-cyan, #b7dff5);
 }
 
 .demo-table-expand .el-form-item {
@@ -596,39 +691,50 @@ export default {
   width: 50%;
 }
 
-::v-deep .el-collapse-item__header {
-  font-weight: 600;
-  font-size: 18px;
-}
-
 .fenye {
   display: flex;
   justify-content: center;
-  padding: 20px 0;
+  padding: 12px 0 4px;
 }
 .card {
-  margin: 10px 30px;
+  margin: 8px 16px;
   border-radius: 4px;
-  padding: 20px;
-  border: 1px solid #b3b3b3;
-  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
+  padding: 12px 16px;
+  border: 1px solid var(--panel-border, rgba(0, 170, 255, 0.35));
+  background: rgba(0, 16, 32, 0.6);
+  color: #ffffff;
+  box-shadow: none;
+
   p {
     font-weight: 600;
-    font-size: 16px;
+    font-size: 15px;
+    margin: 0 0 8px;
   }
+
   ul {
-    padding-left: 10px;
+    padding-left: 0;
+    margin: 0;
+    list-style: none;
+
+    li {
+      padding: 6px 8px;
+      border-radius: 4px;
+    }
+
     li:hover {
-      background: #008080;
-      color: #fff;
+      background: rgba(0, 170, 255, 0.25);
+      color: #ffffff;
       cursor: pointer;
     }
+
     span {
       display: inline-block;
     }
+
     .sp1 {
       width: 120px;
     }
+
     .sp2 {
       width: 50px;
     }
@@ -702,32 +808,35 @@ export default {
 .scrollable-list {
   height: 400px;
   overflow-y: auto;
-  /* 其他样式 */
+  color: #ffffff;
+  padding: 0;
+  margin: 0;
+  list-style: none;
 }
 
-/* 自定义滚动条 */
 .scrollable-list::-webkit-scrollbar {
-  width: 8px; /* 设置滚动条的宽度 */
+  width: 8px;
 }
 
 .scrollable-list::-webkit-scrollbar-track {
-  background: #f1f1f1; /* 设置滚动条轨道的背景颜色 */
+  background: rgba(0, 16, 32, 0.6);
   border-radius: 4px;
 }
 
 .scrollable-list::-webkit-scrollbar-thumb {
-  background: #888; /* 设置滚动条滑块的颜色 */
+  background: rgba(0, 170, 255, 0.35);
   border-radius: 4px;
 }
 
 .scrollable-list::-webkit-scrollbar-thumb:hover {
-  background: #555; /* 鼠标悬停时滑块的颜色 */
+  background: rgba(0, 170, 255, 0.55);
 }
 
-::v-deep .el-drawer__header > :first-child {
-  font-size: 18px;
-  font-weight: 800;
-  color: #000000;
+::v-deep .transition-drawer .el-drawer__header > :first-child,
+::v-deep .transition-dialog .el-dialog__title {
+  font-size: 16px;
+  font-weight: 600;
+  color: #ffffff;
 }
 
 .demo-table-expand {

+ 145 - 0
src/views/windResourceWake/components/WrwFilterBar.vue

@@ -0,0 +1,145 @@
+<template>
+  <div class="wrw-filter-bar">
+    <div class="wrw-filter-item wrw-filter-item--farm">
+      <span class="wrw-filter-label">风场:</span>
+      <selecttree
+        class="wrw-filter-selecttree"
+        size="small"
+        popper-class="wrw-tree-popper"
+        placeholder="请选择所属公司"
+        :list="parentOpt"
+        type="1"
+        v-model="localFarm"
+        @change="handleSelectChange"
+        :defaultParentProps="defaultParentProps"
+      />
+    </div>
+    <div class="wrw-filter-item">
+      <span class="wrw-filter-label">时间:</span>
+      <el-date-picker
+        v-model="localDate"
+        type="date"
+        placeholder="选择日期"
+        size="small"
+        value-format="yyyy-MM-dd"
+        class="wrw-filter-date"
+        clearable
+        popper-class="wrw-date-popper"
+      />
+    </div>
+  </div>
+</template>
+
+<script>
+import selecttree from "@/components/selecttree.vue";
+import { getSysOrganizationAuthTreeByRoleId } from "@/api/ledger.js";
+
+export default {
+  name: "WrwFilterBar",
+  components: {
+    selecttree,
+  },
+  props: {
+    farm: { type: String, default: "" },
+    date: { type: String, default: "2024-04-28" },
+  },
+  data() {
+    return {
+      localFarm: this.farm,
+      localDate: this.date,
+      parentOpt: [],
+      defaultParentProps: {
+        children: "children",
+        label: "companyName",
+        value: "codeNumber",
+      },
+    };
+  },
+  watch: {
+    farm(val) {
+      this.localFarm = val;
+    },
+    date(val) {
+      this.localDate = val;
+    },
+    localFarm(val) {
+      this.$emit("update:farm", val);
+    },
+    localDate(val) {
+      this.$emit("update:date", val);
+    },
+  },
+  created() {
+    this.loadTree();
+  },
+  methods: {
+    async loadTree() {
+      try {
+        const res = await getSysOrganizationAuthTreeByRoleId();
+        const processedData = this.processTreeData(res.data || []);
+        this.parentOpt = processedData;
+
+        const defaultData = (res.data || [])[0];
+        if (defaultData && !this.localFarm) {
+          this.$nextTick(() => {
+            this.handleSelectChange(defaultData);
+          });
+        }
+      } catch (error) {
+        console.error("加载组织树失败:", error);
+      }
+    },
+    processTreeData(treeData) {
+      const processedData = [];
+      const processNode = (node) => {
+        if (node.codeType === "field") {
+          node.companyName = node.fieldName;
+        }
+        if (node.children && node.children.length > 0) {
+          node.children.forEach(processNode);
+        }
+      };
+      treeData.forEach((root) => {
+        processNode(root);
+        processedData.push(root);
+      });
+      return processedData;
+    },
+    handleSelectChange(data) {
+      if (!data || !data.codeNumber) return;
+      this.localFarm = data.codeNumber;
+      this.$emit("update:farm", data.codeNumber);
+      this.$emit("farm-change", data);
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.wrw-filter-item--farm {
+  gap: 6px;
+}
+
+.wrw-filter-farm-icon {
+  color: #5ab3dc;
+  font-size: 14px;
+  flex-shrink: 0;
+}
+
+.wrw-filter-selecttree {
+  width: 180px;
+
+  ::v-deep .el-input__inner {
+    background: transparent !important;
+    border: none !important;
+    color: #d9efff !important;
+    padding-left: 0 !important;
+    height: 28px;
+    line-height: 28px;
+  }
+
+  ::v-deep .el-input__icon {
+    color: #5ab3dc !important;
+  }
+}
+</style>

+ 110 - 0
src/views/windResourceWake/components/WrwOverviewTab.vue

@@ -0,0 +1,110 @@
+<template>
+  <div class="wrw-overview-tab">
+    <div class="wrw-overview-section">
+      <div class="wrw-overview-section-title">A2 各机组风速分布</div>
+      <p class="wrw-overview-section-desc">各机组风速概率密度对比</p>
+      <div class="wrw-card wrw-overview-card">
+        <div ref="windDistRef" class="wrw-overview-chart"></div>
+      </div>
+    </div>
+    <div class="wrw-overview-section">
+      <div class="wrw-overview-section-title">风向玫瑰图</div>
+      <p class="wrw-overview-section-desc">
+        各机组风向与风速段分布(N 为正北)
+      </p>
+      <div class="wrw-card wrw-overview-card">
+        <div class="wrw-wind-rose-grid">
+          <div
+            v-for="(name, index) in turbineNames"
+            :key="name"
+            class="wrw-wind-rose-cell"
+          >
+            <div class="wrw-wind-rose-cell-title">{{ name }}</div>
+            <div
+              :ref="'windRoseRef' + index"
+              class="wrw-wind-rose-cell-chart"
+            ></div>
+          </div>
+        </div>
+        <div class="wrw-wind-rose-legend">
+          <span
+            v-for="(band, index) in roseSpeedBands"
+            :key="band"
+            class="wrw-wind-rose-legend-item"
+          >
+            <i :style="{ backgroundColor: roseColors[index] }"></i>
+            {{ band }}
+          </span>
+        </div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+import * as echarts from "echarts";
+import { turbineNames } from "../data/mockData";
+import {
+  getWindDistOption,
+  getSingleWindRoseOption,
+  ROSE_SPEED_BANDS,
+  ROSE_COLORS,
+} from "../utils/overviewChartOptions";
+
+export default {
+  name: "WrwOverviewTab",
+  data() {
+    return {
+      turbineNames,
+      roseSpeedBands: ROSE_SPEED_BANDS,
+      roseColors: ROSE_COLORS,
+      charts: {},
+      inited: false,
+    };
+  },
+  mounted() {
+    window.addEventListener("resize", this.handleResize);
+  },
+  beforeDestroy() {
+    window.removeEventListener("resize", this.handleResize);
+    this.disposeCharts();
+  },
+  methods: {
+    initCharts() {
+      if (this.inited) {
+        this.handleResize();
+        return;
+      }
+      this.initChart("windDist", this.$refs.windDistRef, getWindDistOption());
+      this.turbineNames.forEach((_, index) => {
+        const ref = this.$refs[`windRoseRef${index}`];
+        const el = Array.isArray(ref) ? ref[0] : ref;
+        this.initChart(`windRose${index}`, el, getSingleWindRoseOption(index));
+      });
+      this.inited = true;
+    },
+    initChart(key, el, option) {
+      if (!el) return;
+      if (this.charts[key]) {
+        this.charts[key].dispose();
+      }
+      this.charts[key] = echarts.init(el);
+      this.charts[key].setOption(option);
+    },
+    disposeCharts() {
+      Object.keys(this.charts).forEach((key) => {
+        if (this.charts[key]) {
+          this.charts[key].dispose();
+        }
+      });
+      this.charts = {};
+      this.inited = false;
+    },
+    handleResize() {
+      Object.values(this.charts).forEach((chart) => {
+        if (chart) chart.resize();
+      });
+    },
+  },
+};
+</script>

+ 83 - 0
src/views/windResourceWake/components/WrwWakeTab.vue

@@ -0,0 +1,83 @@
+<template>
+  <div class="wrw-wake-tab">
+    <div class="wrw-section-title">速度与损失分布</div>
+
+    <div class="wrw-row">
+      <div class="wrw-col wrw-card">
+        <div ref="scatter1Ref" class="wrw-chart"></div>
+      </div>
+      <div class="wrw-col wrw-card">
+        <div ref="scatter2Ref" class="wrw-chart"></div>
+      </div>
+    </div>
+
+    <div class="wrw-section-title">尾流影响评估</div>
+
+    <div class="wrw-card">
+      <div ref="barRef" class="wrw-chart wrw-chart--bar"></div>
+      <WrwWakeTable />
+    </div>
+  </div>
+</template>
+
+<script>
+import * as echarts from "echarts";
+import WrwWakeTable from "./WrwWakeTable.vue";
+import {
+  getScatter1Option,
+  getScatter2Option,
+  getBarOption,
+} from "../utils/wakeChartOptions";
+
+export default {
+  name: "WrwWakeTab",
+  components: { WrwWakeTable },
+  data() {
+    return {
+      charts: {},
+      inited: false,
+    };
+  },
+  mounted() {
+    window.addEventListener("resize", this.handleResize);
+  },
+  beforeDestroy() {
+    window.removeEventListener("resize", this.handleResize);
+    this.disposeCharts();
+  },
+  methods: {
+    initCharts() {
+      if (this.inited) {
+        this.handleResize();
+        return;
+      }
+      this.initChart("scatter1", this.$refs.scatter1Ref, getScatter1Option());
+      this.initChart("scatter2", this.$refs.scatter2Ref, getScatter2Option());
+      this.initChart("bar", this.$refs.barRef, getBarOption());
+      this.inited = true;
+    },
+    initChart(key, el, option) {
+      if (!el) return;
+      if (this.charts[key]) {
+        this.charts[key].dispose();
+      }
+      this.charts[key] = echarts.init(el);
+      this.charts[key].setOption(option);
+    },
+    disposeCharts() {
+      Object.keys(this.charts).forEach((key) => {
+        if (this.charts[key]) {
+          this.charts[key].dispose();
+        }
+      });
+      this.charts = {};
+      this.inited = false;
+    },
+    handleResize() {
+      Object.values(this.charts).forEach((chart) => {
+        if (chart) chart.resize();
+      });
+    },
+  },
+};
+</script>

+ 142 - 0
src/views/windResourceWake/components/WrwWakeTable.vue

@@ -0,0 +1,142 @@
+<template>
+  <div class="wrw-wake-table">
+    <div class="wrw-table-wrapper">
+      <table class="wrw-table">
+        <thead>
+          <tr>
+            <th>风机名称</th>
+            <th>是否受尾流影响</th>
+            <th>附加湍流强度</th>
+            <th>尾流速度损耗</th>
+            <th>置信度</th>
+            <th>图片</th>
+          </tr>
+        </thead>
+        <tbody>
+          <tr v-for="item in pageData" :key="item.name">
+            <td>{{ item.name }}</td>
+            <td>
+              <span
+                :class="
+                  item.affected === 'yes' ? 'wrw-status-yes' : 'wrw-status-no'
+                "
+              >
+                {{ item.affected === "yes" ? "是" : "否" }}
+              </span>
+            </td>
+            <td :class="getTurbulenceClass(item.turbulence)">
+              {{ item.turbulence }}
+            </td>
+            <td :class="getLossClass(item.loss)">{{ item.loss }}</td>
+            <td :class="getConfidenceClass(item.confidence)">
+              {{ item.confidence }}
+            </td>
+            <td>
+              <div class="wrw-image-container" title="点击查看大图">
+                <el-image
+                  class="wrw-table-thumb"
+                  :src="item.image"
+                  :preview-src-list="[item.image]"
+                  fit="cover"
+                >
+                  <div slot="error" class="wrw-table-thumb-error">
+                    <i class="el-icon-picture-outline"></i>
+                  </div>
+                </el-image>
+              </div>
+            </td>
+          </tr>
+        </tbody>
+      </table>
+    </div>
+
+    <div class="wrw-pagination">
+      <button type="button" :disabled="currentPage === 1" @click="goToPage(1)">
+        首页
+      </button>
+      <button type="button" :disabled="currentPage === 1" @click="prevPage">
+        上一页
+      </button>
+      <span class="wrw-page-info"
+        >第 {{ currentPage }} 页 / 共 {{ totalPages }} 页</span
+      >
+      <button
+        type="button"
+        :disabled="currentPage === totalPages"
+        @click="nextPage"
+      >
+        下一页
+      </button>
+      <button
+        type="button"
+        :disabled="currentPage === totalPages"
+        @click="goToPage(totalPages)"
+      >
+        末页
+      </button>
+      <select
+        v-model.number="pageSize"
+        class="wrw-page-size-select"
+        @change="handlePageSizeChange"
+      >
+        <option :value="3">每页3条</option>
+        <option :value="5">每页5条</option>
+        <option :value="10">每页10条</option>
+      </select>
+    </div>
+  </div>
+</template>
+
+<script>
+import {
+  tableData,
+  getTurbulenceClass,
+  getLossClass,
+  getConfidenceClass,
+} from "../data/mockData";
+
+export default {
+  name: "WrwWakeTable",
+  data() {
+    return {
+      tableData,
+      currentPage: 1,
+      pageSize: 5,
+    };
+  },
+  computed: {
+    totalPages() {
+      return Math.max(1, Math.ceil(this.tableData.length / this.pageSize));
+    },
+    pageData() {
+      const start = (this.currentPage - 1) * this.pageSize;
+      return this.tableData.slice(start, start + this.pageSize);
+    },
+  },
+  watch: {
+    pageSize() {
+      if (this.currentPage > this.totalPages) {
+        this.currentPage = this.totalPages;
+      }
+    },
+  },
+  methods: {
+    getTurbulenceClass,
+    getLossClass,
+    getConfidenceClass,
+    goToPage(page) {
+      if (page < 1 || page > this.totalPages) return;
+      this.currentPage = page;
+    },
+    prevPage() {
+      if (this.currentPage > 1) this.currentPage -= 1;
+    },
+    nextPage() {
+      if (this.currentPage < this.totalPages) this.currentPage += 1;
+    },
+    handlePageSizeChange() {
+      this.currentPage = 1;
+    },
+  },
+};
+</script>

+ 131 - 0
src/views/windResourceWake/data/mockData.js

@@ -0,0 +1,131 @@
+export const turbineNames = [
+  "JH03",
+  "JH04",
+  "JH05",
+  "JH06",
+  "JH07",
+  "JH08",
+  "JH09",
+  "JH10",
+  "JH11",
+];
+
+const wakeTableImage = require("../images/image(3).png");
+
+export const tableData = [
+  {
+    name: "风机01",
+    affected: "yes",
+    turbulence: 80,
+    loss: 2,
+    confidence: "90%",
+    image: wakeTableImage,
+  },
+  {
+    name: "风机02",
+    affected: "no",
+    turbulence: 90,
+    loss: 1,
+    confidence: "80%",
+    image: wakeTableImage,
+  },
+  {
+    name: "风机03",
+    affected: "no",
+    turbulence: 90,
+    loss: 1,
+    confidence: "80%",
+    image: wakeTableImage,
+  },
+  {
+    name: "风机04",
+    affected: "yes",
+    turbulence: 75,
+    loss: 3,
+    confidence: "85%",
+    image: wakeTableImage,
+  },
+  {
+    name: "风机05",
+    affected: "no",
+    turbulence: 45,
+    loss: 1,
+    confidence: "95%",
+    image: wakeTableImage,
+  },
+  {
+    name: "风机06",
+    affected: "yes",
+    turbulence: 68,
+    loss: 4,
+    confidence: "78%",
+    image: wakeTableImage,
+  },
+  {
+    name: "风机07",
+    affected: "no",
+    turbulence: 55,
+    loss: 1,
+    confidence: "92%",
+    image: wakeTableImage,
+  },
+  {
+    name: "风机08",
+    affected: "yes",
+    turbulence: 72,
+    loss: 3,
+    confidence: "88%",
+    image: wakeTableImage,
+  },
+  {
+    name: "风机09",
+    affected: "no",
+    turbulence: 48,
+    loss: 2,
+    confidence: "90%",
+    image: wakeTableImage,
+  },
+  {
+    name: "风机10",
+    affected: "yes",
+    turbulence: 85,
+    loss: 5,
+    confidence: "75%",
+    image: wakeTableImage,
+  },
+  {
+    name: "风机11",
+    affected: "no",
+    turbulence: 52,
+    loss: 1,
+    confidence: "94%",
+    image: wakeTableImage,
+  },
+  {
+    name: "风机12",
+    affected: "yes",
+    turbulence: 70,
+    loss: 3,
+    confidence: "86%",
+    image: wakeTableImage,
+  },
+];
+
+export function getTurbulenceClass(value) {
+  if (value >= 80) return "wrw-value-high";
+  if (value >= 60) return "wrw-value-medium";
+  return "wrw-value-low";
+}
+
+export function getLossClass(value) {
+  if (value >= 3) return "wrw-value-high";
+  if (value >= 2) return "wrw-value-medium";
+  return "wrw-value-low";
+}
+
+export function getConfidenceClass(value) {
+  const num = parseInt(value, 10);
+  if (num >= 90) return "wrw-value-high";
+  if (num >= 80) return "wrw-value-medium";
+  return "wrw-value-low";
+}

+ 166 - 0
src/views/windResourceWake/index.vue

@@ -0,0 +1,166 @@
+<template>
+  <div class="wind-resource-wake-page">
+    <WrwFilterBar
+      :farm.sync="selectedFarm"
+      :date.sync="selectedDate"
+      @farm-change="handleFarmChange"
+    />
+
+    <div class="wrw-tab-bar">
+      <button
+        v-for="tab in tabs"
+        :key="tab.key"
+        type="button"
+        class="wrw-tab-btn"
+        :class="{ active: activeTab === tab.key }"
+        @click="switchTab(tab.key)"
+      >
+        {{ tab.label }}
+      </button>
+    </div>
+
+    <WrwOverviewTab v-show="activeTab === 'overview'" ref="overviewTab" />
+    <WrwWakeTab v-show="activeTab === 'wake'" ref="wakeTab" />
+  </div>
+</template>
+
+<script>
+import WrwFilterBar from "./components/WrwFilterBar.vue";
+import WrwOverviewTab from "./components/WrwOverviewTab.vue";
+import WrwWakeTab from "./components/WrwWakeTab.vue";
+
+export default {
+  name: "WindResourceWake",
+  components: {
+    WrwFilterBar,
+    WrwOverviewTab,
+    WrwWakeTab,
+  },
+  data() {
+    return {
+      activeTab: "overview",
+      selectedFarm: "",
+      selectedDate: "2024-04-28",
+      tabs: [
+        { key: "overview", label: "资源概览" },
+        { key: "wake", label: "尾流情况" },
+      ],
+    };
+  },
+  mounted() {
+    this.$nextTick(() => {
+      this.initActiveTabCharts();
+      window.dispatchEvent(new Event("resize"));
+    });
+  },
+  methods: {
+    switchTab(tabKey) {
+      this.activeTab = tabKey;
+      this.$nextTick(() => {
+        this.initActiveTabCharts();
+      });
+    },
+    initActiveTabCharts() {
+      if (this.activeTab === "overview" && this.$refs.overviewTab) {
+        this.$refs.overviewTab.initCharts();
+      }
+      if (this.activeTab === "wake" && this.$refs.wakeTab) {
+        this.$refs.wakeTab.initCharts();
+      }
+    },
+    handleFarmChange(data) {
+      if (!data || !data.codeNumber) return;
+      // TODO: 切换风场/组织后刷新尾流分析数据
+      console.log("当前选中:", data.companyName || data.fieldName, data);
+    },
+  },
+};
+</script>
+
+<style lang="scss">
+@import "./styles/windResourceWake.scss";
+
+.wind-resource-wake-page {
+  .wrw-filter-date {
+    .el-input__prefix {
+      display: none !important;
+    }
+
+    .el-input__inner {
+      background: transparent !important;
+      border: none !important;
+      color: #d9efff !important;
+      padding-left: 0 !important;
+      padding-right: 28px !important;
+    }
+
+    .el-input__suffix,
+    .el-input__icon {
+      color: #5ab3dc !important;
+    }
+  }
+
+  .wrw-filter-selecttree {
+    .el-input__inner {
+      background: transparent !important;
+      border: none !important;
+      color: #d9efff !important;
+      padding-left: 0 !important;
+      padding-right: 28px !important;
+    }
+
+    .el-input__suffix,
+    .el-input__icon {
+      color: #5ab3dc !important;
+    }
+  }
+}
+
+.wrw-tree-popper.selecttree-popper {
+  background: #0d1930 !important;
+  border: 1px solid rgba(0, 242, 255, 0.25) !important;
+
+  .popper__arrow::after {
+    border-bottom-color: #0d1930 !important;
+  }
+
+  .el-select-dropdown__item.hasTree {
+    background: #0d1930 !important;
+
+    &.hover,
+    &:hover,
+    &.selected {
+      background: #0d1930 !important;
+    }
+  }
+
+  .el-tree {
+    background: transparent !important;
+    color: #b7dff5 !important;
+  }
+
+  .el-tree-node__label {
+    color: #b7dff5 !important;
+  }
+
+  .el-tree-node__content:hover {
+    background: rgba(0, 170, 255, 0.15) !important;
+  }
+
+  .el-tree-node__content:hover .el-tree-node__label {
+    color: #ffffff !important;
+  }
+
+  .el-tree-node.is-current > .el-tree-node__content,
+  .el-tree--highlight-current
+    .el-tree-node.is-current
+    > .el-tree-node__content {
+    background: #1890ff !important;
+    color: #ffffff !important;
+  }
+
+  .el-tree-node.is-current > .el-tree-node__content .el-tree-node__label {
+    color: #ffffff !important;
+  }
+}
+</style>

+ 455 - 0
src/views/windResourceWake/styles/windResourceWake.scss

@@ -0,0 +1,455 @@
+.wind-resource-wake-page {
+  height: 100%;
+  min-height: 0;
+  overflow-y: auto;
+  overflow-x: hidden;
+  padding: 20px;
+  box-sizing: border-box;
+  background: var(--content-bg, #f5f7fa);
+  color: var(--text-cyan, #303133);
+  font-family: "Microsoft YaHei", system-ui, sans-serif;
+
+  *,
+  *::before,
+  *::after {
+    box-sizing: border-box;
+  }
+}
+
+html[data-theme="tech-blue"] .wind-resource-wake-page {
+  background: radial-gradient(circle at 20% 20%, #0f2a44, #050b16);
+  color: #e6f1ff;
+}
+
+.wrw-filter-bar {
+  background: rgba(4, 28, 51, 0.95);
+  border-radius: 12px;
+  border: 1px solid rgba(90, 179, 220, 0.35);
+  padding: 0 15px;
+  display: flex;
+  align-items: center;
+  gap: 20px;
+  height: 52px;
+  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
+}
+
+.wrw-filter-item {
+  display: flex;
+  align-items: center;
+  gap: 10px;
+  padding: 0 20px;
+  height: 36px;
+  border-radius: 6px;
+  border: 1px solid rgba(90, 179, 220, 0.35);
+  background: rgba(6, 34, 59, 0.84);
+}
+
+.wrw-filter-label {
+  color: #9bc8e2;
+  font-size: 13px;
+  white-space: nowrap;
+}
+
+.wrw-filter-select,
+.wrw-filter-date {
+  width: 160px;
+}
+
+.wrw-tab-bar {
+  display: flex;
+  gap: 12px;
+  margin: 16px 0 8px;
+}
+
+.wrw-tab-btn {
+  padding: 8px 18px;
+  border-radius: 20px;
+  border: 1px solid rgba(111, 239, 252, 0.3);
+  background: rgba(6, 34, 59, 0.65);
+  color: #9bc8e2;
+  font-size: 13px;
+  cursor: pointer;
+  transition: all 0.25s ease;
+}
+
+.wrw-tab-btn:hover {
+  border-color: rgba(111, 239, 252, 0.5);
+  color: #d9efff;
+}
+
+.wrw-tab-btn.active {
+  color: #e6f1ff;
+  border-color: rgba(111, 239, 252, 0.45);
+  background: linear-gradient(
+    180deg,
+    rgba(111, 239, 252, 0.18),
+    rgba(90, 179, 220, 0.08)
+  );
+}
+
+.wrw-section-title {
+  margin: 20px 0 10px;
+  padding-left: 10px;
+  border-left: 4px solid #6feffc;
+  color: #b7dff5;
+  font-size: 14px;
+  font-weight: 600;
+}
+
+.wrw-card {
+  background: linear-gradient(145deg, #0f1b2d, #0b1424);
+  border-radius: 16px;
+  border: 1px solid rgba(111, 239, 252, 0.15);
+  box-shadow: 0 0 20px rgba(111, 239, 252, 0.1);
+  padding: 15px;
+}
+
+.wrw-row {
+  display: flex;
+  gap: 20px;
+  flex-wrap: wrap;
+}
+
+.wrw-col {
+  flex: 1;
+  min-width: 320px;
+}
+
+.wrw-chart {
+  height: 300px;
+  width: 100%;
+}
+
+.wrw-chart--bar {
+  height: 350px;
+}
+
+.wrw-overview-section {
+  margin-top: 18px;
+}
+
+.wrw-overview-section:first-child {
+  margin-top: 8px;
+}
+
+.wrw-overview-section-title {
+  margin: 0 0 10px 4px;
+  padding-left: 10px;
+  border-left: 3px solid #6feffc;
+  color: #b7dff5;
+  font-size: 14px;
+  font-weight: 600;
+  letter-spacing: 0.5px;
+}
+
+.wrw-overview-section-desc {
+  margin: -6px 0 10px 14px;
+  color: #6a8299;
+  font-size: 11px;
+}
+
+.wrw-overview-card {
+  padding: 12px 12px 8px;
+  overflow: hidden;
+  background: linear-gradient(
+    160deg,
+    rgba(15, 27, 45, 0.95),
+    rgba(8, 18, 32, 0.98)
+  );
+  border: 1px solid rgba(111, 239, 252, 0.12);
+  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
+}
+
+.wrw-overview-chart {
+  width: 100%;
+  height: 400px;
+}
+
+.wrw-overview-chart-large {
+  height: 920px;
+  padding-bottom: 4px;
+}
+
+.wrw-wind-rose-grid {
+  display: grid;
+  grid-template-columns: repeat(3, minmax(0, 1fr));
+  gap: 12px 16px;
+}
+
+.wrw-wind-rose-cell {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  min-width: 0;
+}
+
+.wrw-wind-rose-cell-title {
+  margin-bottom: 6px;
+  padding: 3px 12px;
+  border-radius: 10px;
+  background: rgba(111, 239, 252, 0.12);
+  color: #e6f1ff;
+  font-size: 11px;
+  font-weight: 600;
+  line-height: 1.4;
+  text-align: center;
+}
+
+.wrw-wind-rose-cell-chart {
+  width: 100%;
+  height: 260px;
+}
+
+.wrw-wind-rose-legend {
+  display: flex;
+  flex-wrap: wrap;
+  justify-content: center;
+  gap: 12px 20px;
+  margin-top: 8px;
+  padding: 8px 12px 4px;
+}
+
+.wrw-wind-rose-legend-item {
+  display: inline-flex;
+  align-items: center;
+  gap: 6px;
+  color: #8fa3c8;
+  font-size: 11px;
+
+  i {
+    display: inline-block;
+    width: 22px;
+    height: 10px;
+    border-radius: 2px;
+  }
+}
+
+.wrw-table-wrapper {
+  overflow-x: auto;
+  border-radius: 8px;
+  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
+  margin-top: 20px;
+}
+
+.wrw-table {
+  width: 100%;
+  border-collapse: separate;
+  border-spacing: 0;
+  background: rgba(6, 34, 59, 0.4);
+  border-radius: 8px;
+  overflow: hidden;
+}
+
+.wrw-table thead {
+  background: linear-gradient(
+    180deg,
+    rgba(111, 239, 252, 0.15),
+    rgba(90, 179, 220, 0.1)
+  );
+}
+
+.wrw-table th {
+  color: #6feffc;
+  font-weight: 600;
+  font-size: 13px;
+  padding: 14px 12px;
+  text-align: center;
+  border-bottom: 2px solid rgba(111, 239, 252, 0.3);
+  letter-spacing: 0.5px;
+  position: relative;
+}
+
+.wrw-table th::after {
+  content: "";
+  position: absolute;
+  bottom: -2px;
+  left: 0;
+  right: 0;
+  height: 2px;
+  background: linear-gradient(
+    90deg,
+    transparent,
+    rgba(111, 239, 252, 0.6),
+    transparent
+  );
+}
+
+.wrw-table tbody tr {
+  transition: all 0.3s ease;
+}
+
+.wrw-table tbody tr:hover {
+  background: rgba(111, 239, 252, 0.08);
+}
+
+.wrw-table td {
+  padding: 12px;
+  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
+  text-align: center;
+  color: #e6f1ff;
+  font-size: 13px;
+}
+
+.wrw-table tbody tr:last-child td {
+  border-bottom: none;
+}
+
+.wrw-table tbody tr td:first-child {
+  border-left: 2px solid transparent;
+  transition: border-color 0.3s ease;
+}
+
+.wrw-table tbody tr:hover td:first-child {
+  border-left-color: #6feffc;
+}
+
+.wrw-status-yes {
+  display: inline-block;
+  padding: 4px 12px;
+  border-radius: 12px;
+  background: rgba(76, 175, 80, 0.2);
+  color: #4caf50;
+  font-weight: 500;
+  font-size: 12px;
+  border: 1px solid rgba(76, 175, 80, 0.3);
+}
+
+.wrw-status-no {
+  display: inline-block;
+  padding: 4px 12px;
+  border-radius: 12px;
+  background: rgba(255, 152, 0, 0.15);
+  color: #ff9800;
+  font-weight: 500;
+  font-size: 12px;
+  border: 1px solid rgba(255, 152, 0, 0.3);
+}
+
+.wrw-value-high {
+  color: #ff5252;
+  font-weight: 600;
+}
+
+.wrw-value-medium {
+  color: #ff9800;
+  font-weight: 600;
+}
+
+.wrw-value-low {
+  color: #4caf50;
+  font-weight: 600;
+}
+
+.wrw-image-container {
+  display: inline-block;
+  padding: 4px;
+  border: 1px solid rgba(111, 239, 252, 0.2);
+  border-radius: 6px;
+  background: rgba(6, 34, 59, 0.6);
+  transition: all 0.3s ease;
+  cursor: pointer;
+}
+
+.wrw-image-container:hover {
+  border-color: #6feffc;
+  box-shadow: 0 0 12px rgba(111, 239, 252, 0.3);
+  transform: scale(1.1);
+}
+
+.wrw-image-container img,
+.wrw-table-thumb {
+  width: 45px;
+  height: 45px;
+  border-radius: 4px;
+  display: block;
+}
+
+.wrw-table-thumb-error {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  width: 45px;
+  height: 45px;
+  border-radius: 4px;
+  background: rgba(6, 34, 59, 0.8);
+  color: #6a8299;
+  font-size: 18px;
+}
+
+.wrw-pagination {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  gap: 8px;
+  margin-top: 16px;
+  padding: 12px;
+  background: rgba(6, 34, 59, 0.4);
+  border-radius: 8px;
+  border: 1px solid rgba(111, 239, 252, 0.15);
+}
+
+.wrw-pagination button {
+  min-width: 36px;
+  height: 36px;
+  padding: 0 12px;
+  border: none;
+  border-radius: 6px;
+  background: rgba(111, 239, 252, 0.1);
+  color: #8fa3c8;
+  font-size: 13px;
+  cursor: pointer;
+  transition: all 0.3s ease;
+}
+
+.wrw-pagination button:hover:not(:disabled) {
+  background: rgba(111, 239, 252, 0.25);
+  color: #6feffc;
+}
+
+.wrw-pagination button:disabled {
+  opacity: 0.4;
+  cursor: not-allowed;
+}
+
+.wrw-page-info {
+  color: #8fa3c8;
+  font-size: 12px;
+  padding: 0 8px;
+}
+
+.wrw-page-size-select {
+  background: rgba(6, 34, 59, 0.8);
+  border: 1px solid rgba(111, 239, 252, 0.2);
+  border-radius: 4px;
+  color: #e6f1ff;
+  padding: 6px 10px;
+  font-size: 12px;
+  cursor: pointer;
+  outline: none;
+  margin-left: 8px;
+}
+
+.wrw-table-wrapper::-webkit-scrollbar {
+  width: 6px;
+  height: 6px;
+}
+
+.wrw-table-wrapper::-webkit-scrollbar-track {
+  background: rgba(6, 34, 59, 0.3);
+  border-radius: 3px;
+}
+
+.wrw-table-wrapper::-webkit-scrollbar-thumb {
+  background: rgba(111, 239, 252, 0.4);
+  border-radius: 3px;
+}
+
+@media (max-width: 900px) {
+  .wrw-wind-rose-grid {
+    grid-template-columns: repeat(2, minmax(0, 1fr));
+  }
+
+  .wrw-wind-rose-cell-chart {
+    height: 220px;
+  }
+}

+ 320 - 0
src/views/windResourceWake/utils/overviewChartOptions.js

@@ -0,0 +1,320 @@
+import { turbineNames } from "../data/mockData";
+
+const overviewTheme = {
+  title: "#b7dff5",
+  text: "#8FA3C8",
+  axis: "rgba(111, 239, 252, 0.35)",
+  split: "rgba(255, 255, 255, 0.07)",
+  polarSplit: "rgba(111, 239, 252, 0.1)",
+  tooltipBg: "rgba(6, 22, 42, 0.96)",
+  tooltipBorder: "rgba(111, 239, 252, 0.4)",
+};
+
+const overviewTooltip = {
+  backgroundColor: overviewTheme.tooltipBg,
+  borderColor: overviewTheme.tooltipBorder,
+  borderWidth: 1,
+  padding: [10, 14],
+  textStyle: { color: "#e6f1ff", fontSize: 12 },
+  extraCssText:
+    "box-shadow: 0 8px 24px rgba(0,0,0,0.45); border-radius: 8px;",
+};
+
+const colorList = [
+  "#6feffc",
+  "#4D8BFF",
+  "#E85D5D",
+  "#66BB6A",
+  "#E8966A",
+  "#C0A882",
+  "#9a7ce6",
+  "#8FA3C8",
+  "#D4B86A",
+];
+
+function buildDistSeries() {
+  const speedBins = Array.from({ length: 52 }, (_, i) =>
+    Number((i * 0.5).toFixed(1))
+  );
+  const baseDist = speedBins.map((x) => {
+    const narrowPeak = 0.135 * Math.exp(-Math.pow((x - 3.15) / 0.34, 2));
+    const shoulder = 0.115 * Math.exp(-Math.pow((x - 5.5) / 2.35, 2));
+    const lowWind = 0.035 * Math.exp(-Math.pow((x - 1.7) / 0.72, 2));
+    const tail = x > 7 ? 0.022 * Math.exp(-(x - 7) / 1.9) : 0;
+    return Number(
+      Math.min(0.24, narrowPeak + shoulder + lowWind + tail).toFixed(4)
+    );
+  });
+
+  return turbineNames.map((name, idx) => {
+    const peakLift = [0.012, 0.006, 0.032, -0.005, 0.0, 0.018, 0.006, 0.012, -0.008][idx];
+    const scale = 0.92 + idx * 0.018;
+    const data = speedBins.map((x, i) => {
+      const localPeak = Math.abs(x - 3.1) < 0.35 ? peakLift : 0;
+      const phase = Math.sin((i + idx) * 0.7) * 0.003;
+      return [
+        x,
+        Number(
+          Math.max(0, baseDist[i] * scale + localPeak + phase).toFixed(4)
+        ),
+      ];
+    });
+    return {
+      name,
+      type: "line",
+      step: "middle",
+      symbol: "none",
+      lineStyle: {
+        width: idx === 8 ? 2.2 : 1.8,
+        color: colorList[idx],
+        cap: "round",
+        join: "round",
+      },
+      emphasis: {
+        focus: "series",
+        lineStyle: {
+          width: 2.8,
+          shadowBlur: 12,
+          shadowColor: `${colorList[idx]}66`,
+        },
+      },
+      blur: { lineStyle: { opacity: 0.2 } },
+      data,
+    };
+  });
+}
+
+export function getWindDistOption() {
+  return {
+    animationDuration: 800,
+    animationEasing: "cubicOut",
+    color: colorList,
+    legend: {
+      type: "scroll",
+      bottom: 8,
+      left: "center",
+      orient: "horizontal",
+      itemWidth: 18,
+      itemHeight: 8,
+      itemGap: 16,
+      pageIconColor: overviewTheme.text,
+      pageTextStyle: { color: overviewTheme.text },
+      textStyle: { color: overviewTheme.text, fontSize: 11 },
+    },
+    tooltip: {
+      ...overviewTooltip,
+      trigger: "axis",
+      axisPointer: {
+        type: "cross",
+        crossStyle: { color: "rgba(111, 239, 252, 0.5)" },
+        lineStyle: {
+          color: "rgba(111, 239, 252, 0.35)",
+          type: "dashed",
+        },
+        label: {
+          backgroundColor: overviewTheme.tooltipBg,
+          borderColor: overviewTheme.tooltipBorder,
+          color: overviewTheme.text,
+        },
+      },
+    },
+    grid: {
+      left: 56,
+      right: 24,
+      top: 28,
+      bottom: 72,
+      show: true,
+      borderColor: "rgba(111, 239, 252, 0.12)",
+      backgroundColor: "rgba(6, 28, 48, 0.4)",
+    },
+    xAxis: {
+      type: "value",
+      min: 0,
+      max: 25,
+      interval: 5,
+      name: "风速 (m/s)",
+      nameLocation: "middle",
+      nameGap: 32,
+      nameTextStyle: { color: overviewTheme.text, fontSize: 12 },
+      axisLine: { lineStyle: { color: overviewTheme.axis } },
+      axisTick: { show: true, lineStyle: { color: overviewTheme.axis } },
+      axisLabel: { color: overviewTheme.text, fontSize: 10 },
+      splitLine: {
+        lineStyle: { color: overviewTheme.split, type: "dashed" },
+      },
+    },
+    yAxis: {
+      type: "value",
+      name: "概率密度",
+      nameTextStyle: { color: overviewTheme.text, fontSize: 12 },
+      min: 0,
+      max: 0.24,
+      interval: 0.05,
+      axisLine: { show: true, lineStyle: { color: overviewTheme.axis } },
+      axisTick: { show: true, lineStyle: { color: overviewTheme.axis } },
+      axisLabel: {
+        color: overviewTheme.text,
+        fontSize: 10,
+        formatter: "{value}",
+      },
+      splitLine: {
+        lineStyle: { color: overviewTheme.split, type: "dashed" },
+      },
+    },
+    series: buildDistSeries(),
+  };
+}
+
+const ROSE_DIRECTIONS = [
+  "N",
+  "",
+  "NE",
+  "",
+  "E",
+  "",
+  "SE",
+  "",
+  "S",
+  "",
+  "SW",
+  "",
+  "W",
+  "",
+  "NW",
+  "",
+];
+
+export const ROSE_SPEED_BANDS = [
+  "0~3 m/s",
+  "3~6 m/s",
+  "6~9 m/s",
+  "9~12 m/s",
+  ">12 m/s",
+];
+
+export const ROSE_COLORS = [
+  "#4A72B0",
+  "#92C1E9",
+  "#FFDF92",
+  "#F58D66",
+  "#E86B45",
+];
+
+const ROSE_PREFERRED_DIR = [2, 2, 2, 2, 4, 12, 2, 2, 2];
+
+function buildRoseBandData(turbineIndex, bandIdx) {
+  const dirPeak = ROSE_PREFERRED_DIR[turbineIndex];
+  const base =
+    bandIdx === 0
+      ? 2.35
+      : bandIdx === 1
+      ? 2.05
+      : bandIdx === 2
+      ? 1.55
+      : bandIdx === 3
+      ? 0.78
+      : 0.26;
+
+  return ROSE_DIRECTIONS.map((_, dIdx) => {
+    const distance = Math.min(
+      Math.abs(dIdx - dirPeak),
+      16 - Math.abs(dIdx - dirPeak)
+    );
+    const radial = Math.max(0, 1 - distance / 6);
+    const jitter =
+      (((dIdx + turbineIndex * 3 + bandIdx * 5) % 7) - 3) * 0.06;
+    const sectorBoost = dIdx === dirPeak ? 0.8 + (turbineIndex % 3) * 0.25 : 0;
+    return Number(
+      Math.max(0.05, base + radial * base * 1.85 + sectorBoost + jitter).toFixed(
+        2
+      )
+    );
+  });
+}
+
+export function getSingleWindRoseOption(turbineIndex) {
+  const series = ROSE_SPEED_BANDS.map((band, bandIdx) => ({
+    name: band,
+    type: "bar",
+    coordinateSystem: "polar",
+    stack: "wind",
+    barWidth: "78%",
+    itemStyle: {
+      color: ROSE_COLORS[bandIdx],
+      opacity: 0.96,
+      borderColor: "rgba(255, 255, 255, 0.32)",
+      borderWidth: 0.4,
+      shadowBlur: 2,
+      shadowColor: "rgba(0, 0, 0, 0.2)",
+    },
+    emphasis: {
+      focus: "self",
+      itemStyle: {
+        opacity: 1,
+        shadowBlur: 10,
+        shadowColor: "rgba(146, 193, 233, 0.5)",
+      },
+    },
+    data: buildRoseBandData(turbineIndex, bandIdx),
+  }));
+
+  return {
+    animationDuration: 600,
+    animationEasing: "cubicOut",
+    color: ROSE_COLORS,
+    polar: {
+      center: ["50%", "54%"],
+      radius: "72%",
+    },
+    angleAxis: {
+      type: "category",
+      data: ROSE_DIRECTIONS,
+      boundaryGap: false,
+      clockwise: true,
+      startAngle: 90,
+      axisLine: { lineStyle: { color: overviewTheme.axis } },
+      axisTick: { show: false },
+      axisLabel: {
+        color: overviewTheme.text,
+        fontSize: 9,
+        interval: 0,
+        margin: 4,
+        formatter: (v) => v || "",
+      },
+      splitLine: {
+        show: true,
+        lineStyle: { color: overviewTheme.polarSplit },
+      },
+    },
+    radiusAxis: {
+      min: 0,
+      max: 14,
+      interval: 3.5,
+      axisLabel: {
+        color: overviewTheme.text,
+        fontSize: 8,
+        showMinLabel: false,
+      },
+      axisLine: { show: false },
+      axisTick: { show: false },
+      splitLine: {
+        lineStyle: { color: overviewTheme.polarSplit, type: "dashed" },
+      },
+      splitArea: {
+        show: true,
+        areaStyle: {
+          color: ["rgba(111, 239, 252, 0.04)", "transparent"],
+        },
+      },
+    },
+    tooltip: {
+      ...overviewTooltip,
+      trigger: "item",
+      formatter: (p) => {
+        const dir = p.name || "—";
+        return `${p.marker}${p.seriesName}<br/>方向 ${dir} · 频次 ${p.value}`;
+      },
+    },
+    series,
+  };
+}

+ 274 - 0
src/views/windResourceWake/utils/wakeChartOptions.js

@@ -0,0 +1,274 @@
+const scatterData = [
+  { name: "L9Xcm4u0", value: [333330, 4173350, 7.8] },
+  { name: "o23d6LBB", value: [333320, 4173300, 7.5] },
+  { name: "0DdPWnck", value: [333310, 4173380, 4.8] },
+  { name: "CZbp7no4", value: [333290, 4174350, 8.1] },
+  { name: "4dCWnzLK", value: [333300, 4174380, 2.5] },
+  { name: "3dORuyAV", value: [333240, 4173720, 3.4] },
+  { name: "SPlyMKa9", value: [333270, 4173320, 4.5] },
+  { name: "86n2qgiM", value: [333230, 4172950, 4.5] },
+  { name: "BCKL9lkw", value: [333420, 4173200, 34.6] },
+  { name: "qAqnO0YH", value: [333280, 4172580, 0.2] },
+  { name: "I7EJ4nPt", value: [333360, 4173450, 59.6] },
+  { name: "RQov6gm3", value: [333315, 4172900, 4.1] },
+  { name: "7xKAWgZW", value: [333410, 4172980, 84.7] },
+  { name: "olFRqfSf", value: [333400, 4173380, 12.8] },
+  { name: "NSfopOW3", value: [333370, 4173750, 2.4] },
+  { name: "3jyH154U", value: [333270, 4172520, 0.4] },
+];
+
+const scatter2Data = [
+  { name: "L9Xcm4u0", value: [7.8, 92], itemStyle: { color: "#C0C0C0" } },
+  { name: "o23d6LBB", value: [7.5, 78], itemStyle: { color: "#D4C4B0" } },
+  { name: "0DdPWnck", value: [4.8, 85], itemStyle: { color: "#B0B0B0" } },
+  { name: "CZbp7no4", value: [8.1, 88], itemStyle: { color: "#A0A0A0" } },
+  { name: "4dCWnzLK", value: [2.5, 79], itemStyle: { color: "#C8C8C8" } },
+  { name: "3dORuyAV", value: [3.4, 95], itemStyle: { color: "#4CAF50" } },
+  { name: "SPlyMKa9", value: [4.5, 79], itemStyle: { color: "#C0C0C0" } },
+  { name: "86n2qgiM", value: [4.5, 91], itemStyle: { color: "#66BB6A" } },
+  { name: "BCKL9lkw", value: [34.6, 78], itemStyle: { color: "#D4C4B0" } },
+  { name: "qAqnO0YH", value: [0.2, 93], itemStyle: { color: "#4CAF50" } },
+  { name: "I7EJ4nPt", value: [59.6, 82], itemStyle: { color: "#CD853F" } },
+  { name: "RQov6gm3", value: [4.1, 94], itemStyle: { color: "#4CAF50" } },
+  { name: "7xKAWgZW", value: [84.7, 87], itemStyle: { color: "#E85D5D" } },
+  { name: "olFRqfSf", value: [12.8, 88], itemStyle: { color: "#66BB6A" } },
+  { name: "NSfopOW3", value: [2.4, 92], itemStyle: { color: "#4CAF50" } },
+  { name: "3jyH154U", value: [0.4, 67], itemStyle: { color: "#E85D5D" } },
+];
+
+const barCategories = scatterData.map((item) => item.name);
+const lossData = scatterData.map((item) => item.value[2]);
+const delData = [
+  50.8, 54.6, 19.9, 17.2, 6.6, 20.7, 36.9, 24.6, 72.9, 3.5, 348.4, 13.5, 324.4,
+  14.1, 34.9, 3.6,
+];
+
+export function getScatter1Option() {
+  return {
+    backgroundColor: "transparent",
+    title: {
+      text: "风电场布局与机组日尺度发电量损失图(2025-10-24)",
+      left: "center",
+      top: 10,
+      textStyle: { color: "#8FA3C8", fontSize: 14, fontWeight: "bold" },
+    },
+    tooltip: {
+      formatter(params) {
+        const val = params.value || params.data;
+        return `${params.name}<br/>损失: ${Array.isArray(val) ? val[2] : val}%`;
+      },
+    },
+    grid: { left: "12%", right: "15%", bottom: "13%", top: "15%" },
+    xAxis: {
+      name: "东西方向坐标(米)",
+      nameTextStyle: { color: "#8FA3C8", fontSize: 12, padding: [10, 0, 0, 0] },
+      nameLocation: "middle",
+      min: 333200,
+      max: 333450,
+      axisLabel: {
+        color: "#8FA3C8",
+        formatter(value) {
+          return (value / 1000000).toFixed(4);
+        },
+      },
+      axisLine: { lineStyle: { color: "rgba(111, 239, 252, 0.3)" } },
+      axisTick: { show: true },
+      splitLine: { lineStyle: { color: "rgba(255, 255, 255, 0.05)" } },
+    },
+    yAxis: {
+      name: "南北方向坐标(米)",
+      nameTextStyle: { color: "#8FA3C8", fontSize: 12, padding: [-50, 0, 35, 0] },
+      nameLocation: "middle",
+      min: 4172500,
+      max: 4174000,
+      axisLabel: {
+        color: "#8FA3C8",
+        formatter(value) {
+          return (value / 1000000).toFixed(4);
+        },
+      },
+      axisLine: { lineStyle: { color: "rgba(111, 239, 252, 0.3)" } },
+      axisTick: { show: true },
+      splitLine: { lineStyle: { color: "rgba(255, 255, 255, 0.05)" } },
+    },
+    visualMap: {
+      type: "continuous",
+      orient: "vertical",
+      right: 0,
+      top: "center",
+      min: 0,
+      max: 85,
+      inRange: {
+        color: ["#E8DFD9", "#DCB699", "#E8966A", "#DC4E4E", "#B82E2E"],
+      },
+      textStyle: { color: "#8FA3C8", fontSize: 11 },
+      text: ["发电量损失(%)", "0%"],
+      calculable: true,
+      dimension: 2,
+      itemWidth: 15,
+    },
+    series: [
+      {
+        type: "scatter",
+        symbolSize: 20,
+        label: {
+          show: true,
+          position: "top",
+          color: "#8FA3C8",
+          fontSize: 9,
+          formatter: "{b}",
+        },
+        data: scatterData,
+        itemStyle: { borderColor: "#999", borderWidth: 1 },
+      },
+    ],
+  };
+}
+
+export function getScatter2Option() {
+  return {
+    title: {
+      text: "日尺度损失与可信度散点图(2025-10-24)",
+      left: "center",
+      top: 10,
+      textStyle: { color: "#8FA3C8", fontSize: 14 },
+    },
+    grid: { left: "8%", right: "8%", bottom: "13%", top: "15%" },
+    xAxis: {
+      name: "发电量损失(%)",
+      nameTextStyle: { color: "#8FA3C8", fontSize: 12, padding: [10, 0, 0, 0] },
+      nameLocation: "middle",
+      min: 0,
+      max: 90,
+      axisLabel: { color: "#8FA3C8" },
+      splitLine: { lineStyle: { color: "rgba(255,255,255,0.05)" } },
+      axisLine: { lineStyle: { color: "rgba(255,255,255,0.2)" } },
+    },
+    yAxis: {
+      name: "结果可信度(%)",
+      nameTextStyle: { color: "#8FA3C8", fontSize: 12 },
+      min: 65,
+      max: 98,
+      axisLabel: { color: "#8FA3C8" },
+      splitLine: { lineStyle: { color: "rgba(255,255,255,0.05)" } },
+      axisLine: { lineStyle: { color: "rgba(255,255,255,0.2)" } },
+    },
+    graphic: [
+      {
+        type: "text",
+        left: "70%",
+        top: "25%",
+        style: {
+          text: "高损失 高可信度",
+          fill: "#4CAF50",
+          fontSize: 14,
+          fontWeight: "bold",
+        },
+      },
+      {
+        type: "text",
+        left: "65%",
+        top: "75%",
+        style: {
+          text: "高损失 低可信度",
+          fill: "#E85D5D",
+          fontSize: 14,
+          fontWeight: "bold",
+        },
+      },
+    ],
+    series: [
+      {
+        type: "scatter",
+        symbolSize: 15,
+        label: {
+          show: true,
+          position: "top",
+          color: "#8FA3C8",
+          fontSize: 10,
+          formatter: "{b}",
+        },
+        data: scatter2Data,
+        itemStyle: { shadowBlur: 8, shadowColor: "rgba(0, 0, 0, 0.3)" },
+      },
+    ],
+  };
+}
+
+export function getBarOption() {
+  return {
+    title: {
+      text: "各机组日尺度发电量损失与相对DEL指标(2025-10-24)",
+      left: "center",
+      top: 10,
+      textStyle: { color: "#8FA3C8", fontSize: 16, fontWeight: "bold" },
+    },
+    legend: {
+      data: ["发电量损失(%)", "相对DEL指标(%)"],
+      top: 40,
+      textStyle: { color: "#8FA3C8" },
+    },
+    grid: {
+      left: "3%",
+      right: "4%",
+      bottom: "15%",
+      top: "20%",
+      containLabel: true,
+    },
+    xAxis: {
+      type: "category",
+      data: barCategories,
+      axisLabel: { color: "#8FA3C8", rotate: 45, fontSize: 10 },
+      axisLine: { lineStyle: { color: "rgba(255,255,255,0.2)" } },
+    },
+    yAxis: [
+      {
+        type: "value",
+        name: "发电量损失(%)",
+        nameTextStyle: { color: "#E85D5D", fontSize: 12 },
+        min: 0,
+        max: 100,
+        axisLabel: { color: "#E85D5D", formatter: "{value}%" },
+        splitLine: { lineStyle: { color: "rgba(255,255,255,0.05)" } },
+      },
+      {
+        type: "value",
+        name: "相对DEL指标(%)",
+        nameTextStyle: { color: "#4D8BFF", fontSize: 12 },
+        min: 0,
+        max: 400,
+        axisLabel: { color: "#4D8BFF", formatter: "{value}%" },
+        splitLine: { show: false },
+      },
+    ],
+    series: [
+      {
+        name: "发电量损失(%)",
+        type: "bar",
+        barWidth: "30%",
+        data: lossData,
+        itemStyle: { color: "#E85D5D" },
+        label: {
+          show: true,
+          position: "top",
+          color: "#E85D5D",
+          fontSize: 10,
+        },
+      },
+      {
+        name: "相对DEL指标(%)",
+        type: "bar",
+        barWidth: "30%",
+        yAxisIndex: 1,
+        data: delData,
+        itemStyle: { color: "#4D8BFF" },
+        label: {
+          show: true,
+          position: "top",
+          color: "#4D8BFF",
+          fontSize: 10,
+        },
+      },
+    ],
+  };
+}

+ 8 - 0
vue.config.js

@@ -71,6 +71,14 @@ module.exports = {
           "^/api": "", // 去掉 /api 前缀
         },
       },
+      //大唐健康评估-异常检测-风机尾流
+      "/healthApi": {
+        target: process.env.VUE_APP_healthAPIPROXY,
+        changeOrigin: true,
+        pathRewrite: {
+          "^/healthApi": "", // 去掉 /healthApi 前缀
+        },
+      },
       // 未知量  //振动、激光测距仪
       "/WZLapi": {
         target: process.env.VUE_APP_WZLAPIPROXY,