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

@@ -193,7 +193,7 @@ let tableColumns: ColumnsType = [
title: t('views.faultManage.activeAlarm.eventTime'), title: t('views.faultManage.activeAlarm.eventTime'),
dataIndex: 'eventTime', dataIndex: 'eventTime',
align: 'left', align: 'left',
width: 150, width: 200,
customRender(opt) { customRender(opt) {
if (typeof opt.value === 'number') { if (typeof opt.value === 'number') {
return parseDateToStr(+opt.value); return parseDateToStr(+opt.value);
@@ -232,12 +232,6 @@ let tableColumns: ColumnsType = [
align: 'left', align: 'left',
width: 100, width: 100,
}, },
{
title: t('views.ne.neInfo.pvflag'),
dataIndex: 'pvFlag',
align: 'left',
width: 150,
},
{ {
title: t('common.operate'), title: t('common.operate'),
key: 'id', key: 'id',

View File

@@ -132,7 +132,7 @@ let tableColumns: ColumnsType = [
title: t('views.faultManage.activeAlarm.eventTime'), title: t('views.faultManage.activeAlarm.eventTime'),
dataIndex: 'eventTime', dataIndex: 'eventTime',
align: 'left', align: 'left',
width: 150, width: 200,
customRender(opt) { customRender(opt) {
if (typeof opt.value === 'number') { if (typeof opt.value === 'number') {
return parseDateToStr(+opt.value); return parseDateToStr(+opt.value);

View File

@@ -170,7 +170,7 @@ let tableColumns: ColumnsType = [
title: t('views.faultManage.activeAlarm.eventTime'), title: t('views.faultManage.activeAlarm.eventTime'),
dataIndex: 'eventTime', dataIndex: 'eventTime',
align: 'left', align: 'left',
width: 150, width: 200,
customRender(opt) { customRender(opt) {
if (typeof opt.value === 'number') { if (typeof opt.value === 'number') {
return parseDateToStr(+opt.value); return parseDateToStr(+opt.value);
@@ -209,12 +209,6 @@ let tableColumns: ColumnsType = [
align: 'left', align: 'left',
width: 100, width: 100,
}, },
{
title: t('views.ne.neInfo.pvflag'),
dataIndex: 'pvFlag',
align: 'left',
width: 150,
},
{ {
title: t('views.faultManage.activeAlarm.clearUser'), title: t('views.faultManage.activeAlarm.clearUser'),
dataIndex: 'clearUser', dataIndex: 'clearUser',
@@ -232,7 +226,7 @@ let tableColumns: ColumnsType = [
title: t('views.faultManage.activeAlarm.clearTime'), title: t('views.faultManage.activeAlarm.clearTime'),
dataIndex: 'clearTime', dataIndex: 'clearTime',
align: 'left', align: 'left',
width: 150, width: 200,
customRender(opt) { customRender(opt) {
if (typeof opt.value === 'number') { if (typeof opt.value === 'number') {
return parseDateToStr(+opt.value); return parseDateToStr(+opt.value);

View File

@@ -98,7 +98,7 @@ type TabeStateType = {
let tableState: TabeStateType = reactive({ let tableState: TabeStateType = reactive({
loading: false, loading: false,
size: 'middle', size: 'middle',
seached: false, seached: true,
data: [], data: [],
}); });
@@ -177,7 +177,7 @@ let tableColumns: ColumnsType = [
if (!opt.value) return ''; if (!opt.value) return '';
return parseDateToStr(+opt.value); return parseDateToStr(+opt.value);
}, },
width: 150, width: 200,
}, },
{ {
title: t('views.logManage.alarm.logTime'), title: t('views.logManage.alarm.logTime'),

View File

@@ -93,7 +93,7 @@ type TabeStateType = {
let tableState: TabeStateType = reactive({ let tableState: TabeStateType = reactive({
loading: false, loading: false,
size: 'middle', size: 'middle',
seached: false, seached: true,
data: [], data: [],
}); });
@@ -191,7 +191,7 @@ let tableColumns: ColumnsType = reactive([
if (!opt.value) return ''; if (!opt.value) return '';
return parseDateToStr(+opt.value); return parseDateToStr(+opt.value);
}, },
width: 150, width: 200,
}, },
{ {
title: t('views.logManage.forwarding.logTime'), title: t('views.logManage.forwarding.logTime'),
@@ -201,7 +201,7 @@ let tableColumns: ColumnsType = reactive([
if (!opt.value) return ''; if (!opt.value) return '';
return parseDateToStr(+opt.value); return parseDateToStr(+opt.value);
}, },
width: 150, width: 200,
}, },
]); ]);

View File

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

View File

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

View File

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

View File

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

View File

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