Browse Source

(*)点位布设 样式优化

master
wuqun 2 years ago
parent
commit
3b25eee878
  1. 5
      web/client/src/sections/projectRegime/containers/pointDeploy/default.js
  2. 6
      web/client/src/sections/projectRegime/containers/pointDeploy/deploy-style.less

5
web/client/src/sections/projectRegime/containers/pointDeploy/default.js

@ -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>

6
web/client/src/sections/projectRegime/containers/pointDeploy/deploy-style.less

@ -1,5 +1,11 @@
.search-panel {
text-align: center;
.btn-spots-filter {
//选中的
background-color: #3198F7;
border-color: #3198F7;
color: #fff;
}
}
.search-panel input {

Loading…
Cancel
Save