派生自 wuyushui/SewerAndRainNetwork

wangqi
2021-04-01 dac4ce9c559a5ddd3d4666c9ac93d25dde97cacc
src/components/LayerController/logic/WasteGas.js
@@ -19,7 +19,7 @@
   */
  this.init = async (layer, L) => {
    this.animalService = new AnimalService({ L: L, layer: layer })
    const res = await mapApi.GetWasteGas()
    const res = await mapApi.getWasteGas()
    const data = res.Result.DataInfo || {}
    console.log(data)
    for (let i = 0; i < data.length; i++) {
@@ -51,13 +51,13 @@
  this.clickListener = async (e) => {
    // console.log(e)
    this.animalService.pulseEffect(e.latlng)
    const dataValue = {
      StoragePlaceId: e.layer.options.test.StoragePlaceId
    }
    const result = await mapApi.GetWasteGas(dataValue)
    // const dataValue = {
    //   StoragePlaceId: e.layer.options.test.StoragePlaceId
    // }
    // const result = await mapApi.getWasteGas(dataValue)
    const PublicBounced = window.Vue.extend(publicBounced)
    const instance = new PublicBounced()
    instance.setData(result)
    instance.setData(e.layer.options.test)
    instance.$mount()
    document.body.appendChild(instance.$el)
  }