|
@@ -4,9 +4,10 @@
|
|
|
<span class="sys-time">{{ sysTime }}</span>
|
|
|
<div class="top-right-style flex items-center">
|
|
|
<div class="top-badge">
|
|
|
- <el-badge :value="badgeValue.alarm">
|
|
|
- <img src="../../assets/images/svg/remind.svg" width="30px" @click="openAlarm()"/>
|
|
|
+ <el-badge :value="badgeValue.alarm" v-if="badgeValue.alarm !== 0">
|
|
|
+ <img src="../../assets/images/svg/remind.svg" class="badge-img" @click="openAlarm()"/>
|
|
|
</el-badge>
|
|
|
+ <img src="../../assets/images/svg/remind.svg" class="badge-img" @click="openAlarm()" v-else/>
|
|
|
</div>
|
|
|
|
|
|
<div class="cpp-btu-background home-jump-btu">
|
|
@@ -52,21 +53,21 @@
|
|
|
<!-- 左 -->
|
|
|
<div class="float-container top-default flex-column justify-around left-container-style">
|
|
|
<div class="flex">
|
|
|
- <img src="../../assets/images/dashboard/num3.png"/>
|
|
|
+ <img src="../../assets/images/dashboard/num3.png" class="left-img"/>
|
|
|
<div class="flex-column justify-center items-center">
|
|
|
<span>风速(m/s)</span>
|
|
|
<span>{{ envData.ws }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex">
|
|
|
- <img src="../../assets/images/dashboard/num4.png"/>
|
|
|
+ <img src="../../assets/images/dashboard/num4.png" class="left-img"/>
|
|
|
<div class="flex-column justify-center items-center">
|
|
|
<span>辐照度(W/㎡)</span>
|
|
|
<span>{{ envData.radiance }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex">
|
|
|
- <img src="../../assets/images/dashboard/num2.png"/>
|
|
|
+ <img src="../../assets/images/dashboard/num2.png" class="left-img"/>
|
|
|
<div class="flex-column justify-center items-center">
|
|
|
<span>限电比(%)</span>
|
|
|
<span>{{ xdbl }}</span>
|
|
@@ -451,6 +452,15 @@ export default {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
+ beforeDestroy() {
|
|
|
+ const _this = this
|
|
|
+ window.removeEventListener('resize', function () {
|
|
|
+ _this.myChart0.resize();
|
|
|
+ _this.myChart1.resize();
|
|
|
+ })
|
|
|
+ clearInterval(this.sysInterval);
|
|
|
+ clearInterval(this.sysBizDataTimer);
|
|
|
+ },
|
|
|
mounted() {
|
|
|
this.init()
|
|
|
const _this = this
|
|
@@ -465,10 +475,6 @@ export default {
|
|
|
}, 60000);//每隔60秒刷新一次
|
|
|
}
|
|
|
},
|
|
|
- destroyed() {
|
|
|
- clearInterval(this.sysInterval);
|
|
|
- clearInterval(this.sysBizDataTimer);
|
|
|
- },
|
|
|
methods: {
|
|
|
formatNumber(num) {
|
|
|
if (Number(num)==0){
|
|
@@ -631,19 +637,20 @@ export default {
|
|
|
gaugeOption.series[1].data[0].value = this.xdczs
|
|
|
gaugeOption.series[0].max = this.zczs
|
|
|
gaugeOption.series[1].max = this.zczs
|
|
|
- var myChart = this.$echarts.init(document.getElementById('gauge'));
|
|
|
- myChart.setOption(gaugeOption, true)
|
|
|
+ this.myChart0 = this.$echarts.init(document.getElementById('gauge'));
|
|
|
+ this.myChart0.setOption(gaugeOption, true)
|
|
|
lineOption.series[0].data = this.realList
|
|
|
lineOption.series[1].data = this.ableList
|
|
|
lineOption.series[2].data = this.theoryList
|
|
|
lineOption.series[3].data = this.dqList
|
|
|
lineOption.series[4].data = this.cdqList
|
|
|
|
|
|
- var myChart1 = this.$echarts.init(document.getElementById('line'), 'dark');
|
|
|
- myChart1.setOption(lineOption, true)
|
|
|
+ this.myChart1 = this.$echarts.init(document.getElementById('line'), 'dark');
|
|
|
+ this.myChart1.setOption(lineOption, true)
|
|
|
+ const _this = this
|
|
|
window.addEventListener("resize", function () {
|
|
|
- myChart.zhChart.resize();
|
|
|
- myChart1.zhChart.resize();
|
|
|
+ _this.myChart0.resize();
|
|
|
+ _this.myChart1.resize();
|
|
|
});
|
|
|
},
|
|
|
formatStartDate(row) {
|
|
@@ -859,7 +866,7 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
-$top-container-height: 8rem;
|
|
|
+$top-container-height: 11vh;
|
|
|
.largeScreen {
|
|
|
width: 100%;
|
|
|
height: calc(100vh);
|
|
@@ -874,34 +881,41 @@ $top-container-height: 8rem;
|
|
|
.top-right-style {
|
|
|
width: 15%;
|
|
|
position: absolute !important;
|
|
|
- right: 15px;
|
|
|
+ right: .8vw;
|
|
|
justify-content: end;
|
|
|
}
|
|
|
|
|
|
.top-badge {
|
|
|
cursor: pointer;
|
|
|
- margin-right: 30px;
|
|
|
- padding-top: 2%;
|
|
|
+ margin-right: 1.5vw;
|
|
|
+ padding-top: .5vh;
|
|
|
|
|
|
::v-deep .el-badge__content.is-fixed {
|
|
|
top: 5px;
|
|
|
right: 5px;
|
|
|
}
|
|
|
+ ::v-deep .el-badge__content {
|
|
|
+ border-radius: .5vw;
|
|
|
+ font-size: .6vw;
|
|
|
+ height: 2vh;
|
|
|
+ line-height: 2vh;
|
|
|
+ padding: 0 .2vw;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.home-jump-btu {
|
|
|
- width: 100px;
|
|
|
- height: 30px;
|
|
|
+ width: 5vw;
|
|
|
+ height: 3.15vh;
|
|
|
cursor: pointer;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
-
|
|
|
+ font-size: .85vw;
|
|
|
}
|
|
|
|
|
|
.chartStyle {
|
|
|
width: 100%;
|
|
|
- height: calc(35vh);
|
|
|
+ height: 35vh;
|
|
|
}
|
|
|
|
|
|
.home-main-container {
|
|
@@ -914,23 +928,29 @@ $top-container-height: 8rem;
|
|
|
|
|
|
.right-container-style {
|
|
|
width: 30%;
|
|
|
- height: calc(100% - 10rem);
|
|
|
+ margin-top: 3vh;
|
|
|
+ //height: calc(100vh - 10rem);
|
|
|
}
|
|
|
|
|
|
.left-container-style {
|
|
|
width: 12%;
|
|
|
height: calc(50%);
|
|
|
left: 4rem;
|
|
|
- font-size: large;
|
|
|
+ font-size: 1vw;
|
|
|
+}
|
|
|
+.left-img{
|
|
|
+ width: 5vw;
|
|
|
+}
|
|
|
+.badge-img{
|
|
|
+ width: 1.5vw;
|
|
|
}
|
|
|
-
|
|
|
.border-style {
|
|
|
border-radius: 5px;
|
|
|
box-shadow: inset 0px 1px 8px 5px rgba(29, 128, 218, 0.63);
|
|
|
}
|
|
|
|
|
|
.right-top-style {
|
|
|
- font-size: 20px;
|
|
|
+ font-size: 1vw;
|
|
|
width: 50%;
|
|
|
}
|
|
|
|
|
@@ -939,7 +959,7 @@ $top-container-height: 8rem;
|
|
|
}
|
|
|
|
|
|
.top-2 {
|
|
|
- top: 3rem;
|
|
|
+ top: 5vh;
|
|
|
}
|
|
|
|
|
|
.top-default {
|
|
@@ -964,20 +984,21 @@ $top-container-height: 8rem;
|
|
|
|
|
|
.text-style {
|
|
|
width: 70%;
|
|
|
- height: 30px;
|
|
|
- padding: 1% 0 0 15%;
|
|
|
+ height: 3.5vh;
|
|
|
+ padding: .6vh 0 0 2.2vw;
|
|
|
+ font-size: .9vw;
|
|
|
}
|
|
|
|
|
|
.unit-style {
|
|
|
- margin-left: 10px;
|
|
|
- font-size: 20px;
|
|
|
+ margin-left: .5vw;
|
|
|
+ font-size: 1vw;
|
|
|
}
|
|
|
|
|
|
.num-style {
|
|
|
- width: 30px;
|
|
|
- height: 50px;
|
|
|
- font-size: 30px;
|
|
|
- margin-left: 10px;
|
|
|
+ width: 1.55vw;
|
|
|
+ height: 5vh;
|
|
|
+ font-size: 1.5vw;
|
|
|
+ margin-left: 0.5vw;
|
|
|
}
|
|
|
|
|
|
.number-bg-style {
|
|
@@ -986,9 +1007,9 @@ $top-container-height: 8rem;
|
|
|
|
|
|
.right-title-style {
|
|
|
width: 90%;
|
|
|
- padding: 1% 0 0 10%;
|
|
|
- font-size: 18px;
|
|
|
- height: 35px;
|
|
|
+ padding: .5vh 0 0 2vw;
|
|
|
+ font-size: 1vw;
|
|
|
+ height: 3.6vh;
|
|
|
}
|
|
|
|
|
|
.barTitleBg {
|