|
|
|
@ -3,7 +3,7 @@ |
|
|
|
|
<div class="header"> |
|
|
|
|
<h2>电能替代分布式控制试验平台</h2> |
|
|
|
|
<div class="timer">{{timer}}</div> |
|
|
|
|
<screenfull id="screenfull" class="right-menu-item hover-effect" /> |
|
|
|
|
<screenfull id="screenfull" @click="refresh" class="right-menu-item hover-effect" /> |
|
|
|
|
<router-link :to="{path:'/control/manual'}" tag="div" class="back" @click="linkPage"><el-icon><HomeFilled /></el-icon></router-link> |
|
|
|
|
</div> |
|
|
|
|
<div class="main"> |
|
|
|
@ -151,7 +151,9 @@ onMounted(()=>{ |
|
|
|
|
getZdbFun(); |
|
|
|
|
dqglChartFun() |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
function refresh(){ |
|
|
|
|
// window.location.reload(); |
|
|
|
|
} |
|
|
|
|
/** 日期*/ |
|
|
|
|
const timer = ref() |
|
|
|
|
//格式化日期 |
|
|
|
@ -314,9 +316,9 @@ let xrglChart; |
|
|
|
|
let kqyrbChart; |
|
|
|
|
let frdlChart; |
|
|
|
|
function dcglChartFun(){ |
|
|
|
|
const chartDom = document.getElementById('dcglChart') |
|
|
|
|
var chartDom = document.getElementById('dcglChart') |
|
|
|
|
dcglChart = echarts.init(chartDom); |
|
|
|
|
const option = { |
|
|
|
|
var option = { |
|
|
|
|
legend: { |
|
|
|
|
data: ["进水温度","出水温度"], |
|
|
|
|
// selectedMode: 'single', |
|
|
|
@ -424,9 +426,9 @@ function dcglChartFun(){ |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
option && dcglChart.setOption(option); |
|
|
|
|
window.onresize = function () {//自适应大小 |
|
|
|
|
chartDom.resize(); |
|
|
|
|
}; |
|
|
|
|
window.addEventListener("resize", function () { |
|
|
|
|
dcglChart.resize(); |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
function xrglChartFun(){ |
|
|
|
|
const chartDom = document.getElementById('xrglChart') |
|
|
|
@ -539,9 +541,9 @@ function xrglChartFun(){ |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
option && xrglChart.setOption(option); |
|
|
|
|
window.onresize = function () {//自适应大小 |
|
|
|
|
chartDom.resize(); |
|
|
|
|
}; |
|
|
|
|
window.addEventListener("resize", function () { |
|
|
|
|
xrglChart.resize(); |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
function kqyrbChartFun(){ |
|
|
|
|
const chartDom = document.getElementById('kqyrbChart') |
|
|
|
@ -654,9 +656,9 @@ function kqyrbChartFun(){ |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
option && kqyrbChart.setOption(option); |
|
|
|
|
window.onresize = function () {//自适应大小 |
|
|
|
|
chartDom.resize(); |
|
|
|
|
}; |
|
|
|
|
window.addEventListener("resize", function () { |
|
|
|
|
kqyrbChart.resize(); |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
function frdlChartFun(){ |
|
|
|
|
const chartDom = document.getElementById('frdlChart') |
|
|
|
@ -759,9 +761,9 @@ function frdlChartFun(){ |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
option && frdlChart.setOption(option); |
|
|
|
|
window.onresize = function () {//自适应大小 |
|
|
|
|
chartDom.resize(); |
|
|
|
|
}; |
|
|
|
|
window.addEventListener("resize", function () { |
|
|
|
|
frdlChart.resize(); |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/**总电表信息*/ |
|
|
|
@ -911,9 +913,9 @@ function dqglChartFun(){ |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
option && dqglChart.setOption(option); |
|
|
|
|
window.onresize = function () {//自适应大小 |
|
|
|
|
chartDom.resize(); |
|
|
|
|
}; |
|
|
|
|
window.addEventListener("resize", function () { |
|
|
|
|
dqglChart.resize(); |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1237,5 +1239,17 @@ onBeforeUnmount(() => { |
|
|
|
|
.screenNumber{ |
|
|
|
|
font-family: 'ds-digitalnormal'; |
|
|
|
|
} |
|
|
|
|
@media (max-width: 960px) { |
|
|
|
|
.info_box{ |
|
|
|
|
.dev_img{ |
|
|
|
|
width: 40%; |
|
|
|
|
height: 80%; |
|
|
|
|
} |
|
|
|
|
.dev_data{ |
|
|
|
|
width: 55%; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
|