派生自 wuyushui/SewerAndRainNetwork

ChenZeping02609
2021-05-12 f9f80893f6b29f0aaa8d5f7c1291f91b8f477fe4
src/components/LayerController/service/BusiLayerService.js
@@ -13,15 +13,17 @@
  init (layer) {
    // 引入 关联的js,在constant.js中根据config配置的id得到处理js
    const id = this.config.code
    console.log(id)
    const file = logicMapper[id]
    if (!file) {
      console.log('找不到逻辑处理js!!!')
      console.log('找不到逻辑处理js!!!' + id)
    } else {
      var BusiLayer = require('../logic/' + file)
      var busiLayer = new BusiLayer()
      busiLayer.init(layer, this.L)
      if (busiLayer.bindTooltip) {
        layer.bindTooltip(busiLayer.bindTooltip(layer))
        // 全局tips位置
        layer.bindTooltip(busiLayer.bindTooltip, { direction: 'top', offset: [0, -15], sticky: false })
      }
      // 调用click事件
      if (busiLayer.clickListener) {