refactor: 拆分模板治理与咨询表单页面

- /admin/workspace 收敛为「咨询表单与字段」,只做咨询入口表单与高级自定义字段
- 行业模板版本升级/回滚迁入「配置与发布 → 内容发布 → 选择表达方式」
- 移除行业模板安装入口、视觉模板历史与模板组合预览等不可达 UI
- 表单下拉的业务选项改用本品牌后台数据,避免公开接口回退默认品牌导致跨品牌串数据
- 侧栏导航与设计文档同步
This commit is contained in:
que01 committed 2026-10-14 13:55:35 +08:00
1 parent 7b1e9eee47
commit 896f3240f9
9 files changed
+206 -583

No files matched your search

+3 -5
View File
@@ -19,10 +19,10 @@ import {
AppstoreOutlined,
BarsOutlined,
CloudUploadOutlined,
FormOutlined,
MessageOutlined,
MobileOutlined,
SafetyCertificateOutlined,
SettingOutlined,
TeamOutlined,
ThunderboltOutlined,
} from "@ant-design/icons";
@@ -218,6 +218,7 @@ function Dashboard({ onLogout, role }: { onLogout: () => void; role: string }) {
{ key: "trust", label: "信任内容", icon: <SafetyCertificateOutlined /> },
{ key: "services", label: "业务提供项", icon: <BarsOutlined /> },
{ key: "inquiries", label: "咨询记录", icon: <MessageOutlined /> },
{ key: "workspace", label: "咨询表单与字段", icon: <FormOutlined /> },
],
},
...(role === "editor"
@@ -227,7 +228,6 @@ function Dashboard({ onLogout, role }: { onLogout: () => void; role: string }) {
type: "group" as const,
label: "系统管理",
children: [
{ key: "workspace", label: "模板与表单设置", icon: <SettingOutlined /> },
{ key: "capabilities", label: "能力插件", icon: <ThunderboltOutlined /> },
{ key: "members", label: "团队成员", icon: <TeamOutlined /> },
],
@@ -285,9 +285,7 @@ function Dashboard({ onLogout, role }: { onLogout: () => void; role: string }) {
element={<FeaturePublicationPage canManageTemplate={role !== "editor"} />}
/>
<Route path="/admin/brand" element={<FeatureBrandPage />} />
{role === "editor" ? null : (
<Route path="/admin/workspace" element={<FeatureWorkspacePage />} />
)}
<Route path="/admin/workspace" element={<FeatureWorkspacePage />} />
{role === "editor" ? null : (
<Route path="/admin/capabilities" element={<FeatureCapabilitiesPage />} />
)}