refactor(客户管理): 完成客户管理模块UI与架构全面调整

1.  调整菜单与路由:重命名客户信息/客户账号为客户档案管理/客户小程序授权管理,移除客户建筑/房间路由,新增空间拓扑路由
2.  后端新增客户统计接口`/customers/stats`,前端同步API与类型定义
3.  重构客户档案与小程序授权页面,仅保留数据库支持字段,移除无支撑功能
4.  新增空间拓扑页面,合并建筑与房间管理为树形拓扑视图
5.  更新数据库种子数据与权限配置,清理废弃菜单与绑定关系
6.  补充UI设计文档与规范说明
This commit is contained in:
andyesfly committed 2026-09-09 17:31:24 +08:00
1 parent 2a06cfea6d
commit c60caa4770
35 files changed
+7524 -1961

No files matched your search

+10 -16
View File
@@ -32,11 +32,11 @@ const routes: RouteRecordRaw[] = [
},
// 业务模块
{
path: "customer/info",
name: "CustomerInfo",
component: () => import("@/views/customer/info/index.vue"),
meta: { requiresAuth: true, title: "客户信息", permission: "customer:list" }
},
path: "customer/info",
name: "CustomerInfo",
component: () => import("@/views/customer/info/index.vue"),
meta: { requiresAuth: true, title: "客户档案管理", permission: "customer:list" }
},
{
path: "customer/department",
name: "CustomerDept",
@@ -47,7 +47,7 @@ const routes: RouteRecordRaw[] = [
path: "customer/account",
name: "CustomerAccount",
component: () => import("@/views/customer/account/index.vue"),
meta: { requiresAuth: true, title: "客户账号", permission: "customer:account" }
meta: { requiresAuth: true, title: "客户小程序授权管理", permission: "customer:account" }
},
{
path: "customer/visit",
@@ -56,16 +56,10 @@ const routes: RouteRecordRaw[] = [
meta: { requiresAuth: true, title: "客户拜访", permission: "customer:visit" }
},
{
path: "customer/building",
name: "CustomerBuilding",
component: () => import("@/views/customer/building/index.vue"),
meta: { requiresAuth: true, title: "客户建筑", permission: "customer:building" }
},
{
path: "customer/room",
name: "CustomerRoom",
component: () => import("@/views/customer/room/index.vue"),
meta: { requiresAuth: true, title: "客户房间", permission: "customer:room" }
path: "customer/topology",
name: "CustomerTopology",
component: () => import("@/views/customer/topology/index.vue"),
meta: { requiresAuth: true, title: "空间拓扑与用电架构", permission: "customer:topology" }
},
{
path: "project",