style: 数据列表列宽固定操作
This commit is contained in:
@@ -78,37 +78,49 @@ let tableColumns: ColumnsType = [
|
|||||||
title: t('common.rowId'),
|
title: t('common.rowId'),
|
||||||
dataIndex: 'id',
|
dataIndex: 'id',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '网元类型',
|
title: '网元类型',
|
||||||
dataIndex: 'neType',
|
dataIndex: 'neType',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 4,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警网元标识',
|
title: '告警网元标识',
|
||||||
dataIndex: 'neId',
|
dataIndex: 'neId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 4,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警唯一标识',
|
title: '告警唯一标识',
|
||||||
dataIndex: 'alarmId',
|
dataIndex: 'alarmId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警流水号',
|
title: '告警流水号',
|
||||||
dataIndex: 'alarmSeq',
|
dataIndex: 'alarmSeq',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警前转对象',
|
title: '告警前转对象',
|
||||||
dataIndex: 'toUser',
|
dataIndex: 'toUser',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警标题',
|
title: '告警标题',
|
||||||
dataIndex: 'alarmTitle',
|
dataIndex: 'alarmTitle',
|
||||||
key: 'alarmTitle',
|
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 5,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '告警内容',
|
||||||
|
dataIndex: 'operResult',
|
||||||
|
align: 'left',
|
||||||
|
width: 6,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警产生时间',
|
title: '告警产生时间',
|
||||||
@@ -118,6 +130,7 @@ let tableColumns: ColumnsType = [
|
|||||||
if (!opt.value) return '';
|
if (!opt.value) return '';
|
||||||
return parseDateToStr(opt.value);
|
return parseDateToStr(opt.value);
|
||||||
},
|
},
|
||||||
|
width: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '记录时间',
|
title: '记录时间',
|
||||||
@@ -127,6 +140,7 @@ let tableColumns: ColumnsType = [
|
|||||||
if (!opt.value) return '';
|
if (!opt.value) return '';
|
||||||
return parseDateToStr(opt.value);
|
return parseDateToStr(opt.value);
|
||||||
},
|
},
|
||||||
|
width: 5,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -306,16 +320,8 @@ onMounted(() => {
|
|||||||
:data-source="tableState.data"
|
:data-source="tableState.data"
|
||||||
:size="tableState.size"
|
:size="tableState.size"
|
||||||
:pagination="tablePagination"
|
:pagination="tablePagination"
|
||||||
:scroll="{ x: true }"
|
:scroll="{ x: 1200, y: 400 }"
|
||||||
>
|
>
|
||||||
<template #bodyCell="{ column, record }">
|
|
||||||
<template v-if="column.key === 'alarmTitle'">
|
|
||||||
<a-tooltip>
|
|
||||||
<template #title>{{ record.operResult }}</template>
|
|
||||||
<div class="alarmTitleText">{{ record.alarmTitle }}</div>
|
|
||||||
</a-tooltip>
|
|
||||||
</template>
|
|
||||||
</template>
|
|
||||||
</a-table>
|
</a-table>
|
||||||
</a-card>
|
</a-card>
|
||||||
</PageContainer>
|
</PageContainer>
|
||||||
|
|||||||
Reference in New Issue
Block a user