guonan
2025-06-18 1188387a47e55590a87c161cb43b2db0729b0146
src/views/GisView.vue
@@ -564,7 +564,7 @@
          point.name = point.hdName; // 隐患点名称
          point.className = "district";
        } else if (route.path === "/zhjc") {
          point.name = point.deviceForShort; // 设备简称
          point.name = point.deviceName; // 设备简称
          point.className = "device";
        }
@@ -579,7 +579,7 @@
    } catch (error) {
      console.error("区域点击处理失败:", error);
      ElMessage.error("数据加载失败,请稍后再试");
      loadingInstance.close(); // 确保在发生错误时也关闭 loading 提示
      // loadingInstance.close(); // 确保在发生错误时也关闭 loading 提示
    }
  });
}
@@ -703,8 +703,8 @@
  addCityPolygon();
  initHandler();
  // initView()
  loadAreaPolygon("/json/nsl_area.geojson");
  loadAreaPolygonAll("/json/geometry.json", true);
  // loadAreaPolygon("/json/nsl_area.geojson");
  // loadAreaPolygonAll("/json/geometry.json", true);
  flyToHomeView();
  // 页面加载时初始化
  initAllDistrictCounts();