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 @@ - + 、 + - +