Browse Source

海绵城市初始化

豪豪 3 months ago
parent
commit
f0e2b8572a

BIN
src/assets/font/YouSheBiaoTiHei.ttf


+ 3 - 3
src/views/c-cpns/Map.vue

@@ -19,14 +19,14 @@ export default {
     onMounted(()=>{
       myBridge.bridgeContent =  bridge = new CityGis.Bridge({
         id: "i_map",
-        url: 'https://cimweb.zjw.sh.cegn.cn:2007/VUE-Map-Tool-Widget/#/jk_map?theme=dark&type=3D', //建科发布
-        //url: 'http://localhost:8081/#/jk_map?theme=dark&type=3D',
+        // url: 'https://cimweb.zjw.sh.cegn.cn:2007/VUE-Map-Tool-Widget/#/jk_map?theme=dark&type=3D', //建科发布
+        url: 'http://localhost:8081/#/jk_map?theme=dark&type=3D',
         onReady: function () {
           console.log("地图创建完成")
         }
       })
       MapClickByType('show');
-      SetBackground()
+      AddSingleLayer()
     })
   }
 }

+ 1 - 1
src/views/c-cpns/VisualizationHeader.vue

@@ -99,7 +99,7 @@ export default {
     align-items: center;
     span{
       width: 485px;
-      font-family: YouSheBiaoTiHei;
+      font-family: 'YouSheBiaoTiHei', sans-serif; /* 应用字体到所有子元素 */
       font-weight: 400;
       font-size: 32px;
       color: #FFFFFF;

+ 1 - 1
src/views/c-views/visualizationPart/VisualizationHome.vue

@@ -1,7 +1,7 @@
 <template>
   <div id="visualizationHome">
     <VisualizationHeader />
-<!--    <Map/>-->
+    <Map/>
 <!--    <TreeMenu />-->
     <ServiceTree/>
     <FigureLegend />

+ 7 - 0
src/views/c-views/visualizationPart/mainPage/MainPage.vue

@@ -24,4 +24,11 @@
 		z-index: 2;
     padding-top: 4%;
   }
+
+  @font-face {
+    font-family: 'YouSheBiaoTiHei';
+    src: url('@/assets/font/YouSheBiaoTiHei.ttf') format('truetype');
+  }
+
+
 </style>

+ 1 - 0
src/views/c-views/visualizationPart/mainPage/mainPageLower/MainPageLower.vue

@@ -121,6 +121,7 @@ export default {
   text-align: left; /* 文本向左对齐 */
   font-size: 20px;
   font-family: "MicrosoftYaHei-Bold", sans-serif; /* 设置字体为 MicrosoftYaHei-Bold */
+  font-weight: bold; /* 字重加粗 */
 }
 
 

+ 1 - 3
src/views/c-views/visualizationPart/municipalFacilities/MunicipalFacilitiesRight/MunicipalFacilitiesRight.vue

@@ -10,9 +10,7 @@
 		<DisasterHazards></DisasterHazards>
 		<!-- 供水管线风险 -->
 		<PipelineRisk></PipelineRisk>
-		
-		
-	</div> 
+	</div>
 </template>
 
 <script setup>