Skip to content

Commit

Permalink
feat(canyon-platform): update report
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Nov 11, 2024
1 parent 4c11f68 commit fdd9f03
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -139,11 +139,22 @@ const CanyonLayoutBase: FC<CanyonLayoutBaseProps> = ({
onSelectMenu?.(selectInfo);
}}
selectedKeys={[menuSelectedKey]}
items={menuItems}
items={menuItems.concat({
key: "open-reports",
icon: <BarChartOutlined />,
label: (
<a
href="/open-reports"
// target="_blank"
rel="noopener noreferrer"
>
报表
</a>
),
})}
className={"dark:bg-[#151718] px-1"}
style={{ flex: "1" }}
/>

<Dropdown
menu={{
items: itemsDropdown,
Expand Down
10 changes: 5 additions & 5 deletions packages/canyon-platform/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ function Index() {
key: "projects",
icon: <FolderOutlined />,
},
{
label: t("报表"),
key: "reports",
icon: <BarChartOutlined />,
},
// {
// label: t("报表"),
// key: "reports",
// icon: <BarChartOutlined />,
// },
{
label: t("menus.settings"),
key: "settings",
Expand Down
1 change: 1 addition & 0 deletions packages/canyon-platform/src/pages/index/reports.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ const Reports = () => {
buttonStyle="solid"
/>
<Select
disabled
className={"w-[200px]"}
value={bu}
options={
Expand Down

0 comments on commit fdd9f03

Please sign in to comment.