refactor(developer-config): 移除开发者配置页面相关代码和文档
- 删除应用配置页面及相关组件,重构路由为 /developer/config/[id].vue - 移除开发者文档页面及其导航与样式实现 - 清理开发者侧功能完善工作日志文件 - 删除全局.gitignore配置文件,清理无用忽略规则 - 优化应用配置页面的参数读取和路由结构,解决刷新404问题 - 解决数据库配置唯一键冲突,调整保存逻辑避免重复插入 - 移除对后端配置加密字段的 secret 标记,修正加密异常问题
This commit is contained in:
@@ -1,100 +1,116 @@
|
||||
import type { Component } from 'vue'
|
||||
import {
|
||||
AppstoreOutlined,
|
||||
AuditOutlined,
|
||||
DashboardOutlined,
|
||||
TeamOutlined,
|
||||
SettingOutlined,
|
||||
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,
|
||||
GitlabOutlined,
|
||||
KeyOutlined,
|
||||
ThunderboltOutlined,
|
||||
ToolOutlined,
|
||||
UnorderedListOutlined,
|
||||
UserAddOutlined,
|
||||
UserOutlined,
|
||||
UserSwitchOutlined,
|
||||
} from '@ant-design/icons-vue'
|
||||
|
||||
export type AdminNavItem = {
|
||||
key: string
|
||||
label: string
|
||||
icon?: Component
|
||||
// AdminNavLink: 单条菜单项
|
||||
export interface AdminNavLink {
|
||||
to: string
|
||||
}
|
||||
|
||||
export type AdminNavGroup = {
|
||||
key: string
|
||||
label: string
|
||||
icon?: Component
|
||||
iconColor?: string
|
||||
icon?: any
|
||||
badge?: string
|
||||
disabled?: boolean
|
||||
children: AdminNavItem[]
|
||||
}
|
||||
|
||||
export type AdminNavLink = Omit<AdminNavGroup, 'children'> & {
|
||||
to: string
|
||||
// AdminNavGroup: 含有子菜单的分组
|
||||
export interface AdminNavGroup {
|
||||
key: string
|
||||
label: string
|
||||
icon?: any
|
||||
children: AdminNavLink[]
|
||||
}
|
||||
|
||||
export type AdminNavEntry = AdminNavGroup | AdminNavLink
|
||||
// 联合类型
|
||||
export type AdminNavEntry = AdminNavLink | AdminNavGroup
|
||||
|
||||
export const adminNav: AdminNavEntry[] = [
|
||||
{
|
||||
key: 'admin-home',
|
||||
label: '管理首页',
|
||||
icon: DashboardOutlined,
|
||||
to: '/admin',
|
||||
label: '首页总览',
|
||||
icon: DashboardOutlined,
|
||||
},
|
||||
{
|
||||
key: 'admin-app-review',
|
||||
label: '应用审核',
|
||||
icon: AuditOutlined,
|
||||
badge: 'NEW',
|
||||
to: '/admin/app-review',
|
||||
},
|
||||
{
|
||||
key: 'admin-git-review',
|
||||
label: 'Git 审核',
|
||||
icon: GitlabOutlined,
|
||||
to: '/admin/git-review',
|
||||
},
|
||||
{
|
||||
key: 'admin-apps',
|
||||
label: '应用管理',
|
||||
icon: AppstoreOutlined,
|
||||
to: '/admin/apps',
|
||||
},
|
||||
{
|
||||
key: 'admin-market',
|
||||
label: '应用市场',
|
||||
icon: ShopOutlined,
|
||||
to: '/admin/market',
|
||||
},
|
||||
{
|
||||
key: 'admin-users',
|
||||
label: '用户管理',
|
||||
icon: TeamOutlined,
|
||||
children: [
|
||||
{ key: 'admin-users-list', label: '所有用户', icon: TeamOutlined, to: '/admin/users' },
|
||||
{ key: 'admin-developers', label: '开发者', icon: TeamOutlined, to: '/admin/developers' },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'admin-tickets',
|
||||
label: '工单处理',
|
||||
key: 'product',
|
||||
label: '产品生命周期数字化',
|
||||
icon: CustomerServiceOutlined,
|
||||
to: '/admin/tickets',
|
||||
},
|
||||
{
|
||||
key: 'admin-content',
|
||||
label: '内容管理',
|
||||
icon: FileTextOutlined,
|
||||
children: [
|
||||
{ key: 'admin-articles', label: '文章管理', icon: FileTextOutlined, to: '/admin/articles' },
|
||||
{ key: 'admin-article-categories', label: '文章分类', icon: FileTextOutlined, to: '/admin/article-categories' },
|
||||
{ key: 'admin-announcements', label: '公告管理', icon: FileTextOutlined, to: '/admin/announcements' },
|
||||
{ to: '/admin/product/design', label: '产品设计', icon: FileTextOutlined },
|
||||
{ to: '/admin/product/marketing', label: '营销管理', icon: ShopOutlined },
|
||||
{ to: '/admin/product/service', label: '售后服务', icon: KeyOutlined },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'admin-settings',
|
||||
label: '平台设置',
|
||||
icon: SettingOutlined,
|
||||
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,
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user