Commit a0673093 by zhaochengxiang

地图优化

parent 695f0762
......@@ -235,7 +235,10 @@ class MapContent extends React.Component {
this.setState({ parentNodeId: '' }, () => {
dispatchLatest({
type: 'map.getTableModelByDirIid',
payload: { dirId },
payload: {
dirId,
topNum: defaultLoadCount
},
callback: data => {
this.convertRemoteData(data||[], nodeId, dirId);
this.setState({
......@@ -272,8 +275,8 @@ class MapContent extends React.Component {
}
onLevelChange = (value) => {
this.setState({ currentLevel: value }, () => {
this.queryAllDirectoryAsTreeByDirLevel(value - 1);
this.setState({ currentLevel: value, parentNodeId: null }, () => {
this.queryAllDirectoryAsTreeByDirLevel(false, 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