【优化】优化后台登录后面板【最近7天订单统计显示效果】。

This commit is contained in:
jianweie code
2023-03-07 00:12:33 +08:00
parent 3d8a6b3ec8
commit 014a74cb3f
3 changed files with 108 additions and 57 deletions

View File

@@ -120,9 +120,8 @@
<td>
<script type="text/html" template>
{{ layui.setter.version }}
<a href="http://www.coreshop.cn/" target="_blank" style="padding-left: 10px;">日志</a>
<a href="https://www.coreshop.cn/UpdateLog" target="_blank" style="padding-left: 10px;">更新日志</a>
</script>
<a href="http://www.coreshop.cn/" target="_blank" style="padding-left: 5px;">检查更新</a>
</td>
</tr>
<tr>
@@ -268,7 +267,7 @@
, data: data.data
, page: false //开启分页
, cols: [[ //表头
{ field: 'os', title: '浏览器类型' }
{ field: 'os', title: '状态' }
, { field: 'username', title: '登录用户' }
, { field: 'createTime', title: '记录时间' }
, { field: 'ip', title: '登录IP' }
@@ -326,32 +325,15 @@
function ordersEcharts() {
var myChart = echarts.init(document.getElementById('main'));
var option = {
title: {
text: '最近7天订单量统计'
},
tooltip: {
show: true
},
legend: {},
yAxis: [{
type: 'value'
}],
xAxis: [],
series: []
};
coreHelper.Post("Api/Tools/GetOrdersStatistics",
{}, function (data) {
if (data.code == 0) {
myChart.setOption({
legend: data.data.legend,
xAxis: data.data.xAxis,
series: data.data.series
});
//刷新折线图
option = data.data.option;
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
}
});
myChart.setOption(option);
}
function usersEcharts() {