Commit e91f9ebb authored by 李苏's avatar 李苏 💬

大屏

parent f3a790dc
...@@ -314,6 +314,10 @@ ...@@ -314,6 +314,10 @@
$(window).resize(function () { $(window).resize(function () {
var whei = $(window).width(); var whei = $(window).width();
$("html").css({ fontSize: whei / 22 }) $("html").css({ fontSize: whei / 22 })
setTimeout(function(){
echartzsy()
},200)
}); });
var myChartSdcl = echarts.init(document.getElementById('chartSdcl')); var myChartSdcl = echarts.init(document.getElementById('chartSdcl'));
var chartRpcdcsj=echarts.init(document.getElementById("chartRpcdcsj")); var chartRpcdcsj=echarts.init(document.getElementById("chartRpcdcsj"));
...@@ -330,7 +334,14 @@ ...@@ -330,7 +334,14 @@
speed: 60, //数值越大,速度越慢 speed: 60, //数值越大,速度越慢
rowHeight: 46 //li的高度 rowHeight: 46 //li的高度
}); });
function echartzsy(){
myChartSdcl.resize()
chartRpcdcsj.resize()
chartHgl.resize()
chartRjh.resize()
chartYjh.resize()
chartJdshCirle.resize()
}
/* 调用 */ /* 调用 */
function getAlldata(){ function getAlldata(){
apisetTimeProductionEchart(myChartSdcl) apisetTimeProductionEchart(myChartSdcl)
......
...@@ -338,6 +338,9 @@ ...@@ -338,6 +338,9 @@
var whei = $(window).width() var whei = $(window).width()
$("html").css({ fontSize: whei / 22 }); $("html").css({ fontSize: whei / 22 });
$(window).resize(function () { $(window).resize(function () {
setTimeout(function(){
echartzsy()
},200)
var whei = $(window).width(); var whei = $(window).width();
$("html").css({ fontSize: whei / 22 }) $("html").css({ fontSize: whei / 22 })
}); });
...@@ -361,6 +364,14 @@ ...@@ -361,6 +364,14 @@
getPdf(20000) getPdf(20000)
getVideo() getVideo()
/* */ /* */
function echartzsy(){
myChartSdcl.resize()
chartRpcdcsj.resize()
chartHgl.resize()
chartRjh.resize()
chartYjh.resize()
chartJdshCirle.resize()
}
function getAlldata(){ function getAlldata(){
apisetTimeProductionEchart(myChartSdcl) apisetTimeProductionEchart(myChartSdcl)
apisetDailyDataEchart(chartRpcdcsj) apisetDailyDataEchart(chartRpcdcsj)
......
...@@ -247,6 +247,9 @@ ...@@ -247,6 +247,9 @@
var whei = $(window).width() var whei = $(window).width()
$("html").css({ fontSize: whei / 22 }); $("html").css({ fontSize: whei / 22 });
$(window).resize(function () { $(window).resize(function () {
setTimeout(function(){
echartzsy()
},200)
var whei = $(window).width(); var whei = $(window).width();
$("html").css({ fontSize: whei / 22 }) $("html").css({ fontSize: whei / 22 })
}); });
...@@ -274,6 +277,13 @@ ...@@ -274,6 +277,13 @@
apisetHglEchart(chartHgl) apisetHglEchart(chartHgl)
apiqueryWo() apiqueryWo()
} }
function echartzsy(){
myChartSdcl.resize()
chartRpcdcsj.resize()
chartHgl.resize()
chartRjh.resize()
chartYjh.resize()
}
getAlldata() getAlldata()
setInterval(function(){ setInterval(function(){
getAlldata() getAlldata()
......
...@@ -288,6 +288,9 @@ ...@@ -288,6 +288,9 @@
var whei = $(window).width() var whei = $(window).width()
$("html").css({ fontSize: whei / 22 }); $("html").css({ fontSize: whei / 22 });
$(window).resize(function () { $(window).resize(function () {
setTimeout(function(){
echartzsy()
},200)
var whei = $(window).width(); var whei = $(window).width();
$("html").css({ fontSize: whei / 22 }) $("html").css({ fontSize: whei / 22 })
}); });
...@@ -306,6 +309,13 @@ ...@@ -306,6 +309,13 @@
rowHeight: 46 //li的高度 rowHeight: 46 //li的高度
}); });
/* 分割线 */ /* 分割线 */
function echartzsy(){
myChartSdcl.resize()
chartRjh.resize()
chartYjh.resize()
chartHgl.resize()
chartJdshCirle.resize()
}
function getAlldata(){ function getAlldata(){
apisetTimeProductionEchart(myChartSdcl) apisetTimeProductionEchart(myChartSdcl)
apisetPieDailyChart(chartRjh) apisetPieDailyChart(chartRjh)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment