Commit 9207e2f8 by zhaochengxiang

资产bug

parent 994d34e6
...@@ -561,7 +561,8 @@ const AssetTable = (props) => { ...@@ -561,7 +561,8 @@ const AssetTable = (props) => {
// } // }
const deleteAssets = () => { const deleteAssets = () => {
if ((checkedKeys||[]).length > 0) { if ((checkedKeys||[]).length === 0) return;
if (reference === AssetManageReference) { if (reference === AssetManageReference) {
setAssetDeleteModalVisible(true); setAssetDeleteModalVisible(true);
} else { } else {
...@@ -587,9 +588,6 @@ const AssetTable = (props) => { ...@@ -587,9 +588,6 @@ const AssetTable = (props) => {
} }
}) })
} }
}else{
showMessage("warn","请先选择资产")
}
} }
const onImportAssetCancel = () => { const onImportAssetCancel = () => {
...@@ -614,6 +612,7 @@ const AssetTable = (props) => { ...@@ -614,6 +612,7 @@ const AssetTable = (props) => {
} }
const onBatchCatalogChangeBtnClick = () => { const onBatchCatalogChangeBtnClick = () => {
if ((checkedKeys||[]).length===0) return;
setBatchCatalogChange(true); setBatchCatalogChange(true);
setAssetMountVisible(true); setAssetMountVisible(true);
} }
......
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