| | |
| | | |
| | | // 引入用于处理接口数据获取的方法 |
| | | import { getDataInitWireSurface } from '@src/api/request' |
| | | |
| | | class initWireSurface { |
| | | constructor (options) { |
| | | this.map = options.map |
| | | this.L = window.L |
| | | this.initWireSurfaceMap = new Map() |
| | | this.initWireSurfacePopup = this.L.layerGroup().addTo(this.map) |
| | | } |
| | | |
| | | // 获取页面线/面数据 |
| | | getDataInitWireSurface () { |
| | | getDataInitWireSurface().then(res => { |
| | | console.log(res) |
| | | }).catch(error => { |
| | | console.log(error) |
| | | }) |
| | | } |
| | | } |
| | | |
| | | export default initWireSurface |
| | | // // 引入用于处理接口数据获取的方法 |
| | | // import {} from '@src/api/request' |
| | | // |
| | | // class initWireSurface { |
| | | // constructor (options) { |
| | | // this.map = options.map |
| | | // this.L = window.L |
| | | // this.initWireSurfaceMap = new Map() |
| | | // this.initWireSurfacePopup = this.L.layerGroup().addTo(this.map) |
| | | // } |
| | | // |
| | | // // 获取页面线/面数据 |
| | | // getDataInitWireSurface () { |
| | | // ().then(res => { |
| | | // console.log(res) |
| | | // }).catch(error => { |
| | | // console.log(error) |
| | | // }) |
| | | // } |
| | | // } |
| | | // |
| | | // export default initWireSurface |