style: 表格时间字段宽度width200px
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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`;
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user