refactor: 移除SQL审计+站内导航,AIOps子菜单6→3精简,服务器批量删除加确认框

- 移除SQL审计菜单和路由
- 移除站内导航菜单和路由
- AIOps智能子菜单从6个精简为3个:智能助手、告警分析、容量预测
- 移除智能运维中心(空壳)、故障诊断(与告警分析重复)、脚本生成(并入助手)
- 服务器删除/批量删除添加Dialog确认框
- 删除/批量删除添加toast成功反馈
This commit is contained in:
attacker committed 2026-06-15 02:36:47 +08:00
1 parent 3be53b89fa
commit d1415561ef
3 files changed
+25 -19

No files matched your search

+3 -9
View File
@@ -26,7 +26,6 @@ import {
Globe,
MapPin,
Key,
Compass,
Brain,
FileTerminal,
Activity,
@@ -96,7 +95,6 @@ const menuItems: MenuItem[] = [
],
},
{ id: 'approval', name: '资源申请', icon: CheckSquare, path: '/approval' },
{ id: 'navigation', name: '站内导航', icon: Compass, path: '/navigation' },
{
id: 'automation',
name: '自动化运维',
@@ -105,7 +103,6 @@ const menuItems: MenuItem[] = [
{ id: 'cronjobs', name: '定时任务', icon: PlayCircle, path: '/cronjobs' },
{ id: 'scripts', name: '脚本库', icon: FileCode, path: '/scripts' },
{ id: 'ansible', name: 'Ansible', icon: FileTerminal, path: '/ansible' },
{ id: 'sql-audit', name: 'SQL审计', icon: Shield, path: '/sql-audit' },
],
},
{
@@ -113,12 +110,9 @@ const menuItems: MenuItem[] = [
name: 'AIOps智能',
icon: Brain,
children: [
{ id: 'ai-hub', name: '智能运维中心', icon: Brain, path: '/ai-hub' },
{ id: 'ai-assistant', name: 'AI智能助手', icon: Bot, path: '/ai-assistant' },
{ id: 'ai-alert-analyzer', name: '告警智能分析', icon: AlertTriangle, path: '/ai-alert-analyzer' },
{ id: 'ai-script-generator', name: 'AI脚本生成', icon: FileCode, path: '/ai-script-generator' },
{ id: 'ai-fault-diagnosis', name: '故障智能诊断', icon: Activity, path: '/ai-fault-diagnosis' },
{ id: 'ai-predictive', name: 'AI预测分析', icon: BarChart3, path: '/ai-predictive' },
{ id: 'ai-assistant', name: '智能助手', icon: Bot, path: '/ai-assistant' },
{ id: 'ai-alert-analyzer', name: '告警分析', icon: AlertTriangle, path: '/ai-alert-analyzer' },
{ id: 'ai-predictive', name: '容量预测', icon: BarChart3, path: '/ai-predictive' },
],
},
{