Commit 93ad1f43 by zhaochengxiang

资产管理问题

parent 092baf20
...@@ -122,6 +122,7 @@ const AssetTable = (props) =>{ ...@@ -122,6 +122,7 @@ const AssetTable = (props) =>{
callback: () => { callback: () => {
showMessage("success","删除成功") showMessage("success","删除成功")
getTable(); getTable();
setCheckAllValue(false);
}, },
error: () => { error: () => {
} }
......
...@@ -144,6 +144,13 @@ const AssetTree = (props) => { ...@@ -144,6 +144,13 @@ const AssetTree = (props) => {
const { value } = e.target; const { value } = e.target;
if (value === '') {
setExpandedKeys([]);
setAutoExpandParent(false);
setKeyword(value);
return;
}
const expandedKeys = dataList const expandedKeys = dataList
.map(item => { .map(item => {
if (item.title.indexOf(value) > -1) { if (item.title.indexOf(value) > -1) {
......
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