Ver Fonte

添加时间提示,时间选择器

maxiaoxiao há 7 meses atrás
pai
commit
da6131517e

+ 0 - 2
src/views/Idleland/components/details.vue

@@ -65,8 +65,6 @@ export default {
     //关闭详情
     closeInster() {
       this.isShallow = false;
-      viewer.entities.removeAll();
-      viewer.dataSources.removeAll();
     },
 
     handleView(val, type) {

+ 7 - 3
src/views/Idleland/components/tjzl.vue

@@ -1,6 +1,5 @@
 <template>
   <div class="thzl">
-    <div class="tip">本页面土地闲置率和闲置处置率只统计2022年-2024年数据</div>
     <div class="content">
       <div class="item" v-for="(sd, index) in sdlist" :key="index">
         <div class="icon">
@@ -28,6 +27,9 @@
         <pie unit="亩" class="pie_echart" ref="echartRef2"></pie>
       </div>
     </div>
+    <div class="tip">
+      提示:本页面土地闲置率和闲置处置率只统计2022年-2024年数据
+    </div>
   </div>
 </template>
 
@@ -68,7 +70,6 @@ export default {
   },
   mounted() {
     this.getData();
-    console.log(store.state.cockpit_date, "tt");
   },
   methods: {
     changeData(name, updata) {
@@ -202,7 +203,7 @@ export default {
   }
   .echartlist {
     width: 100%;
-    height: calc(100% - 150px);
+    height: calc(100% - 165px);
     overflow-y: auto;
     overflow-x: hidden;
     .ratio_echart {
@@ -217,5 +218,8 @@ export default {
       height: 180px;
     }
   }
+  .tip {
+    color: #9b9b9b;
+  }
 }
 </style>

+ 3 - 1
src/views/Idleland/index.vue

@@ -72,7 +72,9 @@ export default {
       return store.state.vectorData;
     },
   },
-  created() {},
+  created() {
+    store.setCockpitDate(sessionStorage.getItem("cockpitDate").split(","));
+  },
   mounted() {
     this.xzqh = store.state.cockpit_region.id;
     this.regionChange();

+ 1 - 0
src/views/cockpit/datePicker.vue

@@ -77,6 +77,7 @@ export default {
     dateChange() {
       this.$emit("dateChange", this.dateValue);
       store.setCockpitDate(this.dateValue);
+      sessionStorage.setItem("cockpitDate", this.dateValue);
     },
   },
 };