Browse Source

海绵城市的清单提交

zhiyuan-007 5 months ago
parent
commit
a780c83959

+ 4 - 2
src/views/c-views/visualizationPart/effect/effect.vue

@@ -2,7 +2,7 @@
   <div id="effect">
     <VisualizationHeader />
     <Map type="effect"/>
-    <service-tree :serviceData="serviceCXLayer"  />
+    <service-tree :serviceData="serviceCXLayer" :defaultCheckedKeys=defaultLayer  />
     <div class="right">
       <div class="top">
         图例
@@ -50,8 +50,10 @@ export default {
   name: "Effect",
   components: {ServiceTree, VisualizationHeader, HouseBuildingLeft, HouseBuildingRight, TreeMenu, Map},
   setup(){
+    let defaultLayer = ['D9999990320240701','D9999990520240701','D9999990620240701','D9999990320241018','D9999990120241018','D9999990220241018'];
     return{
-      serviceCXLayer
+      serviceCXLayer,
+      defaultLayer
     }
   }
 }

+ 4 - 2
src/views/c-views/visualizationPart/projectManagement/projectManagement.vue

@@ -1,7 +1,7 @@
 <template>
   <div id="projectManagement">
     <VisualizationHeader />
-    <service-tree :serviceData="serviceGLLayer" />
+    <service-tree :serviceData="serviceGLLayer" :defaultCheckedKeys=defaultLayer  />
     <Map type="project"/>
     <div class="right">
       <div class="top">
@@ -26,8 +26,10 @@ export default {
   name: "projectManagement",
   components: { ServiceTree,VisualizationHeader, Map},
   setup(){
+    let defaultLayer = ['D9999990320240701'];
     return{
-      serviceGLLayer
+      serviceGLLayer,
+      defaultLayer
     }
   }
 }