派生自 wuyushui/SewerAndRainNetwork

ChenZeping02609
2021-05-12 a089095b088f14101d5ab4b9fe1d05098f576493
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
 * 污染源
 *  */
 
// 使用封装方法
// 请求接口数据
// import { getSourcesPoll } from '../../../api/request'
 
const mapApi = require('../../../api/mapApi').default
const AnimalService = require('../service/AnimalService').default
 
module.exports = function () {
  this.init = async (layer, L) => {
    this.animalService = new AnimalService({
      L: L,
      layer: layer
    })
    // getSourcesPoll().then(res => {
    //   console.log(res)
    // })
    const result = await mapApi.getSourcesPoll()
    console.log(result)
  }
}