Commit a6593e14 by zhaochengxiang

资产增加数据安全

parent ccb32f52
...@@ -118,6 +118,7 @@ const AssetAction = (props) => { ...@@ -118,6 +118,7 @@ const AssetAction = (props) => {
payload: { payload: {
dataAssetId: id, dataAssetId: id,
dirId: dirId, dirId: dirId,
checkPermission: readOnly
}, },
callback: data => { callback: data => {
setLoading(false); setLoading(false);
......
...@@ -38,7 +38,8 @@ const AssetDetail = (props)=>{ ...@@ -38,7 +38,8 @@ const AssetDetail = (props)=>{
type: 'assetmanage.getDataAssetDetail', type: 'assetmanage.getDataAssetDetail',
payload: { payload: {
dataAssetId: id, dataAssetId: id,
dirId: dirId||'' dirId: dirId||'',
checkPermission: true
}, },
callback: data => { callback: data => {
setLoading(false); setLoading(false);
......
...@@ -389,8 +389,12 @@ const AssetTable = (props) => { ...@@ -389,8 +389,12 @@ const AssetTable = (props) => {
let url = 'assetmanage.listDataAssetsByPage'; let url = 'assetmanage.listDataAssetsByPage';
if (reference===AssetRecycleReference) { if (reference===AssetRecycleReference) {
url = 'assetmanage.listRecycleBinDataAssetsByPage'; url = 'assetmanage.listRecycleBinDataAssetsByPage';
} else if ((reference===AssetBrowseReference|| reference===ResourceBrowseReference) && nodeType==='custom' ) { } else if ((reference===AssetBrowseReference|| reference===ResourceBrowseReference)) {
url = 'assetmanage.listDataAssetsByPersonalCustomType'; params.checkPermission = true;
if (nodeType === 'custom') {
url = 'assetmanage.listDataAssetsByPersonalCustomType';
}
} }
dispatchLatestHomepage({ dispatchLatestHomepage({
......
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