Bladeren bron

标记疑点优化

DESKTOP-6LTVLN7\Liumouren 2 jaren geleden
bovenliggende
commit
fc433100eb

BIN
public/static/plugins/draw-plugin/images/icon-map-delete.png


BIN
public/static/plugins/draw-plugin/images/icon-map-save.png


+ 12 - 6
public/static/plugins/draw-plugin/leaflet.draw.css

@@ -40,20 +40,26 @@
  } */ 
 /*E leaflet-control-measure-distance*/
 .measure-ico-del{
-    background: #fff url(images/icon-delete.png) center center;
-    width: 15px;
-    height: 15px;
+    background: url(images/icon-map-delete.png) center center;
+    width: 30px;
+    height: 30px;
     display: inline-block;
     margin-left: 10px;
     background-size:100%;
+    opacity: 0.85;
+}
+.measure-ico-del:hover,.measure-ico-save:hover{
+    box-shadow: 0 0 4px 2px #34c6d864;
+    opacity: 1;
 }
 .measure-ico-save{
-    background: #fff url(images/icon-save.png) center center;
-    width: 15px;
-    height: 15px;
+    background: url(images/icon-map-save.png) center center;
+    width: 30px;
+    height: 30px;
     display: inline-block;
     margin-left: 10px;
     background-size:100%;
+    opacity: 0.85;
 }
 .measuremarker{
     border-radius: 5px;

+ 5 - 1
src/components/map/MapHolder.vue

@@ -306,19 +306,23 @@ export default {
                 sourceId: 0,
                 pageSize: 10
               };
+              // 暂存map中刚刚保存的数据
               this.$Post(this.urlsCollection.selectByUser, paramData).then(userRes => {
                 if (userRes.code === 200) {
                   // console.log(userRes, "获取我的标记疑点数据");
-
                   if (userRes.content.length > 0) {
                     this.$store.state.myLabelPointsArr = [];
                     this.$store.state.myLabelPointsArr = userRes.content.map(v => {
+                      if (JSON.stringify(geometry) === v.geojson) {
+                        sessionStorage.setItem("myLabelPointsId", v.id);
+                      }
                       return {
                         id: v.id,
                         geojson: v.geojson,
                         type: v.type
                       };
                     });
+                    // 判断刚刚暂存的数据,并调用小眼睛的方法
                   }
                 }
                 // 更新时调用一次搜索接口

File diff suppressed because it is too large
+ 239 - 334
src/views/ComprehensiveAnalysis.vue


Some files were not shown because too many files changed in this diff