mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-22 07:04:24 +00:00
refactor:个人资料页面日志显示完善
This commit is contained in:
parent
c1a885c863
commit
13353c840c
@ -104,7 +104,14 @@ const baTable = new baTableClass(
|
||||
operatorPlaceholder: '模糊查询',
|
||||
'show-overflow-tooltip': true,
|
||||
},
|
||||
{ label: t('auth/adminLog.url'), prop: 'url', align: 'center', operator: 'LIKE', operatorPlaceholder: '模糊查询' },
|
||||
{
|
||||
label: t('auth/adminLog.url'),
|
||||
prop: 'url',
|
||||
align: 'center',
|
||||
operator: 'LIKE',
|
||||
operatorPlaceholder: '模糊查询',
|
||||
'show-overflow-tooltip': true,
|
||||
},
|
||||
{ label: t('auth/adminLog.ip'), prop: 'ip', align: 'center', operator: 'LIKE', operatorPlaceholder: '模糊查询' },
|
||||
{
|
||||
label: t('auth/adminLog.useragent'),
|
||||
|
@ -69,17 +69,14 @@
|
||||
<el-col :xs="24" :sm="24" :md="24" :lg="14" :offset="1">
|
||||
<el-card header="操作日志" shadow="never">
|
||||
<el-timeline>
|
||||
<el-timeline-item v-for="item in state.log" placement="top" size="large" :timestamp="timeFormat(item.createtime)">
|
||||
<el-card>
|
||||
<h5 class="log-h5">{{ item.title }}</h5>
|
||||
- {{ item.url }}
|
||||
</el-card>
|
||||
<el-timeline-item v-for="item in state.log" size="large" :timestamp="timeFormat(item.createtime)">
|
||||
{{ item.title }}
|
||||
</el-timeline-item>
|
||||
</el-timeline>
|
||||
<el-pagination
|
||||
:currentPage="state.logCurrentPage"
|
||||
:page-size="state.logPageSize"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-sizes="[12, 22, 52, 100]"
|
||||
background
|
||||
:layout="shrink ? 'prev, next, jumper' : 'sizes, ->, prev, pager, next, jumper'"
|
||||
:total="state.logTotal"
|
||||
@ -131,9 +128,11 @@ const state: {
|
||||
formKey: uuid(),
|
||||
buttonLoading: false,
|
||||
log: [],
|
||||
logFilter: {},
|
||||
logFilter: {
|
||||
limit: 12,
|
||||
},
|
||||
logCurrentPage: 1,
|
||||
logPageSize: 10,
|
||||
logPageSize: 12,
|
||||
logTotal: 100,
|
||||
})
|
||||
|
||||
@ -297,10 +296,4 @@ onMounted(() => {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
.mt10 {
|
||||
margin-top: 6px;
|
||||
}
|
||||
.log-h5 {
|
||||
display: inline;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user