guonan
7 天以前 112fe00d846c65847b0a1e9570ab19dfcf8ed784
避险场所
已修改2个文件
5 ■■■■■ 文件已修改
src/components/tools/LayerTree.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/tools/LayerTree.vue
@@ -267,7 +267,6 @@
  if (list && Array.isArray(list)) {
    for (const item of list) {
      const entity = await item;
      console.log(entity,'eeeeeeeee')
      let shouldRemove = true; // 默认要删除
@@ -375,7 +374,7 @@
 * 添加避险场所数据
 */
function addTetrahedron() {
  getSafePoint().then((res) => {
  getSafePoint(110116110218).then((res) => {
    const geoJsonData = convertToGeoJson(res.data); // 转换为 GeoJSON
    // 加载 GeoJSON 数据到地图
    loadAreaPolygon(geoJsonData, true).then((entities) => {
src/views/Home.vue
@@ -145,7 +145,7 @@
  getAllCode().then((res) => {
    // 北京市所有村以及街道code
    simStore.townCodeAll = groupTopWithLeafNodes(res.data[0].children);
    console.log(simStore.townCodeAll, "aaaaaaaaaaaaaaaaaaa");
    console.log(simStore.townCodeAll, "中科软接口获取乡镇code");
  });
  setupTokenRefresh(); // 获取宏图token
  // getSimData(); //测试tr后端