点位创建
This commit is contained in:
parent
c7a44d11eb
commit
4fc73b14be
@ -597,10 +597,13 @@ class BaseMap extends React.Component{
|
||||
}).then((e) => {
|
||||
this.state.pointDrawer.removeActiveFeature();
|
||||
this.state.pointDrawer.disable();
|
||||
let layerId = this.state.pointAdd.layerId;
|
||||
if (e.success) {
|
||||
message.success(e.message || '成功!');
|
||||
this.getLayerPoints(this.state.pointAdd.layerId, true, 1);//true新增,1点
|
||||
// this.refs.getLayerDataFun.changeUnitAmount(this.state.pointAdd.layerId);
|
||||
setTimeout(() => {
|
||||
this.getLayerPoints(layerId, true, 1);
|
||||
this.refs.getLayerDataFun.changeUnitAmount(this.state.pointAdd.layerId);
|
||||
}, 1000);//true新增,1点
|
||||
this.setState({
|
||||
isModalOpen: false,
|
||||
pointAdd: {},
|
||||
|
Loading…
Reference in New Issue
Block a user