wujingjing
2025-02-10 e50196bff10f0196307b2567ed6c0829eadd8ff6
src/components/chat/chatComponents/summaryCom/components/recordSetTable/map/panelTool/LayerControl.vue
@@ -51,7 +51,7 @@
   const checkedKeys = node.checkedKeys;
   isHumanCheckTrigger = true;
   travelTree(layerInfo.value, (layer) => {
      if (layer.type === 'layer') {
      if (layer.type === 'layer' || layer.type === 'equip') {
         const id = layer.id;
         if (!checkedKeys.includes(id)) {
            layer.isVisible = false;
@@ -63,7 +63,23 @@
};
const handleNodeClick = () => {};
const layerInfo = computed(() => (props.olMap as OLMap).layerInfo.value);
const layerInfo = computed(() => {
   const info =(props.olMap as OLMap).layerInfo.value
   return info;
   const result = info.concat([
      {
         id: 'overlays',
         title: '监测设备',
         children: [],
         type: 'equip',
      },
   ])
   return result;
});
watch(
   () => layerInfo.value,
@@ -74,7 +90,7 @@
      }
      const keys = [];
      travelTree(val, (item) => {
         if (item.type === 'layer') {
         if (item.type === 'layer'|| item.type === 'equip') {
            if (item.isVisible) {
               keys.push(item.id);
            }