feat: 收视分析页面(指标卡 + 走势图 + 路由导航)

This commit is contained in:
simonkoson
2026-07-03 10:21:56 +08:00
parent d537bee9a7
commit 8d880f06cf
4 changed files with 483 additions and 0 deletions
@@ -8,6 +8,7 @@ import {
UserOutlined,
TeamOutlined,
SoundOutlined,
LineChartOutlined,
} from '@ant-design/icons'
import useAuthStore from '../../stores/authStore'
@@ -18,6 +19,7 @@ function SideNav() {
const allMenuItems = [
{ key: '/dashboard', icon: <DashboardOutlined />, label: '仪表盘' },
{ key: '/analytics', icon: <LineChartOutlined />, label: '收视分析' },
{ key: '/editor-desk', icon: <FileTextOutlined />, label: '责编录入' },
{ key: '/tps', icon: <FileTextOutlined />, label: 'TPS 选题策划' },
{ key: '/knowledge', icon: <BookOutlined />, label: '知识库' },
@@ -53,6 +55,8 @@ function SideNav() {
const visibleItems = allMenuItems.filter(item => {
// /dashboard 三角色都可见
if (item.key === '/dashboard') return true
// /analytics 三角色都可见
if (item.key === '/analytics') return true
// /users 仅 zhipianren
if (item.key === '/users') return String(user?.role) === 'zhipianren'
// /editor-desk 仅 zhipianren + zebian