diff --git a/src/components/Statistics.vue b/src/components/Statistics.vue index 477bb17..aafbb51 100644 --- a/src/components/Statistics.vue +++ b/src/components/Statistics.vue @@ -44,7 +44,7 @@ const fetchTypeMapping = async (token) => { const fetchAndProcessEvents = async (token) => { try { let currentPage = 1; - const pageSize = 2000; // 每次加载 2000 条 + const pageSize = 1000; // 每次加载 2000 条 let allEvents = []; // 第一次请求,获取告警总数和首批数据 @@ -110,6 +110,7 @@ const initChart = () => { }, itemGap: 20, data: seriesData.value.map(item => item.name), + show : true }, series: [ { @@ -118,6 +119,7 @@ const initChart = () => { radius: '50%', center: ['50%', '150px'], data: seriesData.value, + data: [], emphasis: { itemStyle: { shadowBlur: 10, @@ -126,7 +128,7 @@ const initChart = () => { } }, label: { - show: true, + show: false, }, stillShowZeroSum: false, } @@ -171,15 +173,20 @@ onMounted(async () => {