Commit c2b2fd90 authored by 曹雷's avatar 曹雷

feat: 优化图标展示

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