能耗对比渲染

master
wj 2 years ago
parent 6f78d99111
commit 6bdef00537
  1. 43
      psdc-ui/src/views/analyse/nhdb/index.vue
  2. 4
      psdc-ui/src/views/analyse/nhfx/index.vue
  3. 2
      psdc-ui/src/views/control/manual/index.vue

@ -223,15 +223,6 @@ onMounted(()=>{
}) })
/** 使用rem的思想实现图表字体等其他样式的自适应*/
function fontSize(px) { //
let clientWidth = window.innerWidth || document.body.clientWidth; //
if (!clientWidth) {
return 0;
}
let fontSize = clientWidth / 1920; //稿
return px * fontSize; // rem
}
// //
function getCelueListFun(){ function getCelueListFun(){
@ -259,7 +250,8 @@ let indoorChart;
function indoorChartFun(){ function indoorChartFun(){
for(let i = 0;i < data.celueInfoList.length;i++){ for(let i = 0;i < data.celueInfoList.length;i++){
var temp = 'forId' + i; var temp = 'forId' + i;
console.log(temp) console.log(data.celueInfoList[i].tempInAry.listTempIn)
console.log(data.celueInfoList[i].tempInAry.timesIn)
const chartDom = document.getElementById(temp) const chartDom = document.getElementById(temp)
indoorChart = echarts.init(chartDom); indoorChart = echarts.init(chartDom);
const option = { const option = {
@ -268,31 +260,39 @@ function indoorChartFun(){
// selectedMode: 'single', // selectedMode: 'single',
textStyle: { textStyle: {
color: "#b6bee7", color: "#b6bee7",
fontSize:fontSize(12) fontSize:14
} }
}, },
tooltip: { tooltip: {
trigger: "axis", trigger: "axis",
formatter: '', formatter: function(params) {
var result = params[0].name + '<br>'; //
for (var i = 0; i < params.length; i++) {
var seriesName = params[i].seriesName; //
var value = params[i].value; //
result += seriesName + ': ' + '<strong style="color: #F5901A">'+value+'</strong>' + '℃<br>'; //
}
return result;
},
// borderColor: '#00fcff', // borderColor: '#00fcff',
borderWidth: 1 borderWidth: 1
}, },
grid:{ grid:{
show: true, show: true,
top: '20%', top: '20%',
bottom:'15%', bottom:'13%',
left:'8%', left:'6%',
right:'4%', right:'4%',
borderWidth: 0, borderWidth: 0,
borderColor: '#767da1', borderColor: '#767da1',
}, },
xAxis: { xAxis: {
type: 'category', type: 'category',
data: [1,1,11,1,11,1,1,1], data: data.celueInfoList[i].tempInAry.timesIn,
axisLabel: { axisLabel: {
textStyle: { textStyle: {
color: "#b6bee7", color: "#b6bee7",
fontSize:fontSize(10) fontSize:12
} }
}, },
axisLine: { axisLine: {
@ -317,13 +317,13 @@ function indoorChartFun(){
// name:'', // name:'',
nameTextStyle: { nameTextStyle: {
color: "#b6bee7", color: "#b6bee7",
fontSize:fontSize(10), fontSize:12,
nameLocation: "start" nameLocation: "start"
}, },
axisLabel: { axisLabel: {
textStyle: { textStyle: {
color: "#b6bee7", color: "#b6bee7",
fontSize:fontSize(10) fontSize:12
} }
}, },
splitLine: { splitLine: {
@ -334,7 +334,7 @@ function indoorChartFun(){
series: [ series: [
{ {
name: "室内温度", name: "室内温度",
data: [1,1,11,1,11,1,1,1], data: data.celueInfoList[i].tempInAry.listTempIn,
type: 'line', type: 'line',
smooth: true, smooth: true,
symbol: "none", // symbol: "none", //
@ -387,7 +387,7 @@ function indoorChartFun(){
flex-wrap: nowrap; flex-wrap: nowrap;
//margin-bottom: 18px; //margin-bottom: 18px;
.echartBox{ .echartBox{
width: 230%; width: 60%;
height: 160px; height: 160px;
padding: 10px 0; padding: 10px 0;
border: 1px solid #ffffff50; border: 1px solid #ffffff50;
@ -421,6 +421,9 @@ function indoorChartFun(){
::v-deep .el-input__inner{ ::v-deep .el-input__inner{
color: #1fc7c7; color: #1fc7c7;
} }
::v-deep .el-form{
width: 40%;
}
::v-deep .el-form .el-form-item__label{ ::v-deep .el-form .el-form-item__label{
color: #d3d3d3 !important; color: #d3d3d3 !important;
} }

@ -215,7 +215,7 @@ function tongbiChartFun(){
tongbiChart = echarts.init(chartDom); tongbiChart = echarts.init(chartDom);
const option = { const option = {
legend: { legend: {
data: [dateValue1.value,dateValue1.value - 1], data: [dateValue1.value - 1, dateValue1.value],
// selectedMode: 'single', // selectedMode: 'single',
textStyle: { textStyle: {
color: "#f3ffff" color: "#f3ffff"
@ -335,7 +335,7 @@ function tongbiChartFun(){
smooth: true, smooth: true,
symbol: "none", // symbol: "none", //
itemStyle: { //线 itemStyle: { //线
color: 'rgba(182,162,222)', color: 'rgba(204,204,204)',
}, },
markPoint: { markPoint: {
data: [ data: [

@ -672,7 +672,7 @@ function getSetTemperatureFun(item){
height: 170px; height: 170px;
.item_bottom_img{ .item_bottom_img{
width: 35%; width: 35%;
height: 95%; height: 80%;
//border: 1px solid red; //border: 1px solid red;
padding: 10px; padding: 10px;
margin-right: 10px; margin-right: 10px;

Loading…
Cancel
Save