ыы
This commit is contained in:
parent
8f189d05d4
commit
948ebe5d3b
2 changed files with 20 additions and 17 deletions
|
|
@ -1,6 +1,4 @@
|
||||||
import {
|
import {
|
||||||
ControlOutlined,
|
|
||||||
DatabaseOutlined,
|
|
||||||
DeleteOutlined,
|
DeleteOutlined,
|
||||||
EditOutlined,
|
EditOutlined,
|
||||||
PlusOutlined,
|
PlusOutlined,
|
||||||
|
|
@ -15,7 +13,6 @@ import {
|
||||||
Checkbox,
|
Checkbox,
|
||||||
Col,
|
Col,
|
||||||
Collapse,
|
Collapse,
|
||||||
Segmented,
|
|
||||||
Divider,
|
Divider,
|
||||||
Form,
|
Form,
|
||||||
Input,
|
Input,
|
||||||
|
|
@ -265,19 +262,9 @@ export function ObjectsPage({ mode }: Props) {
|
||||||
marginBottom: 16,
|
marginBottom: 16,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Space align="center" size={16}>
|
<Typography.Title level={4} style={{ margin: 0 }}>
|
||||||
<Typography.Title level={4} style={{ margin: 0 }}>
|
{mode === 'inventory' ? 'Инвентарь — Объекты' : 'Работа — Объекты'}
|
||||||
{mode === 'inventory' ? 'Инвентарь — Объекты' : 'Работа — Объекты'}
|
</Typography.Title>
|
||||||
</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>
|
|
||||||
<Space>
|
<Space>
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder="Поиск по названию, городу, клиенту..."
|
placeholder="Поиск по названию, городу, клиенту..."
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
import {
|
import {
|
||||||
|
ControlOutlined,
|
||||||
|
DatabaseOutlined,
|
||||||
PlayCircleOutlined,
|
PlayCircleOutlined,
|
||||||
ThunderboltOutlined,
|
ThunderboltOutlined,
|
||||||
} from '@ant-design/icons'
|
} from '@ant-design/icons'
|
||||||
|
|
@ -11,6 +13,7 @@ import {
|
||||||
Input,
|
Input,
|
||||||
Modal,
|
Modal,
|
||||||
Row,
|
Row,
|
||||||
|
Segmented,
|
||||||
Select,
|
Select,
|
||||||
Space,
|
Space,
|
||||||
Spin,
|
Spin,
|
||||||
|
|
@ -238,7 +241,20 @@ export function WorkObjectDetailPage() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<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 }}>
|
<Row gutter={16} style={{ marginBottom: 16 }}>
|
||||||
<Col flex="auto">
|
<Col flex="auto">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue