Commit 0166f09f authored by zhengjiawei's avatar zhengjiawei

线路维护

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