- 删除应用配置页面及相关组件,重构路由为 /developer/config/[id].vue - 移除开发者文档页面及其导航与样式实现 - 清理开发者侧功能完善工作日志文件 - 删除全局.gitignore配置文件,清理无用忽略规则 - 优化应用配置页面的参数读取和路由结构,解决刷新404问题 - 解决数据库配置唯一键冲突,调整保存逻辑避免重复插入 - 移除对后端配置加密字段的 secret 标记,修正加密异常问题
117 lines
3.1 KiB
TypeScript
117 lines
3.1 KiB
TypeScript
import {
|
|
AppstoreOutlined,
|
|
DesktopOutlined,
|
|
FileTextOutlined,
|
|
ShoppingOutlined,
|
|
ShoppingCartOutlined,
|
|
TrophyOutlined,
|
|
DollarOutlined,
|
|
TeamOutlined,
|
|
NotificationOutlined,
|
|
FundOutlined,
|
|
SettingOutlined,
|
|
ApartmentOutlined,
|
|
AuditOutlined,
|
|
CarOutlined,
|
|
ContainerOutlined,
|
|
CustomerServiceOutlined,
|
|
DashboardOutlined,
|
|
FireOutlined,
|
|
GoldOutlined,
|
|
LineChartOutlined,
|
|
MedicineBoxOutlined,
|
|
PercentageOutlined,
|
|
SafetyOutlined,
|
|
ScanOutlined,
|
|
ScheduleOutlined,
|
|
SecurityScanOutlined,
|
|
ShopOutlined,
|
|
KeyOutlined,
|
|
ThunderboltOutlined,
|
|
ToolOutlined,
|
|
UnorderedListOutlined,
|
|
UserAddOutlined,
|
|
UserOutlined,
|
|
UserSwitchOutlined,
|
|
} from '@ant-design/icons-vue'
|
|
|
|
// AdminNavLink: 单条菜单项
|
|
export interface AdminNavLink {
|
|
to: string
|
|
label: string
|
|
icon?: any
|
|
badge?: string
|
|
}
|
|
|
|
// AdminNavGroup: 含有子菜单的分组
|
|
export interface AdminNavGroup {
|
|
key: string
|
|
label: string
|
|
icon?: any
|
|
children: AdminNavLink[]
|
|
}
|
|
|
|
// 联合类型
|
|
export type AdminNavEntry = AdminNavLink | AdminNavGroup
|
|
|
|
export const adminNav: AdminNavEntry[] = [
|
|
{
|
|
to: '/admin',
|
|
label: '首页总览',
|
|
icon: DashboardOutlined,
|
|
},
|
|
{
|
|
key: 'product',
|
|
label: '产品生命周期数字化',
|
|
icon: CustomerServiceOutlined,
|
|
children: [
|
|
{ to: '/admin/product/design', label: '产品设计', icon: FileTextOutlined },
|
|
{ to: '/admin/product/marketing', label: '营销管理', icon: ShopOutlined },
|
|
{ to: '/admin/product/service', label: '售后服务', icon: KeyOutlined },
|
|
],
|
|
},
|
|
{
|
|
key: 'production',
|
|
label: '生产执行数字化',
|
|
icon: ThunderboltOutlined,
|
|
children: [
|
|
{ to: '/admin/production/schedule', label: '计划排程', icon: ScheduleOutlined },
|
|
{ to: '/admin/production/control', label: '生产管控', icon: DesktopOutlined },
|
|
{ to: '/admin/production/quality', label: '质量管理', icon: SafetyOutlined },
|
|
{ to: '/admin/production/equipment', label: '设备管理', icon: ToolOutlined },
|
|
{ to: '/admin/production/safety', label: '安全生产', icon: SecurityScanOutlined },
|
|
{ to: '/admin/production/energy', label: '能耗管理', icon: FireOutlined },
|
|
],
|
|
},
|
|
{
|
|
key: 'supply',
|
|
label: '供应链数字化',
|
|
icon: ApartmentOutlined,
|
|
children: [
|
|
{ to: '/admin/supply/purchase', label: '采购管理', icon: ShoppingOutlined },
|
|
{ to: '/admin/supply/warehouse', label: '仓储物流', icon: ContainerOutlined },
|
|
],
|
|
},
|
|
{
|
|
key: 'management',
|
|
label: '管理决策数字化',
|
|
icon: FundOutlined,
|
|
children: [
|
|
{ to: '/admin/management/finance', label: '财务管理', icon: DollarOutlined },
|
|
{ to: '/admin/management/hr', label: '人力资源', icon: TeamOutlined },
|
|
{ to: '/admin/management/office', label: '协同办公', icon: NotificationOutlined },
|
|
{ to: '/admin/management/decision', label: '决策支持', icon: LineChartOutlined },
|
|
],
|
|
},
|
|
{
|
|
to: '/admin/account',
|
|
label: '个人信息',
|
|
icon: UserOutlined,
|
|
},
|
|
{
|
|
to: '/admin/settings',
|
|
label: '系统设置',
|
|
icon: SettingOutlined,
|
|
},
|
|
]
|