From 8542d3ff2c2cb9dd51089d971065f71ffaa99ad2 Mon Sep 17 00:00:00 2001 From: re-JZzzz Date: Tue, 23 Dec 2025 11:38:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(omScreen):=20=E4=BC=98=E5=8C=96=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=B8=83=E5=B1=80=E6=A0=B7=E5=BC=8F=E5=B9=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=8A=A5=E8=AD=A6=E5=88=97=E8=A1=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在header组件中添加底部边距 - 调整leftPage组件样式并添加背景渐变 - 更新options.ts中的图表配置和月份数据 - 重构rightPage组件,添加报警列表展示和交互功能 - 统一使用渐变背景样式 --- src/views/omScreen/components/header.vue | 1 + src/views/omScreen/components/leftPage.vue | 11 +- src/views/omScreen/components/options.ts | 22 +++- src/views/omScreen/components/rightPage.vue | 136 +++++++++++++++++--- 4 files changed, 140 insertions(+), 30 deletions(-) diff --git a/src/views/omScreen/components/header.vue b/src/views/omScreen/components/header.vue index dea8b3c..1521dc4 100644 --- a/src/views/omScreen/components/header.vue +++ b/src/views/omScreen/components/header.vue @@ -138,6 +138,7 @@ $vh_base: 1080; display: flex; align-items: center; gap: vw(20); + margin-bottom: vh(20); .header_left_img { width: vw(48); diff --git a/src/views/omScreen/components/leftPage.vue b/src/views/omScreen/components/leftPage.vue index b83d9ef..f600055 100644 --- a/src/views/omScreen/components/leftPage.vue +++ b/src/views/omScreen/components/leftPage.vue @@ -34,12 +34,14 @@ import { ref } from 'vue'; @import '@/views/omScreen/gis.scss'; .leftpageContainer { -margin-left: vw(20); + margin-left: vw(20); + .middleInfo { background: linear-gradient(135.47deg, rgba(21, 49, 58, 0.82) 0%, rgba(39, 85, 94, 0.5) 100%); + .middleInfoContainer { width: 100%; - height: vh(313); + height: vh(313); box-sizing: border-box; position: relative; background-size: 100% 100%; @@ -57,6 +59,7 @@ margin-left: vw(20); background: url('@/assets/projectLarge/xm-bg.png') center center no-repeat; background-size: cover; overflow-y: auto; + div { margin-left: vw(20); margin-bottom: vh(12); @@ -93,7 +96,9 @@ margin-left: vw(20); // 底部信息 .bottomInfo { - margin-top: vh(20); + margin-top: vh(20); + height: vh(580); + background: linear-gradient(135.47deg, rgba(21, 49, 58, 0.82) 0%, rgba(39, 85, 94, 0.5) 100%); } } \ No newline at end of file diff --git a/src/views/omScreen/components/options.ts b/src/views/omScreen/components/options.ts index 43ee24e..9ee0766 100644 --- a/src/views/omScreen/components/options.ts +++ b/src/views/omScreen/components/options.ts @@ -1,3 +1,5 @@ +import axios from "axios"; + export let option1 = { tooltip: { trigger: 'axis', @@ -39,18 +41,24 @@ export let option1 = { color: '#fff', fontSize: 12 }, - data: ['1月', '3月', '5月', '7月', '9月', '11月'] + axisLine: { + lineStyle: { + color: 'rgba(0, 255, 238,1)' + } + }, + data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], + // interval: 2 }, // Y轴 yAxis: { type: 'value', name: 'kWh', - // axisLine: { - // lineStyle: { - // color: '#fff' - // } - // }, + axisLine: { + lineStyle: { + color: 'rgba(0, 255, 238,1)' + } + }, axisTick: { show: false }, @@ -71,7 +79,7 @@ export let option1 = { { name: '发电量', type: 'line', - data: [150000, 700000, 400000, 550000, 650000, 850000, 300000, 800000, 600000], + data: [150000, 700000, 400000, 550000, 650000, 850000, 300000, 800000, 600000,1000000,1200000,1500000], lineStyle: { color: 'rgba(0, 255, 238, 1)', width: 3 diff --git a/src/views/omScreen/components/rightPage.vue b/src/views/omScreen/components/rightPage.vue index 052ec17..0e9f2c5 100644 --- a/src/views/omScreen/components/rightPage.vue +++ b/src/views/omScreen/components/rightPage.vue @@ -1,6 +1,6 @@