Commit 6774c726 by zhaochengxiang

资源列表操作按钮

parent be9a0e36
......@@ -294,6 +294,10 @@ export function* getResourceDraft(payload) {
return yield call(service.getResourceDraft, payload)
}
export function* syncResourceDraft(payload) {
return yield call(service.syncResourceDraft, payload)
}
export function* getTasks(payload) {
return yield call(service.getTasks, payload)
}
\ No newline at end of file
......@@ -284,6 +284,10 @@ export function getPreviewRangeByDirId(payload) {
return GetJSON("/dataassetmanager/resourceApi/getDraft", payload)
}
export function syncResourceDraft(payload) {
return PostJSON("/dataassetmanager/resourceApi/syncDraft", payload)
}
export function getTasks(payload) {
return GetJSON("/dataassetmanager/resource/taskApi/listTasksByPage", payload)
}
\ No newline at end of file
......@@ -415,7 +415,9 @@ export function getAssetType(reference) {
}
export function getAssetRange(menuName) {
if (menuName === ResourceManageReference || menuName === AssetManageReference) {
if (menuName === ResourceManageReference ) {
return 'dataAsset_resourceManage';
} else if (menuName === AssetManageReference) {
return 'dataAsset_dataAssetManage';
} else if (menuName === AssetBrowseReference) {
return 'dataAsset_dataAssetBrowse';
......
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