diff --git a/src/views/spongePerformance/waterUtilizationRate/odorousWaterBodies/todoDon.vue b/src/views/spongePerformance/waterUtilizationRate/odorousWaterBodies/todoDon.vue index 0e603f2..743ff4c 100644 --- a/src/views/spongePerformance/waterUtilizationRate/odorousWaterBodies/todoDon.vue +++ b/src/views/spongePerformance/waterUtilizationRate/odorousWaterBodies/todoDon.vue @@ -246,12 +246,12 @@ onMounted(() => { getDataList(); setTimeout(() => { - addOdorousWaterBodies(); + addOdorousWaterBodies(tableData.value[0].examineYear); }, 2000); setTimeout(() => { //newfiberMapbox.map.moveLayer('xiaoganWater', 'waterLine'); - newfiberMapbox.map.on('click', e => { + newfiberMapbox.map.on('click', 'waterLine', e => { let clickfeature = newfiberMapbox.map .queryRenderedFeatures([ [e.point.x - 10 / 2, e.point.y - 10 / 2],