Commit 5d0501e1 by zhaochengxiang

资产变更提示

parent 7bc510df
...@@ -775,8 +775,11 @@ const AssetTable = (props) => { ...@@ -775,8 +775,11 @@ const AssetTable = (props) => {
dispatch({ dispatch({
type: 'assetmanage.recoveryFromRecycleBin', type: 'assetmanage.recoveryFromRecycleBin',
payload, payload,
callback: () => { callback: (data) => {
showMessage("success","恢复成功"); if (data?.message) {
showNotifaction('提示', data?.message, 5);
}
getDataAssets(); getDataAssets();
setCheckedKeys([]); setCheckedKeys([]);
} }
......
...@@ -3,7 +3,7 @@ import { Modal } from "antd"; ...@@ -3,7 +3,7 @@ import { Modal } from "antd";
import { dispatch } from '../../../../model'; import { dispatch } from '../../../../model';
import AssetTree from '../../AssetManage/Component/AssetManageTree'; import AssetTree from '../../AssetManage/Component/AssetManageTree';
import { showMessage } from '../../../../util'; import { showMessage, showNotifaction } from '../../../../util';
import { AssetManageReference, AssetRecycleReference, AssetMountReference } from "../../../../util/constant"; import { AssetManageReference, AssetRecycleReference, AssetMountReference } from "../../../../util/constant";
...@@ -34,7 +34,10 @@ const AssetMount = (props) => { ...@@ -34,7 +34,10 @@ const AssetMount = (props) => {
}, },
callback: data => { callback: data => {
setConfirmLoading(false); setConfirmLoading(false);
if (data?.message) {
showNotifaction('提示', data?.message, 5);
}
reset(); reset();
onCancel && onCancel(true); onCancel && onCancel(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