|
@@ -498,6 +498,11 @@ const getData = () => {
|
|
|
});
|
|
|
proxy.post("/contract/countrySalesStatistics", queryForm).then((res) => {
|
|
|
sourceList.value.scatterData = res;
|
|
|
+ //根据amount字段从大到小
|
|
|
+ res.sort((a, b) => b.amount - a.amount);
|
|
|
+ //截取前十条
|
|
|
+ if(res.length > 10) res = res.slice(0, 10);
|
|
|
+
|
|
|
optionOne.data.series[0].data = res.map((x) => ({
|
|
|
value: x.amount,
|
|
|
name: x.countryName,
|