Commit 28c20a6b by zhaochengxiang

参数问题

parent 41616260
...@@ -85,7 +85,7 @@ const AssetAction = (props) => { ...@@ -85,7 +85,7 @@ const AssetAction = (props) => {
payload: { payload: {
params: { params: {
range: getAssetRange(reference), range: getAssetRange(reference),
dataAsset: getAssetType(reference), dataAssetType: getAssetType(reference),
} }
}, },
callback: data => { callback: data => {
......
...@@ -53,7 +53,7 @@ const CustomDirectoryModal = (props) => { ...@@ -53,7 +53,7 @@ const CustomDirectoryModal = (props) => {
dispatch({ dispatch({
type: 'assetmanage.listCustomElements', type: 'assetmanage.listCustomElements',
payload: { payload: {
dataAsset: getAssetType(reference) dataAssetType: getAssetType(reference)
}, },
callback: elements => { callback: elements => {
setData(elements||[]); setData(elements||[]);
...@@ -89,7 +89,7 @@ const CustomDirectoryModal = (props) => { ...@@ -89,7 +89,7 @@ const CustomDirectoryModal = (props) => {
let payload = { let payload = {
data: checkedValues, data: checkedValues,
params: { params: {
dataAsset: getAssetType(reference) dataAssetType: getAssetType(reference)
} }
} }
...@@ -168,7 +168,7 @@ const CustomDirectoryModal = (props) => { ...@@ -168,7 +168,7 @@ const CustomDirectoryModal = (props) => {
data: checkedValues, data: checkedValues,
params: { params: {
...row, ...row,
dataAsset: getAssetType(reference) dataAssetType: getAssetType(reference)
} }
} }
......
...@@ -77,7 +77,7 @@ const ImportAssetDrawer = (props) => { ...@@ -77,7 +77,7 @@ const ImportAssetDrawer = (props) => {
}, [visible]) }, [visible])
const downloadTemplate = () => { const downloadTemplate = () => {
window.open(`/api/dataassetmanager/dataAssetApi/getImportTemplate?dataAsset=${getAssetType(reference)}`); window.open(`/api/dataassetmanager/dataAssetApi/getImportTemplate?dataAssetType=${getAssetType(reference)}`);
} }
const getLogs = (p = 1, s = 20) => { const getLogs = (p = 1, s = 20) => {
...@@ -85,7 +85,7 @@ const ImportAssetDrawer = (props) => { ...@@ -85,7 +85,7 @@ const ImportAssetDrawer = (props) => {
dispatch({ dispatch({
type: 'assetmanage.importLogs', type: 'assetmanage.importLogs',
payload: { payload: {
dataAsset: getAssetType(reference), dataAssetType: getAssetType(reference),
page: p, page: p,
pageSize: s pageSize: s
}, },
...@@ -137,7 +137,7 @@ const ImportAssetDrawer = (props) => { ...@@ -137,7 +137,7 @@ const ImportAssetDrawer = (props) => {
type: 'assetmanage.getDirectoryById', type: 'assetmanage.getDirectoryById',
payload: { payload: {
dirId: nodeId, dirId: nodeId,
dataAsset: getAssetType(reference) dataAssetType: getAssetType(reference)
}, },
callback: data => { callback: data => {
console.log('path', data.path); console.log('path', data.path);
......
...@@ -34,7 +34,7 @@ const ImportDirectory = (props) => { ...@@ -34,7 +34,7 @@ const ImportDirectory = (props) => {
type: 'assetmanage.getDirectoryById', type: 'assetmanage.getDirectoryById',
payload: { payload: {
dirId, dirId,
dataAsset: getAssetType(reference) dataAssetType: getAssetType(reference)
}, },
callback: data => { callback: data => {
setDir(data); setDir(data);
...@@ -58,7 +58,7 @@ const ImportDirectory = (props) => { ...@@ -58,7 +58,7 @@ const ImportDirectory = (props) => {
payload = { payload = {
params: { params: {
ignoreRepeatPath, ignoreRepeatPath,
dataAsset: getAssetType(reference) dataAssetType: getAssetType(reference)
}, },
fileList: fileList, fileList: fileList,
}; };
...@@ -67,7 +67,7 @@ const ImportDirectory = (props) => { ...@@ -67,7 +67,7 @@ const ImportDirectory = (props) => {
params: { params: {
ignoreRepeatPath, ignoreRepeatPath,
parentPath: dir.path, parentPath: dir.path,
dataAsset: getAssetType(reference) dataAssetType: getAssetType(reference)
}, },
fileList: fileList fileList: fileList
}; };
......
...@@ -388,7 +388,7 @@ const FC = (props) => { ...@@ -388,7 +388,7 @@ const FC = (props) => {
<Menu> <Menu>
<Menu.Item> <Menu.Item>
<div style={{ textAlign: 'center' }} onClick={() => { <div style={{ textAlign: 'center' }} onClick={() => {
window.open(`/api/dataassetmanager/directoryApi/export?dataAsset=${getAssetType(AssetManageReference)}`) window.open(`/api/dataassetmanager/directoryApi/export?dataAssetType=${getAssetType(AssetManageReference)}`)
}}> }}>
导出所有 导出所有
</div> </div>
...@@ -400,7 +400,7 @@ const FC = (props) => { ...@@ -400,7 +400,7 @@ const FC = (props) => {
type: 'assetmanage.getDirectoryById', type: 'assetmanage.getDirectoryById',
payload: { payload: {
dirId: selectedKey, dirId: selectedKey,
dataAsset: getAssetType(AssetManageReference) dataAssetType: getAssetType(AssetManageReference)
}, },
callback: data => { callback: data => {
window.open(`/api/dataassetmanager/directoryApi/export?parentPath=${data.path}`); window.open(`/api/dataassetmanager/directoryApi/export?parentPath=${data.path}`);
......
...@@ -186,7 +186,7 @@ const AssetInfoItem = ({ items, onChange }) => { ...@@ -186,7 +186,7 @@ const AssetInfoItem = ({ items, onChange }) => {
payload: { payload: {
params: { params: {
range: getAssetRange(ResourceManageReference), range: getAssetRange(ResourceManageReference),
dataAsset: getAssetType(ResourceManageReference), dataAssetType: getAssetType(ResourceManageReference),
} }
}, },
callback: data => { callback: data => {
......
...@@ -441,7 +441,7 @@ const FC = (props) => { ...@@ -441,7 +441,7 @@ const FC = (props) => {
<Menu> <Menu>
<Menu.Item> <Menu.Item>
<div style={{ textAlign: 'center' }} onClick={() => { <div style={{ textAlign: 'center' }} onClick={() => {
window.open(`/api/dataassetmanager/directoryApi/export?dataAsset=${getAssetType(ResourceManageReference)}`) window.open(`/api/dataassetmanager/directoryApi/export?dataAssetType=${getAssetType(ResourceManageReference)}`)
}}> }}>
导出所有 导出所有
</div> </div>
...@@ -453,7 +453,7 @@ const FC = (props) => { ...@@ -453,7 +453,7 @@ const FC = (props) => {
type: 'assetmanage.getDirectoryById', type: 'assetmanage.getDirectoryById',
payload: { payload: {
dirId: selectedKey, dirId: selectedKey,
dataAsset: getAssetType(ResourceManageReference) dataAssetType: getAssetType(ResourceManageReference)
}, },
callback: data => { callback: data => {
window.open(`/api/dataassetmanager/directoryApi/export?parentPath=${data.path}`); window.open(`/api/dataassetmanager/directoryApi/export?parentPath=${data.path}`);
......
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