Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Starter Web Vue
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
product
kim3-web-vue
Starter Web Vue
Commits
191e934a
Commit
191e934a
authored
Jun 28, 2021
by
水落(YangLei)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 完善登录日志页面
parent
c479bc48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
7 deletions
+24
-7
src/components/table/index.vue
src/components/table/index.vue
+2
-7
src/pages/system/view/log/login_log/index.vue
src/pages/system/view/log/login_log/index.vue
+22
-0
No files found.
src/components/table/index.vue
View file @
191e934a
...
@@ -76,13 +76,8 @@ const initQuery = {
...
@@ -76,13 +76,8 @@ const initQuery = {
export
default
{
export
default
{
props
:
{
props
:
{
url
:
String
,
url
:
String
,
buttons
:
{
buttons
:
{
type
:
Array
,
default
:
()
=>
[]
},
type
:
Array
,
addBtn
:
{
type
:
Object
},
default
:
()
=>
[],
},
addBtn
:
{
type
:
Object
,
},
formatData
:
Function
,
formatData
:
Function
,
noPage
:
Boolean
,
noPage
:
Boolean
,
},
},
...
...
src/pages/system/view/log/login_log/index.vue
View file @
191e934a
<
template
>
<
template
>
<my-table
url=
"/api/v1/logger/login"
rowKey=
"logId"
ref=
"table"
>
<my-table
url=
"/api/v1/logger/login"
rowKey=
"logId"
ref=
"table"
>
<template
#search
="
{query}">
<template
#search
="
{query}">
<a-form-model-item
label=
"开始时间"
>
<a-date-picker
show-time
v-model=
"query.startTime"
valueFormat=
"YYYY-MM-DD HH:mm:ss"
/>
</a-form-model-item>
<a-form-model-item
label=
"结束时间"
>
<a-date-picker
show-time
v-model=
"query.endTime"
valueFormat=
"YYYY-MM-DD HH:mm:ss"
/>
</a-form-model-item>
<a-form-model-item
label=
"登录用户"
>
<a-input
v-model=
"query.userId"
/>
</a-form-model-item>
<a-form-model-item
label=
"登录IP"
>
<a-form-model-item
label=
"登录IP"
>
<a-input
v-model=
"query.loginIp"
/>
<a-input
v-model=
"query.loginIp"
/>
</a-form-model-item>
</a-form-model-item>
<a-form-model-item
label=
"事件类型"
>
<a-select
v-model=
"query.loginType"
style=
"width: 170px"
allowClear
>
<a-select-option
value=
"LOGIN"
>
登录系统
</a-select-option>
<a-select-option
value=
"LOGOUT"
>
退出系统
</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item
label=
"事件状态"
>
<a-select
v-model=
"query.isSuccess"
style=
"width: 170px"
allowClear
>
<a-select-option
value=
"0"
>
失败
</a-select-option>
<a-select-option
value=
"1"
>
成功
</a-select-option>
</a-select>
</a-form-model-item>
</
template
>
</
template
>
<a-table-column
title=
"用户Id"
data-index=
"userId"
/>
<a-table-column
title=
"登录用户"
data-index=
"userName"
/>
<a-table-column
title=
"登录用户"
data-index=
"userName"
/>
<a-table-column
title=
"登录IP"
data-index=
"loginIp"
/>
<a-table-column
title=
"登录IP"
data-index=
"loginIp"
/>
<a-table-column
title=
"事件类型"
data-index=
"loginTypeName"
/>
<a-table-column
title=
"事件类型"
data-index=
"loginTypeName"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment