fix(ui): 修复登录与并发请求并统一表格、主题和页面展示
验证:868 项单测、ESLint、Prettier、UI 依赖审计和差异检查通过。
This commit is contained in:
@@ -24,6 +24,7 @@ import {
|
||||
ChevronDown as ActionChevronDown,
|
||||
ChevronRight as ActionChevronRight,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import { TableRowActions } from '@/components/common/table/TableToolbar';
|
||||
import React, { useState, useEffect, useCallback, useMemo } from 'react';
|
||||
import {
|
||||
Card,
|
||||
@@ -989,7 +990,31 @@ const LevelPolicySetting = () => {
|
||||
title: t('操作'),
|
||||
width: 260,
|
||||
render: (_, r) => (
|
||||
<Space>
|
||||
<TableRowActions
|
||||
items={[
|
||||
{
|
||||
key: 'copy',
|
||||
label: t('复制'),
|
||||
onClick: () => duplicateLevel(type, r.code),
|
||||
title: t('以该等级为模板新建'),
|
||||
},
|
||||
{
|
||||
key: 'delete',
|
||||
label: t('删除'),
|
||||
disabled: deletingCode === `${type}/${r.code}`,
|
||||
danger: true,
|
||||
onClick: () =>
|
||||
Modal.confirm({
|
||||
title: t('确认删除该等级?'),
|
||||
content: t('被用户/企业/默认等级引用时会被拒绝'),
|
||||
okText: t('确认'),
|
||||
cancelText: t('取消'),
|
||||
okButtonProps: { danger: true },
|
||||
onOk: () => deleteLevel(type, r.code),
|
||||
}),
|
||||
},
|
||||
]}
|
||||
>
|
||||
<Button
|
||||
onClick={() => openEditor(type, r.code)}
|
||||
type='link'
|
||||
@@ -997,30 +1022,7 @@ const LevelPolicySetting = () => {
|
||||
>
|
||||
{t('编辑')}
|
||||
</Button>
|
||||
<Tooltip content={t('以该等级为模板新建')}>
|
||||
<Button
|
||||
onClick={() => duplicateLevel(type, r.code)}
|
||||
type='link'
|
||||
size='small'
|
||||
>
|
||||
{t('复制')}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
<Popconfirm
|
||||
title={t('确认删除该等级?')}
|
||||
content={t('被用户/企业/默认等级引用时会被拒绝')}
|
||||
onConfirm={() => deleteLevel(type, r.code)}
|
||||
>
|
||||
<Button
|
||||
loading={deletingCode === `${type}/${r.code}`}
|
||||
type='link'
|
||||
size='small'
|
||||
danger
|
||||
>
|
||||
{t('删除')}
|
||||
</Button>
|
||||
</Popconfirm>
|
||||
</Space>
|
||||
</TableRowActions>
|
||||
),
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user