🎨 新增用户登录日志功能

This commit is contained in:
2025-09-08 01:48:17 +08:00
parent 568575d8da
commit 773f13104b
3 changed files with 98 additions and 6 deletions

View File

@@ -12,7 +12,7 @@
<div class="gva-btn-list">
<el-button type="info" @click="exportOrders">导出订单</el-button>
</div>
<!-- 订单统计信息 -->
<div style="margin-bottom: 20px; padding: 15px; background: #f8f9fa; border-radius: 8px;">
<el-row :gutter="20">
@@ -66,7 +66,8 @@
<el-table-column type="index" label="序号" width="60" align="center" />
<el-table-column prop="order_no" label="订单号" align="center" min-width="180" />
<el-table-column prop="title" label="商品名称" align="center" min-width="150" />
<el-table-column prop="name" label="用户姓名" align="center" width="100" />
<el-table-column prop="name" label="用户姓名" align="center" width="100" />
<el-table-column prop="user_id" label="用户ID" align="center" width="100" />
<el-table-column label="价格" align="center" width="100">
<template #default="{ row }">
<span class="text-green-600 font-bold">{{ formatPrice(row.price) }}</span>
@@ -106,7 +107,7 @@
</template>
</el-table-column>
</el-table>
<!-- 分页 -->
<div style="margin-top: 20px; text-align: right;">
<el-pagination
@@ -308,7 +309,7 @@ function getOrderStats() {
.gva-btn-list {
margin-bottom: 20px;
}
.el-row {
.el-col {
.el-statistic {
@@ -317,12 +318,12 @@ function getOrderStats() {
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
.el-statistic__number {
font-size: 24px;
font-weight: bold;
}
.el-statistic__label {
color: #666;
margin-top: 8px;