fix: 更新表格增加minWidth属性
This commit is contained in:
@@ -39,19 +39,22 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '用户账号',
|
||||
field: 'userName',
|
||||
minWidth: 120,
|
||||
},
|
||||
{
|
||||
title: '登录平台',
|
||||
field: 'clientKey',
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
title: 'IP地址',
|
||||
field: 'ipaddr',
|
||||
minWidth: 180,
|
||||
},
|
||||
{
|
||||
title: 'IP地点',
|
||||
field: 'loginLocation',
|
||||
width: 200,
|
||||
minWidth: 160,
|
||||
},
|
||||
{
|
||||
title: '浏览器',
|
||||
@@ -61,6 +64,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
return renderBrowserIcon(row.browser, true) as VNode;
|
||||
},
|
||||
},
|
||||
minWidth: 180,
|
||||
},
|
||||
{
|
||||
title: '系统',
|
||||
@@ -80,6 +84,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
return renderOsIcon(value, true) as VNode;
|
||||
},
|
||||
},
|
||||
minWidth: 180,
|
||||
},
|
||||
{
|
||||
title: '登录结果',
|
||||
@@ -89,20 +94,23 @@ export const columns: VxeGridProps['columns'] = [
|
||||
return renderDict(row.status, DictEnum.SYS_COMMON_STATUS);
|
||||
},
|
||||
},
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
title: '信息',
|
||||
field: 'msg',
|
||||
minWidth: 120,
|
||||
},
|
||||
{
|
||||
title: '日期',
|
||||
field: 'loginTime',
|
||||
minWidth: 160,
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
slots: { default: 'action' },
|
||||
title: '操作',
|
||||
width: 150,
|
||||
width: 'auto',
|
||||
},
|
||||
];
|
||||
|
@@ -24,22 +24,27 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '登录平台',
|
||||
field: 'deviceType',
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
title: '登录账号',
|
||||
field: 'userName',
|
||||
minWidth: 120,
|
||||
},
|
||||
{
|
||||
title: '部门名称',
|
||||
field: 'deptName',
|
||||
minWidth: 160,
|
||||
},
|
||||
{
|
||||
title: 'IP地址',
|
||||
field: 'ipaddr',
|
||||
minWidth: 180,
|
||||
},
|
||||
{
|
||||
title: '登录地址',
|
||||
field: 'loginLocation',
|
||||
minWidth: 160,
|
||||
},
|
||||
{
|
||||
title: '浏览器',
|
||||
@@ -49,6 +54,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
return renderBrowserIcon(row.browser, true) as VNode;
|
||||
},
|
||||
},
|
||||
minWidth: 180,
|
||||
},
|
||||
{
|
||||
title: '系统',
|
||||
@@ -66,6 +72,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
return renderOsIcon(value, true) as VNode;
|
||||
},
|
||||
},
|
||||
minWidth: 180,
|
||||
},
|
||||
{
|
||||
title: '登录时间',
|
||||
@@ -73,6 +80,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
formatter: ({ cellValue }) => {
|
||||
return dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss');
|
||||
},
|
||||
minWidth: 160,
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
|
@@ -50,7 +50,7 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{ field: 'title', title: '系统模块' },
|
||||
{ field: 'title', title: '系统模块', minWidth: 120 },
|
||||
{
|
||||
title: '操作类型',
|
||||
field: 'businessType',
|
||||
@@ -59,10 +59,11 @@ export const columns: VxeGridProps['columns'] = [
|
||||
return renderDict(row.businessType, DictEnum.SYS_OPER_TYPE);
|
||||
},
|
||||
},
|
||||
minWidth: 120,
|
||||
},
|
||||
{ field: 'operName', title: '操作人员' },
|
||||
{ field: 'operIp', title: 'IP地址' },
|
||||
{ field: 'operLocation', title: 'IP信息' },
|
||||
{ field: 'operName', title: '操作人员', minWidth: 120 },
|
||||
{ field: 'operIp', title: 'IP地址', minWidth: 180 },
|
||||
{ field: 'operLocation', title: 'IP信息', minWidth: 160 },
|
||||
{
|
||||
field: 'status',
|
||||
title: '操作状态',
|
||||
@@ -71,8 +72,9 @@ export const columns: VxeGridProps['columns'] = [
|
||||
return renderDict(row.status, DictEnum.SYS_COMMON_STATUS);
|
||||
},
|
||||
},
|
||||
minWidth: 100,
|
||||
},
|
||||
{ field: 'operTime', title: '操作日期', sortable: true },
|
||||
{ field: 'operTime', title: '操作日期', sortable: true, minWidth: 160 },
|
||||
{
|
||||
field: 'costTime',
|
||||
title: '操作耗时',
|
||||
@@ -80,6 +82,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
formatter({ cellValue }) {
|
||||
return `${cellValue} ms`;
|
||||
},
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
|
Reference in New Issue
Block a user