浏览代码

页面调整

shuhao 1 周之前
父节点
当前提交
639609f83e
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 二进制
      src/assets/images/map/status/nonghu-icon.png
  2. 5 1
      src/views/home/map/samplePointLayer.js

二进制
src/assets/images/map/status/nonghu-icon.png


+ 5 - 1
src/views/home/map/samplePointLayer.js

@@ -380,7 +380,7 @@ class SamplePointLayer {
                       <div class="item-val">${data.ecology_info.dp_situation}%</div>
                       <div class="item-val">${data.ecology_info.dp_situation}%</div>
                   </div>
                   </div>
                 `;
                 `;
-  
+
                 document.getElementById('tag-nh').style.display = fs.get("nonghu") == 1 ? "inline-block" : 'none'
                 document.getElementById('tag-nh').style.display = fs.get("nonghu") == 1 ? "inline-block" : 'none'
                 that.popup.setPosition(evt.coordinate)
                 that.popup.setPosition(evt.coordinate)
               })
               })
@@ -480,6 +480,10 @@ class SamplePointLayer {
       imgSrc = require('@/assets/images/map/status/defalut-icon.png')
       imgSrc = require('@/assets/images/map/status/defalut-icon.png')
       scale = 0.3
       scale = 0.3
     }
     }
+    if (item.nonghu === 1) {
+      imgSrc = require('@/assets/images/map/status/nonghu-icon.png')
+      scale = 0.3
+    }
 
 
     item["icon"] = imgSrc
     item["icon"] = imgSrc
     item["scale"] = scale
     item["scale"] = scale