|
|
@ -294,7 +294,6 @@ class ConfigPlanarGraph extends Component { |
|
|
|
} |
|
|
|
}); |
|
|
|
this.props.dispatch(setDeployPoints(pictureInfo.id, { "spots": postData })).then(res => { |
|
|
|
message.success(res.payload.message); |
|
|
|
this.setState({ dataHasChanged: false, deployState: -1 }, () => { |
|
|
|
this.props.dispatch(getDeployPoints(pictureInfo.id));//获取平面图点位分布
|
|
|
|
}); |
|
|
@ -309,7 +308,7 @@ class ConfigPlanarGraph extends Component { |
|
|
|
let w = clientWidth / 1.3; |
|
|
|
return (<div className='patrolLayout'> |
|
|
|
<Layout> |
|
|
|
<Sider width={230} style={{ background: 'transparent', height: 400 }}> |
|
|
|
<Sider width={'18%'} style={{ background: 'transparent' }}> |
|
|
|
<div className='search-panel'> |
|
|
|
<Button className={deployState == -1 ? 'btn-spots-filter' : 'btn-default'} style={{ borderRadius: 0 }} onClick={() => this.handleStateChange(-1)}>全部</Button> |
|
|
|
<Button className={deployState == 1 ? 'btn-spots-filter' : 'btn-default'} style={{ borderRadius: 0 }} onClick={() => this.handleStateChange(1)}>已布</Button> |
|
|
@ -324,7 +323,7 @@ class ConfigPlanarGraph extends Component { |
|
|
|
</div> |
|
|
|
{ |
|
|
|
treeDataSource ? |
|
|
|
<div id='security-spots-scroller' style={{ position: 'relative', height: 600 }}> |
|
|
|
<div id='security-spots-scroller' style={{ position: 'relative', height: h - 63 }}> |
|
|
|
<Tree className='equip-tree' showLine defaultExpandAll={true}> |
|
|
|
{this.loop(treeDataSource)} |
|
|
|
</Tree> </div> : <div style={{ textAlign: 'center' }}>暂无点位</div> |
|
|
|