onChange-Trigger for Band // Errorhandling when there are no spots
这个提交包含在:
父节点
0c80f30ee8
当前提交
dc7abe462f
共有 1 个文件被更改,包括 18 次插入 和 11 次删除
|
|
@ -130,12 +130,14 @@ $(function() {
|
||||||
dataType: "json"
|
dataType: "json"
|
||||||
}).done(function(dxspots) {
|
}).done(function(dxspots) {
|
||||||
spots4chart=[];
|
spots4chart=[];
|
||||||
dxspots.sort(SortByQrg);
|
if (dxspots.length>1) {
|
||||||
dxspots=reduce_spots(dxspots);
|
dxspots.sort(SortByQrg);
|
||||||
dxspots.forEach((single) => {
|
dxspots=reduce_spots(dxspots);
|
||||||
spots4chart.push(convert2high(single));
|
dxspots.forEach((single) => {
|
||||||
});
|
spots4chart.push(convert2high(single));
|
||||||
// console.log(spots4chart);
|
});
|
||||||
|
}
|
||||||
|
bandMapChart.title.text=band;
|
||||||
bandMapChart.series[0].setData(spots4chart);
|
bandMapChart.series[0].setData(spots4chart);
|
||||||
bandMapChart.redraw();
|
bandMapChart.redraw();
|
||||||
});
|
});
|
||||||
|
|
@ -150,15 +152,20 @@ $(function() {
|
||||||
dataType: "json"
|
dataType: "json"
|
||||||
}).done(function(dxspots) {
|
}).done(function(dxspots) {
|
||||||
spots4chart=[];
|
spots4chart=[];
|
||||||
dxspots.sort(SortByQrg);
|
if (dxspots.length>1) {
|
||||||
dxspots=reduce_spots(dxspots);
|
dxspots.sort(SortByQrg);
|
||||||
dxspots.forEach((single) => {
|
dxspots=reduce_spots(dxspots);
|
||||||
spots4chart.push(convert2high(single));
|
dxspots.forEach((single) => {
|
||||||
});
|
spots4chart.push(convert2high(single));
|
||||||
|
});
|
||||||
|
}
|
||||||
bandMapChart=render_chart(band,spots4chart);
|
bandMapChart=render_chart(band,spots4chart);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
set_chart($('#band option:selected').val(),30);
|
set_chart($('#band option:selected').val(),30);
|
||||||
setInterval(function () { update_chart($('#band option:selected').val(),30); },60000);
|
setInterval(function () { update_chart($('#band option:selected').val(),30); },60000);
|
||||||
|
$("#band").on("change",function() {
|
||||||
|
set_chart($('#band option:selected').val(),30);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用