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

This commit is contained in:
zhanjunhao
2026-11-10 17:27:36 +08:00
parent 5463a0c772
commit ed9820e6a6
195 changed files with 3546 additions and 1984 deletions
@@ -16,6 +16,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import {
RefreshCw as ActionRefreshCw,
Plus as ActionPlus,
Upload as ActionUpload,
} from '@/components/common/icons/ActionIcons';
import React, { useState, useEffect, useCallback } from 'react';
import {
Card,
@@ -33,16 +38,7 @@ import {
Spin,
Upload,
} from '@/components/ui';
import {
Plus,
Pencil,
Trash2,
Power,
PowerOff,
RefreshCw,
Users,
Upload as UploadIcon,
} from 'lucide-react';
import { Users } from 'lucide-react';
import { API, showError, showSuccess } from '../../helpers';
import { useTranslation } from 'react-i18next';
@@ -313,20 +309,14 @@ const CustomerServiceSetting = () => {
render: (_, record) => (
<Space>
<Button
icon={
record.status === 1 ? <PowerOff size={14} /> : <Power size={14} />
}
size='small'
type={record.status === 1 ? 'danger' : 'primary'}
onClick={() => handleToggleStatus(record)}
type='link'
size='small'
danger={(record.status === 1 ? 'danger' : 'primary') === 'danger'}
>
{record.status === 1 ? t('下线') : t('上线')}
</Button>
<Button
icon={<Pencil size={14} />}
size='small'
onClick={() => openModal(record)}
>
<Button onClick={() => openModal(record)} type='link' size='small'>
{t('编辑')}
</Button>
<Popconfirm
@@ -334,7 +324,7 @@ const CustomerServiceSetting = () => {
content={t('确定要删除这个客服吗?')}
onConfirm={() => handleDelete(record.id)}
>
<Button icon={<Trash2 size={14} />} size='small' type='danger'>
<Button type='link' size='small' danger>
{t('删除')}
</Button>
</Popconfirm>
@@ -392,14 +382,14 @@ const CustomerServiceSetting = () => {
</Space>
<Space>
<Button
icon={<RefreshCw size={14} />}
icon={<ActionRefreshCw size={14} />}
onClick={fetchAgents}
loading={loading}
>
{t('刷新')}
</Button>
<Button
icon={<Plus size={14} />}
icon={<ActionPlus size={14} />}
type='primary'
onClick={() => openModal()}
>
@@ -457,7 +447,7 @@ const CustomerServiceSetting = () => {
customRequest={(fileInfo) => handleUpload(fileInfo, 'avatar')}
>
<Button
icon={<UploadIcon size={14} />}
icon={<ActionUpload size={14} />}
loading={uploadingAvatar}
>
{t('上传')}
@@ -497,7 +487,7 @@ const CustomerServiceSetting = () => {
}
>
<Button
icon={<UploadIcon size={14} />}
icon={<ActionUpload size={14} />}
loading={uploadingQrcode}
>
{t('上传')}