You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.0 KiB
56 lines
1.0 KiB
import { STATUS_LABEL_MAPPER } from "../../config";
|
|
|
|
export const columns = [
|
|
{
|
|
title: "Адрес",
|
|
dataIndex: "address",
|
|
key: "address",
|
|
width: 200,
|
|
},
|
|
{
|
|
title: "Район",
|
|
dataIndex: "area",
|
|
key: "area",
|
|
width: "120px",
|
|
ellipsis: true,
|
|
},
|
|
{
|
|
title: "Округ",
|
|
dataIndex: "district",
|
|
key: "district",
|
|
width: "120px",
|
|
ellipsis: true,
|
|
},
|
|
{
|
|
title: "Название",
|
|
dataIndex: "name",
|
|
key: "name",
|
|
width: "120px",
|
|
ellipsis: true,
|
|
},
|
|
{
|
|
title: "Категория",
|
|
dataIndex: "category",
|
|
key: "category",
|
|
width: "120px",
|
|
ellipsis: true,
|
|
},
|
|
{
|
|
title: "Статус",
|
|
dataIndex: "status",
|
|
key: "status",
|
|
width: "120px",
|
|
ellipsis: true,
|
|
render: (_, record) => {
|
|
return STATUS_LABEL_MAPPER[record.status];
|
|
},
|
|
},
|
|
{
|
|
title: "Прогнозный трафик",
|
|
dataIndex: "prediction_current",
|
|
key: "prediction_current",
|
|
width: "120px",
|
|
ellipsis: true,
|
|
},
|
|
];
|