Commit 0123b070 authored by KeYong's avatar KeYong

更新UI列宽

parent 0a107a33
...@@ -9,6 +9,7 @@ const getColumns = () => { ...@@ -9,6 +9,7 @@ const getColumns = () => {
return [ return [
{ {
title: '序号', title: '序号',
width: '2%',
render: (text, record, index) => `${index + 1}` render: (text, record, index) => `${index + 1}`
}, },
{ {
...@@ -22,7 +23,7 @@ const getColumns = () => { ...@@ -22,7 +23,7 @@ const getColumns = () => {
title: '设备名称', title: '设备名称',
dataIndex: 'fireEquipmentName', dataIndex: 'fireEquipmentName',
key: 'fireEquipmentName', key: 'fireEquipmentName',
width: '20%', width: '15%',
className: 'uant-table-thead' className: 'uant-table-thead'
}, },
{ {
...@@ -43,7 +44,7 @@ const getColumns = () => { ...@@ -43,7 +44,7 @@ const getColumns = () => {
title: '指标单位', title: '指标单位',
dataIndex: 'eq_point_unit', dataIndex: 'eq_point_unit',
key: 'eq_point_unit', key: 'eq_point_unit',
width: '10%', width: '5%',
className: 'uant-table-thead' className: 'uant-table-thead'
}, },
{ {
...@@ -64,14 +65,14 @@ const getColumns = () => { ...@@ -64,14 +65,14 @@ const getColumns = () => {
title: '保护对象', title: '保护对象',
dataIndex: 'equipmentName', dataIndex: 'equipmentName',
key: 'equipmentName', key: 'equipmentName',
width: '10%', width: '20%',
className: 'uant-table-thead' className: 'uant-table-thead'
}, },
{ {
title: '上报时间', title: '上报时间',
dataIndex: 'create_date', dataIndex: 'create_date',
key: 'create_date', key: 'create_date',
width: '20%', width: '10%',
render: text => moment(text).format('YYYY-MM-DD HH:mm:ss'), render: text => moment(text).format('YYYY-MM-DD HH:mm:ss'),
className: 'uant-table-thead' className: 'uant-table-thead'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment