feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等

This commit is contained in:
zhanjunhao
2026-11-10 17:27:36 +08:00
parent 43e7fbc20e
commit 6ea8a0f7c2
195 changed files with 3546 additions and 1984 deletions
@@ -16,6 +16,15 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import {
ChevronRight as ActionChevronRight,
ChevronDown as ActionChevronDown,
Users as ActionUsers,
Plus as ActionPlus,
Pencil as ActionPencil,
Trash2 as ActionTrash2,
LayoutGrid as ActionLayoutGrid,
} from '@/components/common/icons/ActionIcons';
import React, {
memo,
useCallback,
@@ -50,17 +59,7 @@ import {
Tooltip,
Typography,
} from '@/components/ui';
import {
Plus,
Pencil,
Trash2,
LayoutGrid,
Network,
Building2,
ChevronDown,
ChevronRight,
Users,
} from 'lucide-react';
import { Network, Building2 } from 'lucide-react';
import OrgScopedLimitButtons from './OrgScopedLimitButtons';
import { buildDeptFullNameMap } from './deptTree';
import { renderQuota } from '../../../helpers/render';
@@ -188,7 +187,7 @@ const DeptNode = memo(({ data, selected }) => {
>
<button
type='button'
className='nodrag inline-flex h-5 items-center gap-0.5 rounded-md px-1 text-xs text-gray-500 transition-colors hover:bg-brand/10 hover:text-brand dark:text-gray-400'
className='app-action-button nodrag inline-flex h-5 items-center gap-0.5 rounded-md px-1 text-xs text-gray-500 transition-colors hover:bg-brand/10 hover:text-brand dark:text-gray-400'
onClick={(e) => {
e.stopPropagation();
onToggleCollapse(dept.id);
@@ -197,11 +196,11 @@ const DeptNode = memo(({ data, selected }) => {
>
{collapsed ? (
<>
<ChevronRight size={13} />
<ActionChevronRight size={13} />
<span className='font-medium'>+{hiddenCount}</span>
</>
) : (
<ChevronDown size={13} />
<ActionChevronDown size={13} />
)}
</button>
</Tooltip>
@@ -218,14 +217,14 @@ const DeptNode = memo(({ data, selected }) => {
<Tooltip content={t('查看直属成员')}>
<button
type='button'
className='nodrag inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-xs text-gray-500 transition-colors hover:bg-brand/10 hover:text-brand dark:text-gray-400'
className='app-action-button nodrag inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-xs text-gray-500 transition-colors hover:bg-brand/10 hover:text-brand dark:text-gray-400'
onClick={(e) => {
e.stopPropagation();
onShowMembers(dept);
}}
onDoubleClick={(e) => e.stopPropagation()}
>
<Users size={11} />
<ActionUsers size={11} />
{memberCount}
</button>
</Tooltip>
@@ -299,7 +298,7 @@ const DeptNode = memo(({ data, selected }) => {
size='small'
theme='borderless'
type='tertiary'
icon={<Plus size={14} />}
icon={<ActionPlus size={14} />}
onClick={() => onAddChild(dept)}
/>
</Tooltip>
@@ -309,7 +308,7 @@ const DeptNode = memo(({ data, selected }) => {
size='small'
theme='borderless'
type='tertiary'
icon={<Pencil size={14} />}
icon={<ActionPencil size={14} />}
onClick={() => onEdit(dept)}
/>
</Tooltip>
@@ -322,7 +321,7 @@ const DeptNode = memo(({ data, selected }) => {
size='small'
theme='borderless'
type='danger'
icon={<Trash2 size={14} />}
icon={<ActionTrash2 size={14} />}
/>
</Popconfirm>
</div>
@@ -727,7 +726,7 @@ const FlowInner = ({
<Button
size='small'
theme='light'
icon={<LayoutGrid size={13} />}
icon={<ActionLayoutGrid size={13} />}
onClick={relayout}
>
{t('整理布局')}
@@ -16,6 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { RefreshCw as ActionRefreshCw } from '@/components/common/icons/ActionIcons';
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import {
@@ -30,7 +31,6 @@ import { Table, Empty, Spin, Progress } from '@/components/ui';
import '../../../styles/org-center.css';
import { VChart } from '@visactor/react-vchart';
import { initVChartTheme } from '@/components/ui/chartTheme';
import { RefreshCw } from 'lucide-react';
import { API } from '../../../helpers/api';
import { showError } from '../../../helpers';
import { renderQuota } from '../../../helpers/render';
@@ -547,7 +547,7 @@ const OrgAnalyticsPanel = ({
<AntButton
className='oc-ea-refresh'
aria-label={t('刷新分析')}
icon={<RefreshCw size={16} />}
icon={<ActionRefreshCw size={16} />}
loading={loading}
onClick={() => fetchAll(true)}
/>
@@ -16,6 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { Layers as ActionLayers } from '@/components/common/icons/ActionIcons';
import React, { useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Button, Select, Toast, Tooltip } from '@/components/ui';
@@ -183,7 +184,7 @@ const OrgScopedLimitButtons = ({
size: 'small',
theme: 'light',
type: modelConfigured ? 'primary' : 'tertiary',
icon: <Layers size={14} />,
icon: <ActionLayers size={14} />,
})}
onClick={openModelModal}
>
@@ -203,7 +204,7 @@ const OrgScopedLimitButtons = ({
size: 'small',
theme: 'light',
type: groupConfigured ? 'primary' : 'tertiary',
icon: <Layers size={14} />,
icon: <ActionLayers size={14} />,
})}
onClick={openGroupsModal}
>
@@ -17,10 +17,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import {
Download as ActionDownload,
RefreshCw as ActionRefreshCw,
} from '@/components/common/icons/ActionIcons';
import TableEmpty from '../../../components/common/table/TableEmpty';
import React, { useMemo } from 'react';
import { Card, Table, Tag } from 'antd';
import { Clock, Download, RefreshCw } from 'lucide-react';
import { Clock } from 'lucide-react';
import { Button, Pagination } from '@/components/ui';
import { useTaskLogsData } from '../../../hooks/task-logs/useTaskLogsData';
import { useIsMobile } from '../../../hooks/common/useIsMobile';
@@ -226,7 +230,7 @@ const OrgTaskRecords = () => {
)}
{/* 导出当前页为 CSV,空列表时禁用 */}
<Button
icon={<Download size={16} />}
icon={<ActionDownload size={16} />}
onClick={() => exportTaskLogsPageCsv(logs, isAdminUser, t)}
disabled={!logs || logs.length === 0}
>
@@ -234,7 +238,7 @@ const OrgTaskRecords = () => {
</Button>
{/* 与筛选“搜索”同一处理函数(同步 URL 筛选条件并重新加载第 1 页) */}
<Button
icon={<RefreshCw size={16} />}
icon={<ActionRefreshCw size={16} />}
onClick={() => taskLogsData.refresh()}
loading={loading}
>