Compare commits
No commits in common. "2331e3613d2d744039263792faaeac7024f66c22" and "f963d48b4634e3eab641adcf3263414aa0e4e9f6" have entirely different histories.
2331e3613d
...
f963d48b46
@ -4,8 +4,6 @@ import { exportBulkForms, exportSingleForm } from '../../utils/exportFile';
|
|||||||
import { ExportExitButton, ExportWithTextButton } from './Buttons/ButtonsActions';
|
import { ExportExitButton, ExportWithTextButton } from './Buttons/ButtonsActions';
|
||||||
import { CardsSkeleton, TaskCardsSkeleton } from './Skeleton';
|
import { CardsSkeleton, TaskCardsSkeleton } from './Skeleton';
|
||||||
|
|
||||||
const exportButtonSx = { height: '2.5rem', minHeight: '2.5rem', whiteSpace: 'nowrap' };
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {Object} props
|
* @param {Object} props
|
||||||
@ -99,18 +97,19 @@ export function PaginatedList({
|
|||||||
<Box sx={{ display: 'flex', flexDirection: 'column', height: '100%', width: '100%' }}>
|
<Box sx={{ display: 'flex', flexDirection: 'column', height: '100%', width: '100%' }}>
|
||||||
{/* Верхняя панель с экспортом и дополнительными действиями */}
|
{/* Верхняя панель с экспортом и дополнительными действиями */}
|
||||||
{enableExport && (
|
{enableExport && (
|
||||||
<Box sx={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', flexWrap: 'wrap', gap: '1rem', mb: '1rem' }}>
|
<Box sx={{ display: 'flex', justifyContent: 'space-between' }}>
|
||||||
<div>{filterActions}</div>
|
<div>{filterActions}</div>
|
||||||
<Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'flex-end', flexWrap: 'wrap', gap: '1rem', ml: 'auto' }}>
|
<Box sx={{ display: 'flex', justifyContent: 'space-between', mb: '1rem' }}>
|
||||||
{exportMode && (
|
{exportMode && (
|
||||||
<Typography variant='body2' color='textSecondary' sx={{ display: 'flex', alignItems: 'center', minHeight: '2.5rem', whiteSpace: 'nowrap' }}>
|
<Typography variant='body2' color='textSecondary'>
|
||||||
Выделено {entityName}: {exportList.length}
|
Выделено {entityName}: {exportList.length}
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
<Stack direction='row' spacing='0.5rem' alignItems='center'>
|
<Box sx={{ flex: 1 }} />
|
||||||
|
<Stack direction='row' spacing='0.5rem'>
|
||||||
{!exportMode ? (
|
{!exportMode ? (
|
||||||
<>
|
<>
|
||||||
<ExportWithTextButton text='Пакетный экспорт' onClick={() => setExportMode(true)} sx={exportButtonSx} />
|
<ExportWithTextButton text='Пакетный экспорт' onClick={() => setExportMode(true)} sx={{ height: '2.5rem' }} />
|
||||||
{extraActions}
|
{extraActions}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
@ -119,9 +118,9 @@ export function PaginatedList({
|
|||||||
text='Экспортировать'
|
text='Экспортировать'
|
||||||
onClick={handleBulkExport}
|
onClick={handleBulkExport}
|
||||||
disabled={exportList.length === 0}
|
disabled={exportList.length === 0}
|
||||||
sx={exportButtonSx}
|
sx={{ height: '2.5rem' }}
|
||||||
/>
|
/>
|
||||||
<ExportExitButton onClick={() => setExportMode(false)} sx={exportButtonSx} />
|
<ExportExitButton onClick={() => setExportMode(false)} />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import styled from '@emotion/styled';
|
import styled from '@emotion/styled';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
|
|
||||||
|
import { Stack } from '@mui/material';
|
||||||
import { HeaderSwitch } from '../../components/HeaderMenu/HeaderSwitch';
|
import { HeaderSwitch } from '../../components/HeaderMenu/HeaderSwitch';
|
||||||
import { PrimaryButton } from '../../components/common/Buttons/Buttons';
|
import { PrimaryButton } from '../../components/common/Buttons/Buttons';
|
||||||
import { TransitionSvg } from '../../components/common/icons/icons';
|
import { TransitionSvg } from '../../components/common/icons/icons';
|
||||||
@ -95,15 +96,17 @@ function DictsNavigatorPage() {
|
|||||||
<FeatureItem>Отслеживание метаданных филиалов</FeatureItem>
|
<FeatureItem>Отслеживание метаданных филиалов</FeatureItem>
|
||||||
<FeatureItem>Удобная табличная форма представления данных</FeatureItem>
|
<FeatureItem>Удобная табличная форма представления данных</FeatureItem>
|
||||||
</FeatureList>
|
</FeatureList>
|
||||||
<PrimaryButton
|
<PrimaryButton sx={{ height: '2.75rem' }} onClick={handleNavigateToVSP}>
|
||||||
|
<Stack
|
||||||
sx={{
|
sx={{
|
||||||
height: '2.75rem',
|
gap: '.25rem',
|
||||||
'& .MuiButton-startIcon': { alignItems: 'center', marginLeft: 0, marginRight: '0.375rem' },
|
flexDirection: 'row',
|
||||||
'& .MuiButton-startIcon svg': { display: 'block', flexShrink: 0 },
|
alignItems: 'center',
|
||||||
}}
|
justifyContent: 'center',
|
||||||
startIcon={<TransitionSvg />}
|
}}>
|
||||||
onClick={handleNavigateToVSP}>
|
<TransitionSvg />
|
||||||
Открыть справочник объектов
|
<p>Открыть справочник объектов</p>
|
||||||
|
</Stack>
|
||||||
</PrimaryButton>
|
</PrimaryButton>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user