diff --git a/ruoyi-admin/src/main/resources/templates/system/usernum/usernum.html b/ruoyi-admin/src/main/resources/templates/system/usernum/usernum.html index fb660a4..cb2bd45 100644 --- a/ruoyi-admin/src/main/resources/templates/system/usernum/usernum.html +++ b/ruoyi-admin/src/main/resources/templates/system/usernum/usernum.html @@ -29,10 +29,13 @@
-
+
+
+
+
-
+
@@ -251,6 +254,41 @@ console.log(response.data.data) } }) + var centerChart = echarts.init(document.getElementById('centerMain')); + axios.post(prefix + '/countCheckMonth').then(response => { + if (response.data.code == web_status.SUCCESS){ + centerChart.setOption({ + title: { + text: '已登记统计' + }, + tooltip: {}, + legend: { + data:['人数'] + }, + xAxis: { + data: response.data.data.xAxisData, + axisLabel: { + rotate: 45, // 旋转标签的角度 + margin: 10, // 标签与坐标轴的间距 + }, + }, + yAxis: { + + }, + series: [ + { + name: '人数', + type: 'bar', + data: response.data.data.yAxisData, + itemStyle: { + color: '#2ee37b' + } + } + ] + }); + console.log(response.data.data) + } + }) var rightMain = echarts.init(document.getElementById('rightMain')); axios.post(prefix + '/countUser').then(response => { if (response.data.code == web_status.SUCCESS){