From 24cfb8d56dc6149012cc7d643e685be35d1aa503 Mon Sep 17 00:00:00 2001 From: zhangminghua Date: Wed, 8 Mar 2023 11:02:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=83=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metadataManagement/actions/example.js | 15 ++++++++ .../metadataManagement/actions/index.js | 7 ++++ .../containers/businessMetadata.js | 7 ++++ .../metadataManagement/containers/index.js | 9 +++++ .../containers/latestMetadata.js | 24 ++++++++++++ .../containers/metaModelManagement.js | 7 ++++ .../containers/metadataDetails.js | 7 ++++ .../containers/tagManagement.js | 7 ++++ .../src/sections/metadataManagement/index.js | 15 ++++++++ .../sections/metadataManagement/nav-item.js | 24 ++++++++++++ .../metadataManagement/reducers/index.js | 5 +++ .../src/sections/metadataManagement/routes.js | 38 +++++++++++++++++++ 12 files changed, 165 insertions(+) create mode 100644 web/client/src/sections/metadataManagement/actions/example.js create mode 100644 web/client/src/sections/metadataManagement/actions/index.js create mode 100644 web/client/src/sections/metadataManagement/containers/businessMetadata.js create mode 100644 web/client/src/sections/metadataManagement/containers/index.js create mode 100644 web/client/src/sections/metadataManagement/containers/latestMetadata.js create mode 100644 web/client/src/sections/metadataManagement/containers/metaModelManagement.js create mode 100644 web/client/src/sections/metadataManagement/containers/metadataDetails.js create mode 100644 web/client/src/sections/metadataManagement/containers/tagManagement.js create mode 100644 web/client/src/sections/metadataManagement/index.js create mode 100644 web/client/src/sections/metadataManagement/nav-item.js create mode 100644 web/client/src/sections/metadataManagement/reducers/index.js create mode 100644 web/client/src/sections/metadataManagement/routes.js diff --git a/web/client/src/sections/metadataManagement/actions/example.js b/web/client/src/sections/metadataManagement/actions/example.js new file mode 100644 index 0000000..6b3c25d --- /dev/null +++ b/web/client/src/sections/metadataManagement/actions/example.js @@ -0,0 +1,15 @@ +'use strict'; + +import { basicAction } from '@peace/utils' +import { ApiTable } from '$utils' + +// export function getMembers(orgId) { +// return dispatch => basicAction({ +// type: 'get', +// dispatch: dispatch, +// actionType: 'GET_MEMBERS', +// url: `${ApiTable.getEnterprisesMembers.replace('{enterpriseId}', orgId)}`, +// msg: { error: '获取用户列表失败' }, +// reducer: { name: 'members' } +// }); +// } diff --git a/web/client/src/sections/metadataManagement/actions/index.js b/web/client/src/sections/metadataManagement/actions/index.js new file mode 100644 index 0000000..444af37 --- /dev/null +++ b/web/client/src/sections/metadataManagement/actions/index.js @@ -0,0 +1,7 @@ +'use strict'; + +import * as example from './example' + +export default { + ...example, +} \ No newline at end of file diff --git a/web/client/src/sections/metadataManagement/containers/businessMetadata.js b/web/client/src/sections/metadataManagement/containers/businessMetadata.js new file mode 100644 index 0000000..e240f90 --- /dev/null +++ b/web/client/src/sections/metadataManagement/containers/businessMetadata.js @@ -0,0 +1,7 @@ +import React, { useEffect, useState } from 'react' + +function BusinessMetadata (props) { + return <>业务元数据管理 +} + +export default BusinessMetadata \ No newline at end of file diff --git a/web/client/src/sections/metadataManagement/containers/index.js b/web/client/src/sections/metadataManagement/containers/index.js new file mode 100644 index 0000000..4d4f80a --- /dev/null +++ b/web/client/src/sections/metadataManagement/containers/index.js @@ -0,0 +1,9 @@ +'use strict'; + +import LatestMetadata from './latestMetadata'; +import BusinessMetadata from './businessMetadata'; +import MetaModelManagement from './metaModelManagement'; +import TagManagement from './tagManagement'; +import MetadataDetails from './metadataDetails'; + +export { LatestMetadata, BusinessMetadata, MetaModelManagement, TagManagement, MetadataDetails }; diff --git a/web/client/src/sections/metadataManagement/containers/latestMetadata.js b/web/client/src/sections/metadataManagement/containers/latestMetadata.js new file mode 100644 index 0000000..ebdba2d --- /dev/null +++ b/web/client/src/sections/metadataManagement/containers/latestMetadata.js @@ -0,0 +1,24 @@ +import React, { useEffect, useState } from 'react'; +import { connect } from 'react-redux'; +import { Button, } from 'antd' + +const LatestMetadata = (props) => { + const { user, dispatch, actions, history } = props; + + useEffect(() => { + }, []) + + return <>最新元数据 + + +} + +function mapStateToProps(state) { + const { global, auth } = state; + return { + clientHeight: global.clientHeight, + user: auth.user, + actions: global.actions, + }; +} +export default connect(mapStateToProps)(LatestMetadata) \ No newline at end of file diff --git a/web/client/src/sections/metadataManagement/containers/metaModelManagement.js b/web/client/src/sections/metadataManagement/containers/metaModelManagement.js new file mode 100644 index 0000000..85213aa --- /dev/null +++ b/web/client/src/sections/metadataManagement/containers/metaModelManagement.js @@ -0,0 +1,7 @@ +import React, { useEffect, useState } from 'react' + +function MetaModelManagement (props) { + return <>模型管理 +} + +export default MetaModelManagement \ No newline at end of file diff --git a/web/client/src/sections/metadataManagement/containers/metadataDetails.js b/web/client/src/sections/metadataManagement/containers/metadataDetails.js new file mode 100644 index 0000000..74e2af6 --- /dev/null +++ b/web/client/src/sections/metadataManagement/containers/metadataDetails.js @@ -0,0 +1,7 @@ +import React, { useEffect, useState } from 'react' + +function MetadataDetails (props) { + return <>元数据详情 +} + +export default MetadataDetails \ No newline at end of file diff --git a/web/client/src/sections/metadataManagement/containers/tagManagement.js b/web/client/src/sections/metadataManagement/containers/tagManagement.js new file mode 100644 index 0000000..277791c --- /dev/null +++ b/web/client/src/sections/metadataManagement/containers/tagManagement.js @@ -0,0 +1,7 @@ +import React, { useEffect, useState } from 'react' + +function TagManagement (props) { + return <>标签管理 +} + +export default TagManagement \ No newline at end of file diff --git a/web/client/src/sections/metadataManagement/index.js b/web/client/src/sections/metadataManagement/index.js new file mode 100644 index 0000000..52d218b --- /dev/null +++ b/web/client/src/sections/metadataManagement/index.js @@ -0,0 +1,15 @@ +'use strict'; + +import reducers from './reducers'; +import routes from './routes'; +import actions from './actions'; +import { getNavItem } from './nav-item'; + +export default { + key: 'metadataManagement', + name: '元数据管理', + reducers: reducers, + routes: routes, + actions: actions, + getNavItem: getNavItem +}; \ No newline at end of file diff --git a/web/client/src/sections/metadataManagement/nav-item.js b/web/client/src/sections/metadataManagement/nav-item.js new file mode 100644 index 0000000..8f9133a --- /dev/null +++ b/web/client/src/sections/metadataManagement/nav-item.js @@ -0,0 +1,24 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; +import { Menu } from 'antd'; +import { SettingOutlined } from '@ant-design/icons'; +const SubMenu = Menu.SubMenu; + +export function getNavItem() { + return ( + } title='元数据管理'> + + 最新元数据 + + + 业务元数据管理 + + + 模型管理 + + + 标签管理 + + + ); +} \ No newline at end of file diff --git a/web/client/src/sections/metadataManagement/reducers/index.js b/web/client/src/sections/metadataManagement/reducers/index.js new file mode 100644 index 0000000..7ed1088 --- /dev/null +++ b/web/client/src/sections/metadataManagement/reducers/index.js @@ -0,0 +1,5 @@ +'use strict'; + +export default { + +} \ No newline at end of file diff --git a/web/client/src/sections/metadataManagement/routes.js b/web/client/src/sections/metadataManagement/routes.js new file mode 100644 index 0000000..063e29e --- /dev/null +++ b/web/client/src/sections/metadataManagement/routes.js @@ -0,0 +1,38 @@ +'use strict'; +import { LatestMetadata, BusinessMetadata, MetaModelManagement, TagManagement, MetadataDetails } from './containers'; +export default [{ + type: 'inner', + route: { + path: '/metadataManagement', + key: 'metadataManagement', + breadcrumb: '元数据管理', + // 不设置 component 则面包屑禁止跳转 + childRoutes: [{ + path: '/latestMetadata', + key: 'latestMetadata', + component: LatestMetadata, + breadcrumb: '最新元数据', + childRoutes: [{ + path: '/detail/:id', + key: 'detail', + component: MetadataDetails, + breadcrumb: '元数据详情' + }] + }, { + path: '/businessMetadata', + key: 'businessMetadata', + component: BusinessMetadata, + breadcrumb: '业务元数据管理' + }, { + path: '/metaModelManagement', + key: 'metaModelManagement', + component: MetaModelManagement, + breadcrumb: '模型管理' + }, { + path: '/tagManagement', + key: 'tagManagement', + component: TagManagement, + breadcrumb: '标签管理' + }] + } +}]; \ No newline at end of file