feat(web): 增加跨站导航列表

This commit is contained in:
2025-06-24 09:29:48 +08:00
parent 53638a8a6d
commit b58c34443f
2 changed files with 24 additions and 13 deletions

View File

@@ -1,8 +1,17 @@
import {ProLayout} from '@ant-design/pro-components'
import {ConfigProvider} from 'antd'
import React from 'react'
import {Outlet, useLocation, useNavigate} from 'react-router'
import {menus} from '../route.tsx'
import {ConfigProvider} from 'antd'
const apps: { title: string, desc: string, url: string, icon?: string }[] = [
{
icon: 'http://132.126.207.124:8686/udal-manager/static/favicon.ico',
title: 'CSV-HUDI处理平台',
desc: 'Hudi 批量割接、稽核任务管理平台',
url: 'http://132.126.207.124:8686/udal-manager/',
},
]
const App: React.FC = () => {
const navigate = useNavigate()
@@ -10,6 +19,8 @@ const App: React.FC = () => {
return (
<ProLayout
token={{
colorTextAppListIcon: '#dfdfdf',
colorTextAppListIconHover: '#ffffff',
header: {
colorBgHeader: '#292f33',
colorHeaderTitle: '#ffffff',
@@ -21,6 +32,8 @@ const App: React.FC = () => {
colorTextRightActionsItem: '#dfdfdf',
},
}}
appList={apps}
disableMobile={true}
logo={<img src="icon.png" alt="logo"/>}
title="Hudi 服务总台"
route={menus}
@@ -36,14 +49,14 @@ const App: React.FC = () => {
contentStyle={{backgroundColor: 'white', padding: '10px 10px 10px 20px'}}
>
<ConfigProvider
theme={{
components: {
Card: {
bodyPadding: 0,
bodyPaddingSM: 0,
}
}
}}
theme={{
components: {
Card: {
bodyPadding: 0,
bodyPaddingSM: 0,
},
},
}}
>
<Outlet/>
</ConfigProvider>

View File

@@ -17,18 +17,16 @@ import {type JSX, useState} from 'react'
import styled from 'styled-components'
import '@xyflow/react/dist/style.css'
import {amisRender, commonInfo, horizontalFormOptions} from '../../../util/amis.tsx'
import StartNode from './node/StartNode.tsx'
import EndNode from './node/EndNode.tsx'
import LlmNode from './node/LlmNode.tsx'
import StartNode from './node/StartNode.tsx'
import {useDataStore} from './store/DataStore.ts'
import {useFlowStore} from './store/FlowStore.ts'
const FlowableDiv = styled.div`
height: 93vh;
height: 92vh;
.toolbar {
z-index: 999;
position: absolute;
}
.node-card {