Commit 0166f09f authored by zhengjiawei's avatar zhengjiawei

线路维护

parent 153eccd6
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
.ant-table-header { .ant-table-header {
position: relative; position: relative;
top: 55px; top: 55px;
z-index: 5; z-index: 1;
height: 8px; height: 8px;
background-color: #0e08080a; background-color: #0e08080a;
} }
......
...@@ -169,9 +169,9 @@ class StationMainten extends Component { ...@@ -169,9 +169,9 @@ class StationMainten extends Component {
initMap() { initMap() {
let _this = this; let _this = this;
if (outMap) { if (outMap) {
Object.keys(localStorage).map(e => { Object.keys(window.localStorage).map(e => {
if (e.indexOf('_AMap') === 0) { if (e.indexOf('_AMap') === 0) {
localStorage.removeItem(e); window.localStorage.removeItem(e);
} }
}); });
let script = null; let script = null;
...@@ -195,8 +195,6 @@ class StationMainten extends Component { ...@@ -195,8 +195,6 @@ class StationMainten extends Component {
BasicMap: require('./indexMap') BasicMap: require('./indexMap')
}); });
}, timeout2000); }, timeout2000);
console.log(this.state);
console.log(require('./indexMap'));
}); });
}); });
} else { } else {
...@@ -518,6 +516,7 @@ class StationMainten extends Component { ...@@ -518,6 +516,7 @@ class StationMainten extends Component {
</Col> </Col>
<Col span={12} style={{ height: '614px', border: '1px solid black' }}> <Col span={12} style={{ height: '614px', border: '1px solid black' }}>
<div style={{ height: '614px' }}> <div style={{ height: '614px' }}>
{ /**this.state.loadAmap && <BasicMap indexViewChange={this.indexViewChange} pushMarkerPoint={this.handleMarkerMap} /> */}
{ this.state.loadAmap && <BasicMap indexViewChange={this.indexViewChange} pushMarkerPoint={this.handleMarkerMap} /> } { this.state.loadAmap && <BasicMap indexViewChange={this.indexViewChange} pushMarkerPoint={this.handleMarkerMap} /> }
</div> </div>
</Col> </Col>
......
...@@ -69,7 +69,7 @@ class IndexMap extends Component { ...@@ -69,7 +69,7 @@ class IndexMap extends Component {
* @memberof IndexMap * @memberof IndexMap
*/ */
handleClickMap = e => { handleClickMap = e => {
let { marker } = this.state; const { marker } = this.state;
marker.longitude = e.lnglat.lng; marker.longitude = e.lnglat.lng;
marker.latitude = e.lnglat.lat; marker.latitude = e.lnglat.lat;
this.setState({ marker }); this.setState({ marker });
...@@ -81,7 +81,7 @@ class IndexMap extends Component { ...@@ -81,7 +81,7 @@ class IndexMap extends Component {
created: this.setInstanceToGlobal, created: this.setInstanceToGlobal,
click: this.handleClickMap click: this.handleClickMap
}; };
let { mapCenter, marker } = this.state; const { mapCenter, marker } = this.state;
if (outMap) { if (outMap) {
......
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