fix: 修改地图分数逻辑

This commit is contained in:
chenjinsong
2022-11-30 14:34:32 +08:00
parent e89fc78aca
commit ad0c9850dc
2 changed files with 4 additions and 2 deletions

View File

@@ -154,8 +154,9 @@ export default {
} }
}, },
loadMarkerData (imageSeries, data) { loadMarkerData (imageSeries, data) {
data = data.filter(d => d.score || d.score === 0)
imageSeries.data = data.map(r => ({ imageSeries.data = data.map(r => ({
score: r.score || '–', score: r.score,
name: r.province || r.country, name: r.province || r.country,
throughput: valueToRangeValue(r.throughBitsRate, unitTypes.bps).join(' '), throughput: valueToRangeValue(r.throughBitsRate, unitTypes.bps).join(' '),
id: r.serverId, id: r.serverId,

View File

@@ -187,8 +187,9 @@ export default {
} }
}, },
loadMarkerData (imageSeries, data) { loadMarkerData (imageSeries, data) {
data = data.filter(d => d.score || d.score === 0)
imageSeries.data = data.map(r => ({ imageSeries.data = data.map(r => ({
score: r.score || '–', score: r.score,
name: r.province || r.country, name: r.province || r.country,
throughput: valueToRangeValue(r.throughBitsRate, unitTypes.bps).join(' '), throughput: valueToRangeValue(r.throughBitsRate, unitTypes.bps).join(' '),
id: r.serverId, id: r.serverId,