fix:修改分页与点击事件重复

This commit is contained in:
SunTao 2025-04-10 17:12:55 +08:00
parent 815a510667
commit 67e1cf5723

View File

@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com * @Author: SunTao 328867980@qq.com
* @Date: 2025-03-25 11:10:16 * @Date: 2025-03-25 11:10:16
* @LastEditors: SunTao 328867980@qq.com * @LastEditors: SunTao 328867980@qq.com
* @LastEditTime: 2025-04-10 16:51:45 * @LastEditTime: 2025-04-10 17:12:07
* @FilePath: \znxjxt-ui\src\views\xj\inspection\map-diease\index.vue * @FilePath: \znxjxt-ui\src\views\xj\inspection\map-diease\index.vue
* @Description: 地图展示筛选病害-首页 * @Description: 地图展示筛选病害-首页
--> -->
@ -50,7 +50,7 @@
v-loading="loading" v-loading="loading"
:data="tableList" :data="tableList"
style="width: 100%" style="width: 100%"
@row-dblclick="handleCurrentChange" @row-dblclick="handleDbClick"
> >
<el-table-column label="路段名称" align="center" prop="segmentName"> <el-table-column label="路段名称" align="center" prop="segmentName">
</el-table-column> </el-table-column>
@ -238,7 +238,7 @@ export default {
* @param {*} e * @param {*} e
* @return {*} * @return {*}
*/ */
handleCurrentChange(e) { handleDbClick(e) {
if (this.clusters) { if (this.clusters) {
const map = this.$refs.mapDieaseMap.instance.get("map"); const map = this.$refs.mapDieaseMap.instance.get("map");
map.removeLayer(this.clusters); map.removeLayer(this.clusters);