| | |
| | | point.name = point.hdName; // 隐患点名称 |
| | | point.className = "district"; |
| | | } else if (route.path === "/zhjc") { |
| | | point.name = point.deviceForShort; // 设备简称 |
| | | point.name = point.deviceName; // 设备简称 |
| | | point.className = "device"; |
| | | } |
| | | |
| | |
| | | } catch (error) { |
| | | console.error("区域点击处理失败:", error); |
| | | ElMessage.error("数据加载失败,请稍后再试"); |
| | | loadingInstance.close(); // 确保在发生错误时也关闭 loading 提示 |
| | | // loadingInstance.close(); // 确保在发生错误时也关闭 loading 提示 |
| | | } |
| | | }); |
| | | } |
| | |
| | | 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(); |