Commit c56dd919 by zhaochengxiang

增加版本历史

parent 939d4653
...@@ -51,4 +51,8 @@ export function* getCheckoutService(payload) { ...@@ -51,4 +51,8 @@ export function* getCheckoutService(payload) {
export function* getServiceDigest(payload) { export function* getServiceDigest(payload) {
return yield call(pds.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) { ...@@ -25,7 +25,7 @@ export function getServices(payload) {
} }
export function getStateServices(payload) { export function getStateServices(payload) {
return GetJSON("/pdataservice/pdsCURD/loadDataServiceStateCatalog", payload)
} }
export function searchService(payload) { export function searchService(payload) {
...@@ -52,6 +52,10 @@ export function getServiceDigest(payload) { ...@@ -52,6 +52,10 @@ export function getServiceDigest(payload) {
return GetJSON("/pdataservice/pdsCURD/getDataServiceDigest", payload) return GetJSON("/pdataservice/pdsCURD/getDataServiceDigest", payload)
} }
export function getVersions(payload) {
return PostJSON("/pdataservice/pdsCURD/getVersions", payload)
}
......
...@@ -14,7 +14,7 @@ const HistoryAndVersionDrawer = (props) => { ...@@ -14,7 +14,7 @@ const HistoryAndVersionDrawer = (props) => {
title='' title=''
placement="right" placement="right"
closable={true} closable={true}
width={'90%'} width={'40%'}
onClose={() => { onClose={() => {
onCancel && onCancel(); onCancel && onCancel();
}} }}
...@@ -25,9 +25,9 @@ const HistoryAndVersionDrawer = (props) => { ...@@ -25,9 +25,9 @@ const HistoryAndVersionDrawer = (props) => {
<TabPane tab="版本历史" key="1"> <TabPane tab="版本历史" key="1">
<VersionHistory id={id} /> <VersionHistory id={id} />
</TabPane> </TabPane>
<TabPane tab="版本对比" key="2"> {/* <TabPane tab="版本对比" key="2">
<VersionCompare id={id} /> <VersionCompare id={id} />
</TabPane> </TabPane> */}
</Tabs> </Tabs>
} }
</Drawer> </Drawer>
......
...@@ -22,7 +22,7 @@ const VersionHistory = (props) => { ...@@ -22,7 +22,7 @@ const VersionHistory = (props) => {
const getVersions = () => { const getVersions = () => {
setLoading(true); setLoading(true);
dispatch({ dispatch({
type: 'datamodel.getVersions', type: 'pds.getVersions',
payload: { payload: {
params: { params: {
id id
...@@ -39,7 +39,7 @@ const VersionHistory = (props) => { ...@@ -39,7 +39,7 @@ const VersionHistory = (props) => {
} }
const onVersionItemClick = (version) => { 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 ( 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