style: 登录日志管理页面排版
This commit is contained in:
@@ -100,53 +100,62 @@ let tableColumns: ColumnsType = [
|
|||||||
{
|
{
|
||||||
title: t('views.system.log.login.operId'),
|
title: t('views.system.log.login.operId'),
|
||||||
dataIndex: 'loginId',
|
dataIndex: 'loginId',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.system.log.login.account'),
|
title: t('views.system.log.login.account'),
|
||||||
dataIndex: 'userName',
|
dataIndex: 'userName',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
|
width: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.system.log.login.loginIp'),
|
title: t('views.system.log.login.loginIp'),
|
||||||
dataIndex: 'ipaddr',
|
dataIndex: 'ipaddr',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
|
width: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.system.log.login.loginLoc'),
|
title: t('views.system.log.login.loginLoc'),
|
||||||
dataIndex: 'loginLocation',
|
dataIndex: 'loginLocation',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
|
width: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.system.log.login.os'),
|
title: t('views.system.log.login.os'),
|
||||||
dataIndex: 'os',
|
dataIndex: 'os',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
|
width: 200,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.system.log.login.browser'),
|
title: t('views.system.log.login.browser'),
|
||||||
dataIndex: 'browser',
|
dataIndex: 'browser',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
|
width: 200,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.system.log.login.status'),
|
title: t('views.system.log.login.status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
width: 100,
|
||||||
{
|
},
|
||||||
title: t('views.system.log.login.info'),
|
|
||||||
dataIndex: 'msg',
|
|
||||||
align: 'center',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: t('views.system.log.login.loginTime'),
|
title: t('views.system.log.login.loginTime'),
|
||||||
dataIndex: 'loginTime',
|
dataIndex: 'loginTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 200,
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
if (+opt.value <= 0) return '';
|
if (+opt.value <= 0) return '';
|
||||||
return parseDateToStr(+opt.value);
|
return parseDateToStr(+opt.value);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: t('views.system.log.login.info'),
|
||||||
|
dataIndex: 'msg',
|
||||||
|
align: 'left',
|
||||||
|
width: 200,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
/**表格分页器参数 */
|
/**表格分页器参数 */
|
||||||
@@ -541,7 +550,7 @@ onMounted(() => {
|
|||||||
:data-source="tableState.data"
|
:data-source="tableState.data"
|
||||||
:size="tableState.size"
|
:size="tableState.size"
|
||||||
:row-class-name="fnTableStriped"
|
:row-class-name="fnTableStriped"
|
||||||
:scroll="{ x: true }"
|
:scroll="{ x: tableColumns.length * 150 }"
|
||||||
:pagination="tablePagination"
|
:pagination="tablePagination"
|
||||||
:row-selection="{
|
:row-selection="{
|
||||||
type: 'checkbox',
|
type: 'checkbox',
|
||||||
|
|||||||
Reference in New Issue
Block a user