From 268e085ffaa82e9b0815561ad452d274f4a687cc Mon Sep 17 00:00:00 2001 From: freedakgmail Date: Thu, 30 Jul 2026 09:01:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=80=81=E5=8A=BF=E6=84=9F=E7=9F=A5?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=20-=20=E5=AE=9E=E6=97=B6=E7=9B=91=E6=8E=A7?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF+=E5=90=8E=E7=AB=AFAPI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/index.html | 2 +- client/src/App.tsx | 2 + client/src/components/Layout.tsx | 5 +- client/src/pages/DashboardPage.tsx | 36 + client/src/pages/LoginPage.tsx | 2 +- client/src/pages/SituationalAwarenessPage.tsx | 788 ++++++++++++++++++ client/src/pages/StoreDetailPage.tsx | 6 +- server/src/index.ts | 2 + server/src/routes/situational-awareness.ts | 458 ++++++++++ 9 files changed, 1294 insertions(+), 7 deletions(-) create mode 100644 client/src/pages/SituationalAwarenessPage.tsx create mode 100644 server/src/routes/situational-awareness.ts diff --git a/client/index.html b/client/index.html index 3354d21..48e168d 100644 --- a/client/index.html +++ b/client/index.html @@ -3,7 +3,7 @@ - 马兰拉面数字化运营管理平台 + 连锁运营企业态势感知系统 diff --git a/client/src/App.tsx b/client/src/App.tsx index f40faea..e4d779b 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -22,6 +22,7 @@ import { DataQualityPage } from '@/pages/DataQualityPage' import { OntologyPage } from '@/pages/OntologyPage' import { SiteSelectionPage } from '@/pages/SiteSelectionPage' import { SmartSchedulingPage } from '@/pages/SmartSchedulingPage' +import { SituationalAwarenessPage } from '@/pages/SituationalAwarenessPage' import { LoginPage } from '@/pages/LoginPage' const queryClient = new QueryClient({ @@ -85,6 +86,7 @@ export default function App() { } /> } /> } /> + } /> } /> } /> diff --git a/client/src/components/Layout.tsx b/client/src/components/Layout.tsx index 1015758..039dec5 100644 --- a/client/src/components/Layout.tsx +++ b/client/src/components/Layout.tsx @@ -1,6 +1,6 @@ import { ReactNode, useState } from 'react' import { Link, useLocation } from 'react-router-dom' -import { LayoutDashboard, Store, ClipboardList, TrendingUp, Settings, LogOut, Menu, X, Package, DollarSign, ShoppingBag, Users, AlertTriangle, Clock, Database, MapPin, PieChart, Wallet, CalendarClock } from 'lucide-react' +import { LayoutDashboard, Store, ClipboardList, TrendingUp, Settings, LogOut, Menu, X, Package, DollarSign, ShoppingBag, Users, AlertTriangle, Clock, Database, MapPin, PieChart, Wallet, CalendarClock, Activity } from 'lucide-react' import { cn } from '@/lib/utils' interface LayoutProps { @@ -25,6 +25,7 @@ const menuGroups: MenuGroup[] = [ { title: '经营管理', items: [ + { path: '/situational-awareness', label: '态势感知', icon: Activity, roles: ['hq', 'dept', 'regional'] }, { path: '/', label: '总部驾驶舱', icon: LayoutDashboard, roles: ['hq', 'dept', 'regional', 'store'] }, { path: '/regional', label: '区域经理', icon: Store, roles: ['hq', 'dept', 'regional', 'store'] }, { path: '/store', label: '店长工作台', icon: ClipboardList, roles: ['hq', 'dept', 'regional', 'store'] }, @@ -82,7 +83,7 @@ export function Layout({ children, user, onLogout }: LayoutProps) { sidebarOpen ? 'translate-x-0' : '-translate-x-full' )}>
- 马兰运营平台 + 态势感知系统