ыы
This commit is contained in:
parent
8f189d05d4
commit
948ebe5d3b
2 changed files with 20 additions and 17 deletions
|
|
@ -1,6 +1,4 @@
|
|||
import {
|
||||
ControlOutlined,
|
||||
DatabaseOutlined,
|
||||
DeleteOutlined,
|
||||
EditOutlined,
|
||||
PlusOutlined,
|
||||
|
|
@ -15,7 +13,6 @@ import {
|
|||
Checkbox,
|
||||
Col,
|
||||
Collapse,
|
||||
Segmented,
|
||||
Divider,
|
||||
Form,
|
||||
Input,
|
||||
|
|
@ -265,19 +262,9 @@ export function ObjectsPage({ mode }: Props) {
|
|||
marginBottom: 16,
|
||||
}}
|
||||
>
|
||||
<Space align="center" size={16}>
|
||||
<Typography.Title level={4} style={{ margin: 0 }}>
|
||||
{mode === 'inventory' ? 'Инвентарь — Объекты' : 'Работа — Объекты'}
|
||||
</Typography.Title>
|
||||
<Segmented
|
||||
value={mode}
|
||||
options={[
|
||||
{ label: 'Инвентарь', value: 'inventory', icon: <DatabaseOutlined /> },
|
||||
{ label: 'Работа', value: 'work', icon: <ControlOutlined /> },
|
||||
]}
|
||||
onChange={(val) => navigate(val === 'inventory' ? '/inventory/objects' : '/work/objects')}
|
||||
/>
|
||||
</Space>
|
||||
<Typography.Title level={4} style={{ margin: 0 }}>
|
||||
{mode === 'inventory' ? 'Инвентарь — Объекты' : 'Работа — Объекты'}
|
||||
</Typography.Title>
|
||||
<Space>
|
||||
<Input.Search
|
||||
placeholder="Поиск по названию, городу, клиенту..."
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
import {
|
||||
ControlOutlined,
|
||||
DatabaseOutlined,
|
||||
PlayCircleOutlined,
|
||||
ThunderboltOutlined,
|
||||
} from '@ant-design/icons'
|
||||
|
|
@ -11,6 +13,7 @@ import {
|
|||
Input,
|
||||
Modal,
|
||||
Row,
|
||||
Segmented,
|
||||
Select,
|
||||
Space,
|
||||
Spin,
|
||||
|
|
@ -238,7 +241,20 @@ export function WorkObjectDetailPage() {
|
|||
|
||||
return (
|
||||
<div>
|
||||
<Breadcrumb style={{ marginBottom: 16 }} items={breadcrumbItems} />
|
||||
<Row justify="space-between" align="middle" style={{ marginBottom: 16 }}>
|
||||
<Col><Breadcrumb items={breadcrumbItems} /></Col>
|
||||
<Col>
|
||||
{/* TODO (Вариант В): заменить Segmented на <Tabs> с вкладками Устройства / Задачи / Снапшоты */}
|
||||
<Segmented
|
||||
value="work"
|
||||
options={[
|
||||
{ label: 'Инвентарь', value: 'inventory', icon: <DatabaseOutlined /> },
|
||||
{ label: 'Работа', value: 'work', icon: <ControlOutlined /> },
|
||||
]}
|
||||
onChange={(val) => { if (val === 'inventory') navigate(`/inventory/objects/${objId}`) }}
|
||||
/>
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
<Row gutter={16} style={{ marginBottom: 16 }}>
|
||||
<Col flex="auto">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue