From 8a368655576fd4eb3f517610aa8b30d633f1ea84 Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期三, 23 四月 2025 16:26:25 +0800
Subject: [PATCH] change

---
 src/components/tools/LayerTree.vue         |    5 -----
 src/utils/area_all.js                      |    8 ++++----
 src/views/GisView.vue                      |    2 +-
 src/utils/area.js                          |    6 +++---
 src/components/monifangzhen/schemeInfo.vue |    2 +-
 src/views/Home.vue                         |    2 +-
 src/components/tools/Message.vue           |    2 +-
 src/views/mnfz.vue                         |    2 --
 8 files changed, 11 insertions(+), 18 deletions(-)

diff --git a/src/components/monifangzhen/schemeInfo.vue b/src/components/monifangzhen/schemeInfo.vue
index 9db0533..5d26cd7 100644
--- a/src/components/monifangzhen/schemeInfo.vue
+++ b/src/components/monifangzhen/schemeInfo.vue
@@ -59,7 +59,7 @@
 watch(
   () => props.selectedScheme,
   (newScheme) => {
-    console.log(newScheme, "寮圭獥鐨勬暟鎹�");
+    // console.log(newScheme, "寮圭獥鐨勬暟鎹�");
 
     // 妫�鏌ユ暟鎹湁鏁堟��
     if (!newScheme || typeof newScheme !== "object") {
diff --git a/src/components/tools/LayerTree.vue b/src/components/tools/LayerTree.vue
index b3649e5..a89fbb3 100644
--- a/src/components/tools/LayerTree.vue
+++ b/src/components/tools/LayerTree.vue
@@ -204,16 +204,12 @@
  */
 function toggleLayerVisible(name, checked) {
   const entityList = treeMap.get(name);
-
-  console.log(`Toggling visibility for ${name}:`, checked);
-
   if (Array.isArray(entityList)) {
     entityList.forEach((entity) => {
       console.log(`Setting entity show to:`, checked);
       entity.show = checked;
     });
   } else if (entityList && typeof entityList.show !== "undefined") {
-    console.log(`Setting layer show to:`, checked);
     entityList.show = checked;
   } else {
     console.error(`鏃犳硶璁剧疆鍥惧眰 ${name} 鐨勫彲瑙佹�);
@@ -228,7 +224,6 @@
  */
 const getDevicetList = async () => {
   await getDevicetListData().then((res) => {
-    console.log(res.data, "devicetList.value2");
     devicetList.value = res.data;
   });
 };
diff --git a/src/components/tools/Message.vue b/src/components/tools/Message.vue
index 4086b98..2a464a0 100644
--- a/src/components/tools/Message.vue
+++ b/src/components/tools/Message.vue
@@ -27,7 +27,7 @@
 watch(
   () => props.mesData,
   (newMesData) => {
-    console.log(newMesData, '寮圭獥鐨勬暟鎹�');
+    // console.log(newMesData, '寮圭獥鐨勬暟鎹�');
 
     // 妫�鏌ユ暟鎹湁鏁堟��
     if (!newMesData || typeof newMesData !== "object") {
diff --git a/src/utils/area.js b/src/utils/area.js
index 787fc9d..891aa95 100644
--- a/src/utils/area.js
+++ b/src/utils/area.js
@@ -14,7 +14,7 @@
 	// 鑾峰彇 GeoJSON 涓殑绗竴涓� Polygon feature
 	return dataSourcePromise.then(function (dataSource) {
 		viewer.dataSources.add(dataSource)
-		console.log("dataSource", dataSource)
+		// console.log("dataSource", dataSource)
 		// 鑾峰彇 GeoJSON 涓殑绗竴涓� Polygon feature
 		areaDataSource.push(dataSource)
 
@@ -25,7 +25,7 @@
 		// return areaPrimitive
 
 		const polygonEntity = dataSource.entities.values
-		console.log("polygonEntity", polygonEntity)
+		// console.log("polygonEntity", polygonEntity)
 		const distanceDisplayCondition = new Cesium.DistanceDisplayCondition(1000, 50000000)
 		polygonEntity.forEach(entity => {
 			// console.log("entity", entity)
@@ -211,7 +211,7 @@
 		dataSource.name = name
 		// viewer.dataSources.add(dataSource)
 		// 鑾峰彇 GeoJSON 涓殑绗竴涓� Polygon feature
-		console.log("dataSource", dataSource)
+		// console.log("dataSource", dataSource)
 
 		const polygonEntity = dataSource.entities.values
 		areaLineEntities.push(...polygonEntity)
diff --git a/src/utils/area_all.js b/src/utils/area_all.js
index 37919c5..11e8345 100644
--- a/src/utils/area_all.js
+++ b/src/utils/area_all.js
@@ -16,11 +16,11 @@
     // 鑾峰彇 GeoJSON 涓殑 Polygon feature
     return dataSourcePromise.then(function (dataSource) {
         viewer.dataSources.add(dataSource);
-        console.log("GeoJSON data loaded:", dataSource);
+        // console.log("GeoJSON data loaded:", dataSource);
         areaDataSource.push(dataSource);
 
         const polygonEntity = dataSource.entities.values;
-        console.log("Entities in dataSource:", polygonEntity);
+        // console.log("Entities in dataSource:", polygonEntity);
 
         // 鍒濆鍖栨晥鏋�
         applyPolygonEffects(polygonEntity, color);
@@ -33,7 +33,7 @@
 }
 
 function applyPolygonEffects(entities, color) {
-    console.log("Applying polygon effects...");
+    // console.log("Applying polygon effects...");
     entities.forEach(entity => {
         entity.polygon.heightReference = Cesium.HeightReference.NONE;
         entity.polygon.material = new Cesium.ColorMaterialProperty(color); // 璁剧疆濉厖棰滆壊
@@ -44,7 +44,7 @@
         if (!viewer.entities.getById(entity.id)) {
             viewer.entities.add(entity);
         }
-        console.log("Effect applied to entity:", entity.id);
+        // console.log("Effect applied to entity:", entity.id);
     });
 }
 
diff --git a/src/views/GisView.vue b/src/views/GisView.vue
index 04199ce..f2c202c 100644
--- a/src/views/GisView.vue
+++ b/src/views/GisView.vue
@@ -49,7 +49,7 @@
   return dataSourcePromise.then(function (dataSource) {
     viewer.dataSources.add(dataSource)
     const polygonEntity = dataSource.entities.values
-    console.log("polygonEntity", polygonEntity)
+    // console.log("polygonEntity", polygonEntity)
     const distanceDisplayCondition = new Cesium.DistanceDisplayCondition(1000, 50000000)
     polygonEntity.forEach(entity => {
       // console.log("entity", entity)
diff --git a/src/views/Home.vue b/src/views/Home.vue
index c39903e..e154755 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -104,7 +104,7 @@
   getSimData() //娴嬭瘯tr鍚庣
   try {
     const wktResult = convertToWKT(multiPolygonCoordinates);
-    console.log(wktResult,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
+    // console.log(wktResult,'a');
     // 杈撳嚭: MULTIPOLYGON(((120.123456 30.654321,120.234567 30.765432,120.345678 30.876543,120.123456 30.654321)))
   } catch (error) {
     console.error(error.message);
diff --git a/src/views/mnfz.vue b/src/views/mnfz.vue
index 93111d1..b7981b6 100644
--- a/src/views/mnfz.vue
+++ b/src/views/mnfz.vue
@@ -266,7 +266,6 @@
 // 娣诲姞浜嬩欢鐩戝惉鍣紝鎺ユ敹鏉ヨ嚜琛ㄦ牸缁勪欢鐨勪簨浠�
 function setupRowClickListener(dataSources) {
   if (!Array.isArray(dataSources) || dataSources.length === 0) {
-    console.error("Data sources array is undefined or empty!");
     return;
   }
   EventBus.on("row-clicked", (id) => {
@@ -294,7 +293,6 @@
 // 鏍规嵁ID鏌ユ壘瀹炰綋
 function findEntityById(id, dataSources) {
   if (!Array.isArray(dataSources) || dataSources.length === 0) {
-    console.error("Data sources array is undefined or empty!");
     return null;
   }
   console.log("Searching for ID:", id);

--
Gitblit v1.9.3