Browse Source

chore: 集成地图组件

cfofpp 4 tháng trước cách đây
mục cha
commit
a1a7c974e1
1 tập tin đã thay đổi với 5 bổ sung9 xóa
  1. 5 9
      src/views/home/index.vue

+ 5 - 9
src/views/home/index.vue

@@ -6,17 +6,10 @@
           <PointsRanking></PointsRanking>
         </el-card>
         <el-card class="h-60 mt-10">
-          <MapHy></MapHy>
+          <!-- <MapHy></MapHy> -->
+          <MapView></MapView>
         </el-card>
-        <!-- <el-card class="h-48 mt-10">
-          <RiskIdentification height="100%"></RiskIdentification>
-        </el-card> -->
       </el-col>
-      <!-- <el-col :span="8" class="h-full-calc">
-        <el-card class="h-full">
-          <MapHy></MapHy>
-        </el-card>
-      </el-col> -->
       <el-col :span="12" class="h-full-calc">
         <el-card class="h-40">
           <RiskIdentification height="95%"></RiskIdentification>
@@ -37,6 +30,7 @@ import TargetSituation from "./components/TargetSituation/index.vue";
 import RiskIdentification from "./components/RiskIdentification/index.vue";
 import PointsRanking from "./components/PointsRanking/index.vue";
 import TargetMonth from "./components/TargetMonth/index.vue";
+import MapView from "../map-view/MapView.vue";
 
 export default {
   components: {
@@ -45,6 +39,7 @@ export default {
     RiskIdentification,
     MapHy,
     PointsRanking,
+    MapView,
   },
   data() {
     return {
@@ -93,6 +88,7 @@ export default {
   height: calc(33% - 5px);
 }
 .h-60 {
+  width: 100%;
   height: calc(67% - 5px);
 }
 .h-48 {