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