From 773f13104beef6f14916941a531f4aaf6dbde459 Mon Sep 17 00:00:00 2001 From: Echo <1711788888@qq.com> Date: Mon, 8 Sep 2025 01:48:17 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=97=A5=E5=BF=97=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user/index.js | 10 +++++ src/config.js | 81 ++++++++++++++++++++++++++++++++++ src/view/order/order/index.vue | 13 +++--- 3 files changed, 98 insertions(+), 6 deletions(-) diff --git a/src/api/user/index.js b/src/api/user/index.js index 891b0a9..5730620 100644 --- a/src/api/user/index.js +++ b/src/api/user/index.js @@ -75,3 +75,13 @@ export const setVip = (data) => { data }) } + + +// GetLoginInfo +export const getLoginInfo = (params) => { + return service({ + url: '/app_user/login/log', + method: 'get', + params + }) +} \ No newline at end of file diff --git a/src/config.js b/src/config.js index b9dbc60..a50fc01 100644 --- a/src/config.js +++ b/src/config.js @@ -291,6 +291,86 @@ export const ORDER_TABLE_CONFIG = { } ] } + +// 用户登录日志搜索配置 +export const LOGIN_LOG_SEARCH_CONFIG = [ + { + type: 'input', + prop: 'user_id', + label: '用户ID', + placeholder: '请输入用户ID', + }, + { + type: 'input', + prop: 'user_name', + label: '用户名称', + placeholder: '请输入用户名称', + } +] + +// 用户登录日志表格配置 +export const LOGIN_LOG_TABLE_CONFIG = { + index: true, + schemes: [ + { + attrs: { + label: '用户ID', + prop: 'user_id', + align: 'center' + } + }, + { + attrs: { + label: '用户名称', + prop: 'user_name', + align: 'center' + } + }, + { + attrs: { + label: '手机号', + prop: 'phone', + align: 'center' + } + }, + { + attrs: { + label: '登录IP', + prop: 'ip', + align: 'center' + } + }, + { + attrs: { + label: '登录地址', + prop: 'address', + align: 'center' + } + }, + { + attrs: { + label: '设备信息', + prop: 'device', + align: 'center' + } + }, + { + attrs: { + label: '登录方式', + prop: 'mode', + align: 'center' + } + }, + { + attrs: { + label: '登录时间', + prop: 'login_time', + align: 'center' + }, + slot: 'login_time' + } + ] +} // 用户列表 export const USER_TABLE_CONFIG = { index: true, @@ -365,6 +445,7 @@ export const USER_TABLE_CONFIG = { } ] } + // 文章列表 export const ARTICLE_TABLE_CONFIG = { index: true, diff --git a/src/view/order/order/index.vue b/src/view/order/order/index.vue index 5ce95ba..ffe5ab5 100644 --- a/src/view/order/order/index.vue +++ b/src/view/order/order/index.vue @@ -12,7 +12,7 @@
导出订单
- +
@@ -66,7 +66,8 @@ - + 、 + - +