zmh
2 years ago
12 changed files with 165 additions and 0 deletions
@ -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' }
|
|||
// });
|
|||
// }
|
@ -0,0 +1,7 @@ |
|||
'use strict'; |
|||
|
|||
import * as example from './example' |
|||
|
|||
export default { |
|||
...example, |
|||
} |
@ -0,0 +1,7 @@ |
|||
import React, { useEffect, useState } from 'react' |
|||
|
|||
function BusinessMetadata (props) { |
|||
return <>业务元数据管理</> |
|||
} |
|||
|
|||
export default BusinessMetadata |
@ -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 }; |
@ -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 <>最新元数据 |
|||
<Button type="primary" onClick={() => { history.push(`/metadataManagement/latestMetadata/detail/${1}`) }} >查看详情</Button> |
|||
</> |
|||
} |
|||
|
|||
function mapStateToProps(state) { |
|||
const { global, auth } = state; |
|||
return { |
|||
clientHeight: global.clientHeight, |
|||
user: auth.user, |
|||
actions: global.actions, |
|||
}; |
|||
} |
|||
export default connect(mapStateToProps)(LatestMetadata) |
@ -0,0 +1,7 @@ |
|||
import React, { useEffect, useState } from 'react' |
|||
|
|||
function MetaModelManagement (props) { |
|||
return <>模型管理</> |
|||
} |
|||
|
|||
export default MetaModelManagement |
@ -0,0 +1,7 @@ |
|||
import React, { useEffect, useState } from 'react' |
|||
|
|||
function MetadataDetails (props) { |
|||
return <>元数据详情</> |
|||
} |
|||
|
|||
export default MetadataDetails |
@ -0,0 +1,7 @@ |
|||
import React, { useEffect, useState } from 'react' |
|||
|
|||
function TagManagement (props) { |
|||
return <>标签管理</> |
|||
} |
|||
|
|||
export default TagManagement |
@ -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 |
|||
}; |
@ -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 ( |
|||
<SubMenu key="metadataManagement" icon={<SettingOutlined />} title='元数据管理'> |
|||
<Menu.Item key="latestMetadata"> |
|||
<Link to="/metadataManagement/latestMetadata">最新元数据</Link> |
|||
</Menu.Item> |
|||
<Menu.Item key="businessMetadata"> |
|||
<Link to="/metadataManagement/businessMetadata">业务元数据管理</Link> |
|||
</Menu.Item> |
|||
<Menu.Item key="metaModelManagement"> |
|||
<Link to="/metadataManagement/metaModelManagement">模型管理</Link> |
|||
</Menu.Item> |
|||
<Menu.Item key="tagManagement"> |
|||
<Link to="/metadataManagement/tagManagement">标签管理</Link> |
|||
</Menu.Item> |
|||
</ SubMenu > |
|||
); |
|||
} |
@ -0,0 +1,5 @@ |
|||
'use strict'; |
|||
|
|||
export default { |
|||
|
|||
} |
@ -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: '标签管理' |
|||
}] |
|||
} |
|||
}]; |
Loading…
Reference in new issue