派生自 wuyushui/SewerAndRainNetwork

QibolinCzp
2021-05-14 2775d5f5cee087361e9e85e10ff55665e5ed0839
src/components/LayerController/logic/EnterpriseEmergency.js
@@ -2,6 +2,28 @@
 * 企业应急
 */
module.exports = function () {
// 使用封装方法
const AnimalService = require('../service/AnimalService').default
module.exports = function () {
  this.init = async (layer, L) => {
    this.animalService = new AnimalService({
      L: L,
      layer: layer
    })
  }
  this.bindTooltip = (layer) => {
    return 'layer'
  }
  this.click = () => {
    window.$layer.open({
      content: {
        content: 'Popup', // 组件
        data: { // 传递的参数
          datas: 'popupDatas'
        }
      },
      title: ''
    })
  }
}