style: 表格时间字段宽度width200px

This commit is contained in:
TsMask
2025-03-13 11:05:47 +08:00
parent 2678ab3bfb
commit b740f6b5fd
10 changed files with 18 additions and 31 deletions

View File

@@ -108,7 +108,7 @@ let tableColumns: ColumnsType = [
title: t('views.system.dept.createTime'),
dataIndex: 'createTime',
align: 'center',
width: 150,
width: 200,
customRender(opt) {
if (+opt.value <= 0) return '';
return parseDateToStr(+opt.value);

View File

@@ -134,13 +134,13 @@ let tableColumns: ColumnsType = [
title: t('views.system.log.login.status'),
dataIndex: 'statusFlag',
key: 'statusFlag',
align: 'center',
align: 'left',
width: 100,
},
{
title: t('views.system.log.login.loginTime'),
dataIndex: 'loginTime',
align: 'center',
align: 'left',
width: 200,
customRender(opt) {
if (+opt.value <= 0) return '';
@@ -151,7 +151,6 @@ let tableColumns: ColumnsType = [
title: t('views.system.log.login.info'),
dataIndex: 'msg',
align: 'left',
width: 200,
},
];
@@ -534,7 +533,7 @@ onMounted(() => {
:loading="tableState.loading"
:data-source="tableState.data"
:size="tableState.size"
:scroll="{ x: tableColumns.length * 150 }"
:scroll="{ x: tableColumns.length * 180 }"
:pagination="tablePagination"
:row-selection="{
type: 'checkbox',

View File

@@ -139,13 +139,13 @@ let tableColumns: ColumnsType = [
dataIndex: 'statusFlag',
key: 'statusFlag',
align: 'left',
width: 150,
width: 100,
},
{
title: t('views.system.log.operate.operDate'),
dataIndex: 'operaTime',
align: 'left',
width: 150,
width: 200,
customRender(opt) {
if (+opt.value <= 0) return '';
return parseDateToStr(+opt.value);
@@ -156,7 +156,7 @@ let tableColumns: ColumnsType = [
dataIndex: 'costTime',
key: 'costTime',
align: 'right',
width: 150,
width: 100,
customRender(opt) {
return `${opt.value} ms`;
},

View File

@@ -144,7 +144,7 @@ let tableColumns: ColumnsType = [
title: t('views.system.role.createTime'),
dataIndex: 'createTime',
align: 'center',
width: 150,
width: 200,
customRender(opt) {
if (+opt.value <= 0) return '';
return parseDateToStr(+opt.value);

View File

@@ -158,7 +158,7 @@ let tableColumns: ColumnsType = [
title: t('views.system.user.loginTime'),
dataIndex: 'loginTime',
align: 'left',
width: 150,
width: 200,
customRender(opt) {
if (+opt.value <= 0) return '';
return parseDateToStr(+opt.value);