Commit 5d0501e1 by zhaochengxiang

资产变更提示

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