diff --git a/src/pages/TelemetryView/ActiveMessagesOnline.jsx b/src/pages/TelemetryView/ActiveMessagesOnline.jsx index db7f8b7..73df56a 100644 --- a/src/pages/TelemetryView/ActiveMessagesOnline.jsx +++ b/src/pages/TelemetryView/ActiveMessagesOnline.jsx @@ -21,30 +21,26 @@ const columns = [ { title: 'Дата', dataIndex: 'date', - render: (item) => moment(item).format('DD MMM YYYY, HH:MM:ss'), + render: (item) => moment(item).format('DD MMM YYYY, HH:mm:ss'), sorter: (a, b) => new Date(b.date) - new Date(a.date), sortDirections: ['descend', 'ascend'], - }, - { + }, { title: 'Глубина', key: 'wellDepth', dataIndex: 'wellDepth', - render: (_, item) => Глубина {_} м., - }, - { + render: depth => Глубина {depth.toFixed(2)} м., + }, { title: 'Категория', dataIndex: 'categoryId', render: (_, item) => categoryDictionary[item.categoryId]?.title, style: (_, item) => categoryDictionary[item.categoryId]?.style, sorter: (a, b) => a.categoryId - b.categoryId, sortDirections: ['descend', 'ascend'], - }, - { + }, { title: 'Сообщение', dataIndex: 'message', onFilter: (value, record) => record.name.indexOf(value) === 0, - }, - { + }, { title: 'Пользователь', dataIndex: 'user', },