From fdd9f03ef2a96038eea7941768703957769096b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Allen=20Zhang=20=28=E5=BC=A0=E6=B6=9B=29?= Date: Mon, 11 Nov 2024 14:37:09 +0800 Subject: [PATCH] feat(canyon-platform): update report --- .../old-ui/components/layout/Base.tsx | 17 ++++++++++++++--- packages/canyon-platform/src/pages/index.tsx | 10 +++++----- .../canyon-platform/src/pages/index/reports.tsx | 1 + 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/packages/canyon-platform/src/components/old-ui/components/layout/Base.tsx b/packages/canyon-platform/src/components/old-ui/components/layout/Base.tsx index b32990be..3a525ed1 100644 --- a/packages/canyon-platform/src/components/old-ui/components/layout/Base.tsx +++ b/packages/canyon-platform/src/components/old-ui/components/layout/Base.tsx @@ -1,4 +1,4 @@ -import { MoreOutlined, SearchOutlined } from "@ant-design/icons"; +import {BarChartOutlined, LinkOutlined, MoreOutlined, SearchOutlined} from "@ant-design/icons"; import { FC, ReactNode } from "react"; import { ErrorBoundary } from "react-error-boundary"; import { CanyonCardPrimary } from "../card"; @@ -139,11 +139,22 @@ const CanyonLayoutBase: FC = ({ onSelectMenu?.(selectInfo); }} selectedKeys={[menuSelectedKey]} - items={menuItems} + items={menuItems.concat({ + key: "open-reports", + icon: , + label: ( + + 报表 + + ), + })} className={"dark:bg-[#151718] px-1"} style={{ flex: "1" }} /> - , }, - { - label: t("报表"), - key: "reports", - icon: , - }, + // { + // label: t("报表"), + // key: "reports", + // icon: , + // }, { label: t("menus.settings"), key: "settings", diff --git a/packages/canyon-platform/src/pages/index/reports.tsx b/packages/canyon-platform/src/pages/index/reports.tsx index f1dfe8b9..14435aeb 100644 --- a/packages/canyon-platform/src/pages/index/reports.tsx +++ b/packages/canyon-platform/src/pages/index/reports.tsx @@ -148,6 +148,7 @@ const Reports = () => { buttonStyle="solid" />