Commit a0673093 by zhaochengxiang

地图优化

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