From 5022ff2842f8606f0be613a8243e8dff2e58554d Mon Sep 17 00:00:00 2001
From: doublex001 <16157008+doublex001@user.noreply.gitee.com>
Date: Thu, 3 Sep 2026 13:47:16 +0800
Subject: [PATCH] =?UTF-8?q?refactor(menu):=20=E5=90=8E=E5=8F=B0=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E5=85=A5=E5=8F=A3=E8=BF=81=E8=87=B3=E4=BC=81=E4=B8=9A?=
=?UTF-8?q?=E7=AB=AF=EF=BC=8C=E6=B8=85=E7=90=86=20C=20=E7=AB=AF=E8=8F=9C?=
=?UTF-8?q?=E5=8D=95=E9=87=8D=E5=A4=8D=20id?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- MOCK_MENU_ITEMS 移除「运营规则配置」「数据审计报告」:后台管理术语不再
暴露给求职者端菜单(这两个页面在企业端「我的-管理后台」重新落地,非孤儿页)
- 修复 MOCK_MENU_ITEMS 中 enterprise-certification 重复出现两次导致
React key 警告的问题(保留「企业入驻」)
- EnterpriseOverview 类型新增 manageActions 字段;新增
MOCK_ENTERPRISE_MANAGE_ACTIONS 并接入企业总览
- 企业端「我的」页新增 ManageList「管理后台」分区:纵向列表,不挤占
快捷入口已有的 6 项横排布局
---
app/(enterprise)/enterprise-overview.tsx | 60 ++++++++++++++++++++++++
src/api/api.ts | 15 ++++--
src/types/enterprise.ts | 5 ++
3 files changed, 77 insertions(+), 3 deletions(-)
diff --git a/app/(enterprise)/enterprise-overview.tsx b/app/(enterprise)/enterprise-overview.tsx
index 9e3f560..6df86b5 100644
--- a/app/(enterprise)/enterprise-overview.tsx
+++ b/app/(enterprise)/enterprise-overview.tsx
@@ -162,6 +162,38 @@ function JobEvaluationList({ jobs }: { jobs: JobEvaluationSummary[] }) {
);
}
+/* ===================== 子组件:管理后台 ===================== */
+
+/**
+ * 管理后台入口:运营规则配置 / 数据审计等低频管理操作。
+ * 单独成区纵向排列,既不挤占快捷入口的横排位,也避免后台术语出现在求职者端。
+ */
+function ManageList({ actions }: { actions: EnterpriseQuickAction[] }) {
+ const router = useRouter();
+ if (actions.length === 0) return null;
+ return (
+
+ 管理后台
+ {actions.map((action) => {
+ const color = COLOR_TOKENS[action.color] ?? colors.primary;
+ return (
+ action.route && router.push(action.route as any)}
+ >
+
+
+
+ {action.label}
+
+
+ );
+ })}
+
+ );
+}
+
/* ===================== 页面主组件 ===================== */
export default function EnterpriseOverviewScreen() {
@@ -196,6 +228,7 @@ export default function EnterpriseOverviewScreen() {
+
);
@@ -430,4 +463,31 @@ const styles = StyleSheet.create({
fontWeight: '500',
marginTop: 2,
},
+ standaloneTitle: {
+ fontSize: 16,
+ fontWeight: '700',
+ color: colors.textPrimary,
+ marginBottom: 8,
+ },
+ manageRow: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ paddingVertical: 12,
+ borderBottomWidth: 1,
+ borderBottomColor: colors.borderLight,
+ },
+ manageIcon: {
+ width: 38,
+ height: 38,
+ borderRadius: 10,
+ justifyContent: 'center',
+ alignItems: 'center',
+ marginRight: 12,
+ },
+ manageLabel: {
+ flex: 1,
+ fontSize: 15,
+ fontWeight: '500',
+ color: colors.textPrimary,
+ },
});
diff --git a/src/api/api.ts b/src/api/api.ts
index 69e6125..f88d3d3 100644
--- a/src/api/api.ts
+++ b/src/api/api.ts
@@ -634,9 +634,7 @@ const MOCK_MENU_ITEMS: MenuItem[] = [
{ id: 'job-management', title: '岗位管理', icon: 'business-outline', route: '/job-management' },
{ id: 'talent-recommendation', title: '人才推荐', icon: 'people-outline', route: '/talent-recommendation' },
{ id: 'enterprise-chat', title: '企业沟通', icon: 'chatbubble-outline', route: '/enterprise-chat' },
- { id: 'operation-rules', title: '运营规则配置', icon: 'options-outline', route: '/operation-rules' },
- { id: 'audit-report', title: '数据审计报告', icon: 'shield-checkmark-outline', route: '/audit-report' },
- { id: 'enterprise-certification', title: '企业认证', icon: 'business-outline', route: '/enterprise-certification' },
+ // 注:运营规则配置 / 数据审计报告属后台管理术语,已迁至企业端「我的-管理后台」,不在此暴露给求职者
];
/** 企业端入口 */
@@ -2358,6 +2356,16 @@ const MOCK_ENTERPRISE_QUICK_ACTIONS: EnterpriseQuickAction[] = [
{ id: 'interviews', label: '面试日程', icon: 'calendar-outline', route: '/interview-score', color: 'action' },
];
+/**
+ * 企业端管理后台入口
+ * 低频管理操作,单独成区展示,不占用快捷入口的横排位;
+ * 同时避免「运营规则配置 / 数据审计」等后台术语出现在求职者端菜单。
+ */
+const MOCK_ENTERPRISE_MANAGE_ACTIONS: EnterpriseQuickAction[] = [
+ { id: 'operation-rules', label: '运营规则配置', icon: 'options-outline', route: '/operation-rules', color: 'primary' },
+ { id: 'audit-report', label: '数据审计报告', icon: 'shield-checkmark-outline', route: '/audit-report', color: 'info' },
+];
+
/** 企业总览统计 */
const MOCK_ENTERPRISE_STATS: EnterpriseStat[] = [
{ id: 'jobs', label: '在招岗位', value: 1280, change: 12, icon: 'briefcase-outline', color: 'primary' },
@@ -2387,6 +2395,7 @@ const MOCK_ENTERPRISE_OVERVIEW: EnterpriseOverview = {
stats: MOCK_ENTERPRISE_STATS,
jobEvaluations: MOCK_JOB_EVALUATION_SUMMARIES,
quickActions: MOCK_ENTERPRISE_QUICK_ACTIONS,
+ manageActions: MOCK_ENTERPRISE_MANAGE_ACTIONS,
};
/**
diff --git a/src/types/enterprise.ts b/src/types/enterprise.ts
index d8f4d2d..ddab8ca 100644
--- a/src/types/enterprise.ts
+++ b/src/types/enterprise.ts
@@ -65,6 +65,11 @@ export interface EnterpriseOverview {
jobEvaluations: JobEvaluationSummary[];
/** 快捷入口 */
quickActions: EnterpriseQuickAction[];
+ /**
+ * 管理后台入口(运营规则配置、数据审计等)
+ * 仅企业端「我的」展示,不在求职者端菜单暴露,避免后台术语干扰 C 端用户
+ */
+ manageActions: EnterpriseQuickAction[];
}
/** 企业总览快捷入口 */