Julin
2 years ago
50 changed files with 531 additions and 37 deletions
@ -1,10 +1,10 @@ |
|||||
import React from 'react'; |
import React from 'react'; |
||||
import { Link } from 'react-router-dom'; |
import { Link } from 'react-router-dom'; |
||||
import { Menu } from 'antd'; |
import { Menu } from 'antd'; |
||||
import { BarChartOutlined } from '@ant-design/icons'; |
import { HomeOutlined } from '@ant-design/icons'; |
||||
export function getNavItem() { |
export function getNavItem() { |
||||
return ( |
return ( |
||||
<Menu.Item key="homePage" icon={<BarChartOutlined />}> |
<Menu.Item key="homePage" icon={<HomeOutlined />}> |
||||
<Link to="/homePage">首页</Link> |
<Link to="/homePage">首页</Link> |
||||
</Menu.Item> |
</Menu.Item> |
||||
); |
); |
||||
|
@ -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 AcquisitionLog (props) { |
||||
|
return <>采集日志</> |
||||
|
} |
||||
|
|
||||
|
export default AcquisitionLog |
@ -0,0 +1,7 @@ |
|||||
|
import React, { useEffect, useState } from 'react' |
||||
|
|
||||
|
function AcquisitionTask (props) { |
||||
|
return <>采集任务配置</> |
||||
|
} |
||||
|
|
||||
|
export default AcquisitionTask |
@ -0,0 +1,7 @@ |
|||||
|
import React, { useEffect, useState } from 'react' |
||||
|
|
||||
|
function Adapter (props) { |
||||
|
return <>适配器管理</> |
||||
|
} |
||||
|
|
||||
|
export default Adapter |
@ -0,0 +1,7 @@ |
|||||
|
import React, { useEffect, useState } from 'react' |
||||
|
|
||||
|
function MetadataDetails (props) { |
||||
|
return <>数据源管理</> |
||||
|
} |
||||
|
|
||||
|
export default MetadataDetails |
@ -0,0 +1,8 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
import Adapter from './adapter'; |
||||
|
import DataSourceManagement from './dataSourceManagement'; |
||||
|
import AcquisitionTask from './acquisitionTask'; |
||||
|
import AcquisitionLog from './acquisitionLog'; |
||||
|
|
||||
|
export { Adapter, DataSourceManagement, AcquisitionTask, AcquisitionLog }; |
@ -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: 'metadataAcquisition', |
||||
|
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 { BarChartOutlined } from '@ant-design/icons'; |
||||
|
const SubMenu = Menu.SubMenu; |
||||
|
|
||||
|
export function getNavItem() { |
||||
|
return ( |
||||
|
<SubMenu key="metadataAcquisition" icon={<BarChartOutlined />} title='元数据采集'> |
||||
|
<Menu.Item key="Adapter"> |
||||
|
<Link to="/metadataAcquisition/Adapter">适配器管理</Link> |
||||
|
</Menu.Item> |
||||
|
<Menu.Item key="dataSourceManagement"> |
||||
|
<Link to="/metadataAcquisition/dataSourceManagement">数据源管理</Link> |
||||
|
</Menu.Item> |
||||
|
<Menu.Item key="acquisitionTask"> |
||||
|
<Link to="/metadataAcquisition/acquisitionTask">采集任务配置</Link> |
||||
|
</Menu.Item> |
||||
|
<Menu.Item key="acquisitionLog"> |
||||
|
<Link to="/metadataAcquisition/acquisitionLog">采集日志</Link> |
||||
|
</Menu.Item> |
||||
|
</ SubMenu > |
||||
|
); |
||||
|
} |
@ -0,0 +1,5 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
export default { |
||||
|
|
||||
|
} |
@ -0,0 +1,32 @@ |
|||||
|
'use strict'; |
||||
|
import { Adapter, DataSourceManagement, AcquisitionTask, AcquisitionLog } from './containers'; |
||||
|
export default [{ |
||||
|
type: 'inner', |
||||
|
route: { |
||||
|
path: '/metadataAcquisition', |
||||
|
key: 'metadataAcquisition', |
||||
|
breadcrumb: '元数据采集', |
||||
|
// 不设置 component 则面包屑禁止跳转
|
||||
|
childRoutes: [{ |
||||
|
path: '/adapter', |
||||
|
key: 'adapter', |
||||
|
component: Adapter, |
||||
|
breadcrumb: '适配器管理' |
||||
|
}, { |
||||
|
path: '/dataSourceManagement', |
||||
|
key: 'dataSourceManagement', |
||||
|
component: DataSourceManagement, |
||||
|
breadcrumb: '数据源管理' |
||||
|
}, { |
||||
|
path: '/acquisitionTask', |
||||
|
key: 'acquisitionTask', |
||||
|
component: AcquisitionTask, |
||||
|
breadcrumb: '采集任务配置' |
||||
|
}, { |
||||
|
path: '/acquisitionLog', |
||||
|
key: 'acquisitionLog', |
||||
|
component: AcquisitionLog, |
||||
|
breadcrumb: '采集日志' |
||||
|
}] |
||||
|
} |
||||
|
}]; |
@ -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: '标签管理' |
||||
|
}] |
||||
|
} |
||||
|
}]; |
@ -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 Approve (props) { |
||||
|
return <>数据消费审批</> |
||||
|
} |
||||
|
|
||||
|
export default Approve |
@ -0,0 +1,6 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
import Approve from './approve'; |
||||
|
import MyApplication from './myApplication'; |
||||
|
|
||||
|
export { Approve, MyApplication }; |
@ -0,0 +1,7 @@ |
|||||
|
import React, { useEffect, useState } from 'react' |
||||
|
|
||||
|
function MyApplication (props) { |
||||
|
return <>我的数据消费申请</> |
||||
|
} |
||||
|
|
||||
|
export default MyApplication |
@ -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: 'resourceConsumption', |
||||
|
name: '资源消费', |
||||
|
reducers: reducers, |
||||
|
routes: routes, |
||||
|
actions: actions, |
||||
|
getNavItem: getNavItem |
||||
|
}; |
@ -0,0 +1,18 @@ |
|||||
|
import React from 'react'; |
||||
|
import { Link } from 'react-router-dom'; |
||||
|
import { Menu } from 'antd'; |
||||
|
import { CarryOutOutlined } from '@ant-design/icons'; |
||||
|
const SubMenu = Menu.SubMenu; |
||||
|
|
||||
|
export function getNavItem() { |
||||
|
return ( |
||||
|
<SubMenu key="resourceConsumption" icon={<CarryOutOutlined />} title='资源消费'> |
||||
|
<Menu.Item key="approve"> |
||||
|
<Link to="/resourceConsumption/approve">数据消费审批</Link> |
||||
|
</Menu.Item> |
||||
|
<Menu.Item key="myApplication"> |
||||
|
<Link to="/resourceConsumption/myApplication">我的数据消费申请</Link> |
||||
|
</Menu.Item> |
||||
|
</ SubMenu > |
||||
|
); |
||||
|
} |
@ -0,0 +1,5 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
export default { |
||||
|
|
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
'use strict'; |
||||
|
import { Approve, MyApplication } from './containers'; |
||||
|
export default [{ |
||||
|
type: 'inner', |
||||
|
route: { |
||||
|
path: '/resourceConsumption', |
||||
|
key: 'resourceConsumption', |
||||
|
breadcrumb: '资源消费', |
||||
|
// 不设置 component 则面包屑禁止跳转
|
||||
|
childRoutes: [{ |
||||
|
path: '/approve', |
||||
|
key: 'approve', |
||||
|
component: Approve, |
||||
|
breadcrumb: '数据消费审批' |
||||
|
}, { |
||||
|
path: '/myApplication', |
||||
|
key: 'myApplication', |
||||
|
component: MyApplication, |
||||
|
breadcrumb: '我的数据消费申请' |
||||
|
}] |
||||
|
} |
||||
|
}]; |
@ -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,4 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
import Retrieval from './retrieval'; |
||||
|
export { Retrieval }; |
@ -0,0 +1,7 @@ |
|||||
|
import React, { useEffect, useState } from 'react' |
||||
|
|
||||
|
function Retrieval (props) { |
||||
|
return <>数据资源检索</> |
||||
|
} |
||||
|
|
||||
|
export default Retrieval |
@ -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: 'resourceRetrieval', |
||||
|
name: '资源检索', |
||||
|
reducers: reducers, |
||||
|
routes: routes, |
||||
|
actions: actions, |
||||
|
getNavItem: getNavItem |
||||
|
}; |
@ -0,0 +1,12 @@ |
|||||
|
import React from 'react'; |
||||
|
import { Link } from 'react-router-dom'; |
||||
|
import { Menu } from 'antd'; |
||||
|
import { FileSearchOutlined } from '@ant-design/icons'; |
||||
|
|
||||
|
export function getNavItem() { |
||||
|
return ( |
||||
|
<Menu.Item key="resourceRetrieval" icon={<FileSearchOutlined />}> |
||||
|
<Link to="/resourceRetrieval">资源检索</Link> |
||||
|
</Menu.Item> |
||||
|
); |
||||
|
} |
@ -0,0 +1,5 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
export default { |
||||
|
|
||||
|
} |
@ -0,0 +1,11 @@ |
|||||
|
'use strict'; |
||||
|
import { Retrieval } from './containers'; |
||||
|
export default [{ |
||||
|
type: 'inner', |
||||
|
route: { |
||||
|
path: '/resourceRetrieval', |
||||
|
key: 'resourceRetrieval', |
||||
|
breadcrumb: '资源消费', |
||||
|
component: Retrieval |
||||
|
} |
||||
|
}]; |
Loading…
Reference in new issue