2024-05-29 14:30:20: merge [main:6331fc77b72f888c5557a0672ede2191df74f336];
This commit is contained in:
1 parent
36c13e159d
commit
e8dfc2e552
24 files changed
+124
-75
No files matched your search
@@ -108,6 +108,7 @@ const AllVersionsPage = () => {
|
||||
const renderActionsField = (_: unknown, record: VersionType) => {
|
||||
return (
|
||||
<div className="all-version-page__actions-field">
|
||||
<Button.Group className="button_group">
|
||||
<CanEdit>
|
||||
<Tooltip title="Установить выбранную версию">
|
||||
<Popconfirm
|
||||
@@ -144,13 +145,14 @@ const AllVersionsPage = () => {
|
||||
<Button danger icon={<DeleteOutlined />} />
|
||||
</Popconfirm>
|
||||
</CanEdit>
|
||||
</Button.Group>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
const columns: ColumnsType<VersionType> = [
|
||||
{
|
||||
key: 'configVersion',
|
||||
title: 'Версия конфигурации',
|
||||
title: 'Версия',
|
||||
dataIndex: 'configVersion'
|
||||
},
|
||||
{
|
||||
|
||||
@@ -81,6 +81,7 @@ const AppAccessPage = () => {
|
||||
return (
|
||||
<section className="app-access-page">
|
||||
<Column
|
||||
title="Приложения"
|
||||
showUpdateBtn={false}
|
||||
showAddBtn={false}
|
||||
showRemoveBtn={false}
|
||||
|
||||
@@ -40,7 +40,7 @@ const ApplicationsPage = () => {
|
||||
data: applicationsGroup = [],
|
||||
isError: isErrorApplicationsGroup,
|
||||
isLoading: isLoadingApplicationsGroup
|
||||
} = applicationsGroupApi.useGetApplicationsGroupByDomainIdQuery({ id: 2 })
|
||||
} = applicationsGroupApi.useGetApplicationsGroupByDomainIdQuery({ id: 1 })
|
||||
|
||||
const [createApplicationsGroup] =
|
||||
applicationsGroupApi.useCreateApplicationsGroupMutation()
|
||||
@@ -110,7 +110,7 @@ const ApplicationsPage = () => {
|
||||
const newService: NewApplicationsGroupType = {
|
||||
name: data.name,
|
||||
description: data.description,
|
||||
domainId: 2
|
||||
domainId: 1
|
||||
}
|
||||
createApplicationsGroup(newService)
|
||||
.unwrap()
|
||||
@@ -134,7 +134,7 @@ const ApplicationsPage = () => {
|
||||
const updateService: UpdateApplicationsGroupType = {
|
||||
name: data.name,
|
||||
description: data.description,
|
||||
domainId: 2,
|
||||
domainId: 1,
|
||||
id: Number(selectedItemId)
|
||||
}
|
||||
|
||||
@@ -150,7 +150,10 @@ const ApplicationsPage = () => {
|
||||
const handleRemoveApplicationsGtoup = () => {
|
||||
deleteApplicationsGroup([Number(selectedItemId)])
|
||||
.unwrap()
|
||||
.then(() => message.success('Элемент удален'))
|
||||
.then(() => {
|
||||
message.success('Элемент удален')
|
||||
navigate(routePaths.applicationsGroup)
|
||||
})
|
||||
.catch(() => message.error('Ошибка удаления элемента'))
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ import { useEffect, useMemo, useState } from 'react'
|
||||
import { Outlet, useNavigate, useParams } from 'react-router-dom'
|
||||
|
||||
import ActiveConfigurationsTable from '@components/ActiveConfigurationsTable'
|
||||
import CanEdit from '@components/CanEdit'
|
||||
import CompareVersionModal from '@components/CompareVersionModal'
|
||||
import ConfigSchemaModal from '@components/ConfigSchemaModal'
|
||||
import ConfigurationPreviewModal from '@components/ConfigurationPreviewModal'
|
||||
@@ -98,19 +97,8 @@ const Configurations = () => {
|
||||
className="configurations____buttons__show-schema-btn"
|
||||
onClick={() => setIsModalOpen(true)}
|
||||
>
|
||||
Текущая схема конфигурации
|
||||
Текущая схема
|
||||
</Button>
|
||||
<CanEdit>
|
||||
<Button
|
||||
type="primary"
|
||||
className="configurations__buttons__new-config-brn"
|
||||
onClick={() => {
|
||||
// TODO создание новой конфигурации
|
||||
}}
|
||||
>
|
||||
Создать конфигурацию
|
||||
</Button>
|
||||
</CanEdit>
|
||||
</div>
|
||||
<ActiveConfigurationsTable
|
||||
isActiveTable
|
||||
|
||||
@@ -49,7 +49,8 @@ const ModulesPage = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (!isPageAvailable) {
|
||||
navigate(routePaths.error)
|
||||
navigate(routePaths.profile)
|
||||
message.error('Страница не найдена')
|
||||
}
|
||||
}, [isPageAvailable])
|
||||
|
||||
@@ -176,7 +177,7 @@ const ModulesPage = () => {
|
||||
size="small"
|
||||
showZero
|
||||
count={(item.status && item.status.length) || 0}
|
||||
color={!item.status || !item.status.length ? '' : 'blue'}
|
||||
color={!item.status || !item.status.length ? '' : 'cyan'}
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -194,13 +194,6 @@ const UserEditor = () => {
|
||||
name="lastName"
|
||||
/>
|
||||
</div>
|
||||
<div className="user-editor__content__description">
|
||||
<FormComponents.FormInput
|
||||
label="Описание"
|
||||
control={control}
|
||||
name="description"
|
||||
/>
|
||||
</div>
|
||||
<div className="user-editor__content__email">
|
||||
<FormComponents.FormInput
|
||||
label="Email"
|
||||
@@ -220,10 +213,18 @@ const UserEditor = () => {
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="user-editor__content__description">
|
||||
<FormComponents.FormTextArea
|
||||
autoSize={{ minRows: 2, maxRows: 6 }}
|
||||
label="Описание"
|
||||
control={control}
|
||||
name="description"
|
||||
/>
|
||||
</div>
|
||||
<div className="user-editor__content__roles">
|
||||
<FormComponents.FormSelect
|
||||
label="Добавить роль"
|
||||
mode="multiple"
|
||||
label="Роли"
|
||||
optionFilterProp="label"
|
||||
disabled={!hasPermission(PermissionKeysType.write)}
|
||||
control={control}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
&__header {
|
||||
border-bottom: 1px solid $border-color;
|
||||
padding: $basic-padding *4 $basic-padding*3;
|
||||
padding: 22px 24px 0;
|
||||
|
||||
&__nav {
|
||||
display: flex;
|
||||
@@ -44,7 +44,7 @@
|
||||
&__content {
|
||||
&__wrap {
|
||||
overflow-x: scroll;
|
||||
height: calc(100vh - 200px);
|
||||
height: calc(100vh - 80px);
|
||||
}
|
||||
|
||||
.ant-form-item {
|
||||
|
||||
Reference in new issue
Block a user