|
@@ -1,15 +1,15 @@
|
|
|
<template>
|
|
|
<div class="homePageNoMap" :class="!theme ? 'themeDark' : 'themeLight'" :style="pageHeight">
|
|
|
<div class="windStstus">
|
|
|
- <div class="everyOne" v-for="(item, index) in statusData" :key="index">
|
|
|
+ <div class="everyOne" v-for="(item, index) in statusData" :key="index" :style="statusSty(item)">
|
|
|
<img :src="item.img" alt="">
|
|
|
- <span class="statusName">{{item.name}}</span>
|
|
|
- <span class="statusNum">{{item.number}}</span>
|
|
|
+ <span class="statusName" :style="{color: `${item.borderSty}`}">{{item.name}}</span>
|
|
|
+ <span class="statusNum" :style="{border: `1px solid ${item.borderSty}`}">{{item.number}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="homePage_main">
|
|
|
<div class="mainLeft">
|
|
|
- <div class="lineStyle" v-on:dblclick="doubleclick('全域功率预测')">
|
|
|
+ <div class="lineStyle" v-on:dblclick="doubleclick('全域功率预测')" style="position: relative">
|
|
|
<div style="display: flex;float: right;justify-content: end;margin-right: 53px;">
|
|
|
<div v-for="item in showpowerLegend" :key="item.name">
|
|
|
<span class="lineColor" :style="{'background': item.color}"></span>
|
|
@@ -18,9 +18,17 @@
|
|
|
style="font-size: 12px;margin-left: 12px;position: relative;top: 1px;">{{item.name}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="chart-name">
|
|
|
+ <div class="point point-left bottom"></div>
|
|
|
+ <div class="point point-right bottom"></div>
|
|
|
+ </div>
|
|
|
<div id="lineChart" :style="lineChartStyle"></div>
|
|
|
</div>
|
|
|
<div class="lineStyle" v-on:dblclick="doubleclick('全域风速预测')" style="position: relative">
|
|
|
+ <div class="chart-name">
|
|
|
+ <div class="point point-left bottom"></div>
|
|
|
+ <div class="point point-right bottom"></div>
|
|
|
+ </div>
|
|
|
<div class="styleData">
|
|
|
<span :class="windShow ? 'changeStyle' : 'defaultSty'" @click="getWindorSunDate('风速')">风速</span>
|
|
|
<span :class="sunShow ? 'changeStyle' : 'defaultSty'"
|
|
@@ -30,15 +38,23 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="mainRight">
|
|
|
- <div class="lineStyle">
|
|
|
+ <div class="lineStyle" style="position: relative">
|
|
|
+ <div class="chart-name">
|
|
|
+ <div class="point point-left bottom"></div>
|
|
|
+ <div class="point point-right bottom"></div>
|
|
|
+ </div>
|
|
|
<div id="barChart" :style="barChartStyle"></div>
|
|
|
</div>
|
|
|
- <div class="lineStyle">
|
|
|
+ <div class="lineStyle" style="position: relative">
|
|
|
<div class="styleData">
|
|
|
<span :class="dayShow ? 'changeStyle' : 'defaultSty'" @click="getbarDate('日')">日</span>
|
|
|
<span :class="monthShow ? 'changeStyle' : 'defaultSty'" @click="getbarDate('月')">月</span>
|
|
|
<span :class="yearShow ? 'changeStyle' : 'defaultSty'" @click="getbarDate('年')">年</span>
|
|
|
</div>
|
|
|
+ <div class="chart-name">
|
|
|
+ <div class="point point-left bottom"></div>
|
|
|
+ <div class="point point-right bottom"></div>
|
|
|
+ </div>
|
|
|
<div id="barChart1" :style="barChartStyle"></div>
|
|
|
</div>
|
|
|
<div class="messageData">
|
|
@@ -96,13 +112,13 @@
|
|
|
import globalDialog from '@/components/powerPredictionComponent/homePageAssembly/globalDialogPage.vue'
|
|
|
import weatherDetail from '@/components/powerPredictionComponent/homePageAssembly/weatherDetail.vue'
|
|
|
//状态图片
|
|
|
- import oneimg from '@/assets/windStatusPic/000.png'
|
|
|
- import twoimg from '@/assets/windStatusPic/001.png'
|
|
|
- import threeimg from '@/assets/windStatusPic/002.png'
|
|
|
- import fourimg from '@/assets/windStatusPic/003.png'
|
|
|
- import fiveimg from '@/assets/windStatusPic/004.png'
|
|
|
- import siximg from '@/assets/windStatusPic/005.png'
|
|
|
- import sevenimg from '@/assets/windStatusPic/006.png'
|
|
|
+ import oneimg from '@/assets/windStatusPic/yunxing.png'
|
|
|
+ import twoimg from '@/assets/windStatusPic/daiji.png'
|
|
|
+ import threeimg from '@/assets/windStatusPic/weihu.png'
|
|
|
+ import fourimg from '@/assets/windStatusPic/tingji.png'
|
|
|
+ import fiveimg from '@/assets/windStatusPic/xiandian.png'
|
|
|
+ import siximg from '@/assets/windStatusPic/shoulei.png'
|
|
|
+ import sevenimg from '@/assets/windStatusPic/guzhang.png'
|
|
|
//大风预警图片
|
|
|
import windBlue from '@/assets/weather/windBlue.png'
|
|
|
import windYellow from '@/assets/weather/windYellow.png'
|
|
@@ -444,42 +460,56 @@
|
|
|
img: oneimg,
|
|
|
name: '运行',
|
|
|
nameEn: 'yx',
|
|
|
+ borderSty: '#1C99FF',
|
|
|
+ backSty: '#0046C7',
|
|
|
number: 0
|
|
|
},
|
|
|
{
|
|
|
img: twoimg,
|
|
|
name: '待机',
|
|
|
nameEn: 'dj',
|
|
|
+ borderSty: '#05BB4C',
|
|
|
+ backSty: '#258952',
|
|
|
number: 0
|
|
|
},
|
|
|
{
|
|
|
img: threeimg,
|
|
|
name: '维护',
|
|
|
nameEn: 'wh',
|
|
|
+ borderSty: '#E17D24',
|
|
|
+ backSty: '#694119',
|
|
|
number: 0
|
|
|
},
|
|
|
{
|
|
|
img: fourimg,
|
|
|
name: '停机',
|
|
|
nameEn: 'tj',
|
|
|
+ borderSty: '#52595B',
|
|
|
+ backSty: '#272a2b',
|
|
|
number: 0
|
|
|
},
|
|
|
{
|
|
|
img: fiveimg,
|
|
|
name: '限电',
|
|
|
nameEn: 'xd',
|
|
|
+ borderSty: '#C530C8',
|
|
|
+ backSty: '#7A277F',
|
|
|
number: 0
|
|
|
},
|
|
|
{
|
|
|
img: siximg,
|
|
|
name: '离线',
|
|
|
nameEn: 'lx',
|
|
|
+ borderSty: '#fff',
|
|
|
+ backSty: '#38393B',
|
|
|
number: 0
|
|
|
},
|
|
|
{
|
|
|
img: sevenimg,
|
|
|
name: '检修',
|
|
|
nameEn: 'jx',
|
|
|
+ borderSty: '#BA3237',
|
|
|
+ backSty: '#73262B',
|
|
|
number: 0
|
|
|
}
|
|
|
]
|
|
@@ -586,6 +616,9 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ statusSty(item) {
|
|
|
+ return `border: 1px solid ${item.borderSty};background: ${item.backSty}`
|
|
|
+ },
|
|
|
fromCustom(name) {
|
|
|
let that = this
|
|
|
let params = {
|
|
@@ -1494,6 +1527,39 @@
|
|
|
.mainRight {
|
|
|
.lineStyle {
|
|
|
background: #161f1e;
|
|
|
+
|
|
|
+ .chart-name {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ height: 39px;
|
|
|
+ width: 96%;
|
|
|
+ border-bottom: 1px solid rgba(153, 153, 153, 0.5);
|
|
|
+
|
|
|
+ .point {
|
|
|
+ width: 6px;
|
|
|
+ height: 1px;
|
|
|
+ background-color: #ffffff;
|
|
|
+ position: absolute;
|
|
|
+
|
|
|
+ &.point-left {
|
|
|
+ left: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.point-right {
|
|
|
+ right: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.top {
|
|
|
+ top: -1px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.bottom {
|
|
|
+ bottom: -1px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1519,7 +1585,7 @@
|
|
|
|
|
|
.themeLight {
|
|
|
.windStstus {
|
|
|
- background: linear-gradient(0deg, transparent, #373590);
|
|
|
+ // background: linear-gradient(0deg, transparent, #373590);
|
|
|
}
|
|
|
|
|
|
.homePage_main {
|