Commit c56dd919 by zhaochengxiang

增加版本历史

parent 939d4653
......@@ -51,4 +51,8 @@ export function* getCheckoutService(payload) {
export function* getServiceDigest(payload) {
return yield call(pds.getServiceDigest, payload)
}
export function* getVersions(payload) {
return yield call(pds.getVersions, payload)
}
\ No newline at end of file
......@@ -25,7 +25,7 @@ export function getServices(payload) {
}
export function getStateServices(payload) {
return GetJSON("/pdataservice/pdsCURD/loadDataServiceStateCatalog", payload)
}
export function searchService(payload) {
......@@ -52,6 +52,10 @@ export function getServiceDigest(payload) {
return GetJSON("/pdataservice/pdsCURD/getDataServiceDigest", payload)
}
export function getVersions(payload) {
return PostJSON("/pdataservice/pdsCURD/getVersions", payload)
}
......
......@@ -14,7 +14,7 @@ const HistoryAndVersionDrawer = (props) => {
title=''
placement="right"
closable={true}
width={'90%'}
width={'40%'}
onClose={() => {
onCancel && onCancel();
}}
......@@ -25,9 +25,9 @@ const HistoryAndVersionDrawer = (props) => {
<TabPane tab="版本历史" key="1">
<VersionHistory id={id} />
</TabPane>
<TabPane tab="版本对比" key="2">
{/* <TabPane tab="版本对比" key="2">
<VersionCompare id={id} />
</TabPane>
</TabPane> */}
</Tabs>
}
</Drawer>
......
......@@ -22,7 +22,7 @@ const VersionHistory = (props) => {
const getVersions = () => {
setLoading(true);
dispatch({
type: 'datamodel.getVersions',
type: 'pds.getVersions',
payload: {
params: {
id
......@@ -39,7 +39,7 @@ const VersionHistory = (props) => {
}
const onVersionItemClick = (version) => {
window.open(`/data-govern/data-model-action?${Action}=detail-version&${ModelerId}=${version.dataModelId||''}&${VersionId}=${version.id||''}`);
// window.open(`/data-govern/data-model-action?${Action}=detail-version&${ModelerId}=${version.dataModelId||''}&${VersionId}=${version.id||''}`);
}
return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment