From 35136f62690919ebb60e7a3b627a8ad0079a42a7 Mon Sep 17 00:00:00 2001 From: goodmice Date: Mon, 25 Oct 2021 14:57:06 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=BE=D1=80=D0=BC=D0=B0=D1=82=20=D0=B4?= =?UTF-8?q?=D0=B0=D1=82=D1=8B=20=D0=BD=D0=B0=20=D1=81=D1=82=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=86=D0=B5=20=D0=BC=D0=BE=D0=BD=D0=B8=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=BD=D0=B3=D0=B0=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/TelemetryView/ActiveMessagesOnline.jsx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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', },