Commit c2b2fd90 authored by 曹雷's avatar 曹雷

feat: 优化图标展示

parent 3459a1f8
...@@ -205,13 +205,10 @@ ...@@ -205,13 +205,10 @@
window.onresize = function () { window.onresize = function () {
var myChart = echarts.init(document.getElementById('app-source')); var myChart = echarts.init(document.getElementById('app-source'));
var myChartBrowser = echarts.init(document.getElementById('app-env-browser')); var myChartBrowser = echarts.init(document.getElementById('app-env-browser'));
// var myChartNums = echarts.init(document.getElementById("idp"));
var myChartNumsByTime = echarts.init(document.getElementById("nums-by-time")); var myChartNumsByTime = echarts.init(document.getElementById("nums-by-time"));
var myChartPV = echarts.init(document.getElementById('pv')); var myChartPV = echarts.init(document.getElementById('pv'));
myChart.resize(); myChart.resize();
myChartBrowser.resize(); myChartBrowser.resize();
myChartSystem.resize();
// myChartNums.resize();
myChartNumsByTime.resize(); myChartNumsByTime.resize();
myChartPV.resize(); myChartPV.resize();
} }
...@@ -304,7 +301,7 @@ ...@@ -304,7 +301,7 @@
} }
option.yAxis.data = legend; option.yAxis.data = legend;
option.series[0].data = data; option.series[0].data = data;
myChart.setOption(option); myChart.setOption(option, true);
}, },
error: function (e) { error: function (e) {
console.log(e) console.log(e)
...@@ -339,7 +336,6 @@ ...@@ -339,7 +336,6 @@
}) })
}) })
}); });
console.log('series', series)
var myChartBrowser = echarts.init(document.getElementById( var myChartBrowser = echarts.init(document.getElementById(
'app-env-browser')); 'app-env-browser'));
...@@ -368,7 +364,7 @@ ...@@ -368,7 +364,7 @@
series: series, series: series,
}; };
myChartBrowser.setOption(optionBrowser); myChartBrowser.setOption(optionBrowser, true);
}, },
error: function (e) { error: function (e) {
console.log(e) console.log(e)
...@@ -501,7 +497,7 @@ ...@@ -501,7 +497,7 @@
var myChartNumsByTime = echarts.init(document.getElementById( var myChartNumsByTime = echarts.init(document.getElementById(
"nums-by-time")); "nums-by-time"));
myChartNumsByTime.setOption(optionNumsByTime); myChartNumsByTime.setOption(optionNumsByTime, true);
}, },
error: function (e) { error: function (e) {
console.log(e) console.log(e)
...@@ -535,7 +531,7 @@ ...@@ -535,7 +531,7 @@
optionPV.series[0].data = result.dataList; optionPV.series[0].data = result.dataList;
var myChartPV = echarts.init(document.getElementById( var myChartPV = echarts.init(document.getElementById(
'pv')); 'pv'));
myChartPV.setOption(optionPV); myChartPV.setOption(optionPV, true);
}, },
error: function (e) { error: function (e) {
console.log(e) console.log(e)
...@@ -592,7 +588,6 @@ ...@@ -592,7 +588,6 @@
var today = new Date(); var today = new Date();
var target = today.getTime() + 1000 * 3600 * 24 * day; var target = today.getTime() + 1000 * 3600 * 24 * day;
today.setTime(target); today.setTime(target);
console.log(today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate())
return today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate(); return today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate();
}, },
} }
......
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