Commit 5f8fea9b by haozhenhua

hzh

parent 0a726340
......@@ -1002,7 +1002,7 @@
methods:{
showAll(){
var that=this;
axios.post('http://106.13.228.212:8021/screen',{'provinceName':this.provinceName}).then(d=>{
axios.post('http://49.232.11.140:8021/screen',{'provinceName':this.provinceName}).then(d=>{
var echarts = that.$refs.echart1Ref.getEchartObj();
that.echartdata1.xAxis[0].data=d.data.data1;
that.echartdata1.series[0].data=d.data.data2;
......@@ -1017,8 +1017,13 @@
axios.post('http://106.13.228.212:8023/screen',{'provinceName':this.provinceName}).then(d=>{
that.data=d.data.data;
});
axios.post('http://106.13.228.212:8024/screen',{'provinceName':this.provinceName}).then(d=>{
axios.post('http://49.232.11.140:8024/screen',{'provinceName':this.provinceName}).then(d=>{
that.myChart = echarts.init(document.getElementById('container'));
if(that.provinceName==''){
that.echartdata3.series[0].mapType = 'china';
}else{
that.echartdata3.series[0].mapType = that.provinceName;
}
that.echartdata3.dataRange.min=d.data.min;
that.echartdata3.dataRange.max=d.data.max;
that.echartdata3.series[0].data=d.data.data;
......@@ -1059,7 +1064,6 @@
this.loadBdScript('$' + pName + 'JS', 'js/echarts/province/' + pName + '.js', function () {
console.log("调用方法获取地图的值");
that.myChart = echarts.init(document.getElementById('container'));
that.echartdata3.series[0].mapType = that.provinceName;
that.showAll();
window.addEventListener("resize", function () {
that.myChart.resize();
......
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