style: 数据列表列宽固定操作
This commit is contained in:
@@ -81,34 +81,38 @@ let tableColumns: ColumnsType = [
|
||||
title: '网元类型',
|
||||
dataIndex: 'neType',
|
||||
align: 'center',
|
||||
width: 2,
|
||||
},
|
||||
{
|
||||
title: '网元内部标识',
|
||||
dataIndex: 'neId',
|
||||
align: 'center',
|
||||
width: 2,
|
||||
},
|
||||
{
|
||||
title: '版本',
|
||||
dataIndex: 'version',
|
||||
align: 'center',
|
||||
width: 2,
|
||||
},
|
||||
{
|
||||
title: '升级前版本',
|
||||
dataIndex: 'preVersion',
|
||||
align: 'center',
|
||||
width: '60px',
|
||||
width: 2,
|
||||
},
|
||||
{
|
||||
title: '回退前版本',
|
||||
dataIndex: 'newVersion',
|
||||
align: 'center',
|
||||
width: '60px',
|
||||
width: 2,
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
dataIndex: 'status',
|
||||
key: 'status',
|
||||
align: 'center',
|
||||
width: 2,
|
||||
},
|
||||
{
|
||||
title: '激活时间',
|
||||
@@ -118,6 +122,7 @@ let tableColumns: ColumnsType = [
|
||||
if (!opt.value) return '';
|
||||
return parseDateToStr(opt.value);
|
||||
},
|
||||
width: 2,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -254,7 +259,7 @@ watch(
|
||||
:loading="tableState.loading"
|
||||
:data-source="tableState.data"
|
||||
:size="tableState.size"
|
||||
:scroll="{ y: 400, x: true }"
|
||||
:scroll="{ x: 1200, y: 400 }"
|
||||
:pagination="tablePagination"
|
||||
>
|
||||
</a-table>
|
||||
|
||||
@@ -76,16 +76,19 @@ let tableColumns: ColumnsType = [
|
||||
title: t('views.configManage.softwareManage.neType'),
|
||||
dataIndex: 'neType',
|
||||
align: 'center',
|
||||
width: 2,
|
||||
},
|
||||
{
|
||||
title: t('views.configManage.softwareManage.fileName'),
|
||||
dataIndex: 'fileName',
|
||||
align: 'center',
|
||||
width: 2,
|
||||
},
|
||||
{
|
||||
title: t('views.configManage.softwareManage.version'),
|
||||
dataIndex: 'version',
|
||||
align: 'center',
|
||||
width: 2,
|
||||
},
|
||||
{
|
||||
title: t('views.configManage.softwareManage.updateTime'),
|
||||
@@ -95,16 +98,20 @@ let tableColumns: ColumnsType = [
|
||||
if (!opt.value) return '';
|
||||
return parseDateToStr(opt.value);
|
||||
},
|
||||
width: 2,
|
||||
},
|
||||
{
|
||||
title: t('views.configManage.softwareManage.description'),
|
||||
dataIndex: 'comment',
|
||||
align: 'center',
|
||||
width: 2,
|
||||
},
|
||||
{
|
||||
title: t('common.operate'),
|
||||
key: 'id',
|
||||
align: 'center',
|
||||
fixed: 'right',
|
||||
width: 2,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -691,7 +698,7 @@ onMounted(() => {
|
||||
:data-source="tableState.data"
|
||||
:size="tableState.size"
|
||||
:pagination="tablePagination"
|
||||
:scroll="{ x: true }"
|
||||
:scroll="{ x: 1200, y: 400 }"
|
||||
>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'id'">
|
||||
|
||||
Reference in New Issue
Block a user