diff --git a/css/wg.css b/css/wg.css index 651b8bb..95f6c4b 100644 --- a/css/wg.css +++ b/css/wg.css @@ -6,7 +6,7 @@ height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 99999999; - /* display: none; */ + display: none; } .wg { @@ -168,6 +168,20 @@ overflow-y: scroll; } +.wg-con-right .wg-ri-image-card { + width: calc(100% - 100px); + margin-left:30px; + flex-wrap: wrap; + max-height: 650px; + overflow-y: scroll; +} + +.wg-ri-image-card img{ + width:100%; + margin:0px auto; +} + + .wg-con-right .wg-ri-item { background-color: rgb(12, 69, 76); width: 240px; diff --git a/img/wanggeyuan.png b/img/wanggeyuan.png new file mode 100644 index 0000000..83554d5 Binary files /dev/null and b/img/wanggeyuan.png differ diff --git a/index.html b/index.html index a086fd5..e58030e 100644 --- a/index.html +++ b/index.html @@ -20,6 +20,11 @@ + + + + + @@ -46,6 +51,12 @@ + + + + + + @@ -180,9 +191,9 @@ -
网格化管理
+ -
路线规划
+
路线规划
@@ -324,13 +335,20 @@
-
网格员
+
网格员
网格区划图
+ +
+
+ +
+
+
diff --git a/js/index.js b/js/index.js index 06f8247..b76a19a 100644 --- a/js/index.js +++ b/js/index.js @@ -1751,7 +1751,8 @@ function bindShowTilesParts() { } let name = null; - name = event.graphic.entity.id; + + name = event.graphic.entity.id ? event.graphic.entity.id : null; // 判断点击是否是无人机 if (name.match("UAV")) { @@ -1829,6 +1830,26 @@ function loadUserList(event){ break; case "向导": url ="/api/FirePrevention/Loadxiangdaouser"; break; + case '网格化管理': + $('#wg-container').fadeIn(); + let townName = event.graphic.options.attr.zhen; + let villageName = event.graphic.options.attr.cun; + + $("#wg-ri-image-card").hide(); + $("#wg-ri-card").show(); + + // 点击第一层 + $(`.${townName}`).click(); + + // 点击第二层 + $(`.${villageName}`).click(); + + let thr = $(`.${villageName}`).parent().find('.wg-con-left-thr-item').first().click(); + + console.log("thrthr:::",thr); + + console.log("layerlayer:::",event.graphic.options.attr.zldwmc); + ; } if(url){ diff --git a/js/photo-js.zip b/js/photo-js.zip new file mode 100644 index 0000000..fe4780b Binary files /dev/null and b/js/photo-js.zip differ diff --git a/js/wg.js b/js/wg.js index 2cdcab3..74d7b2b 100644 --- a/js/wg.js +++ b/js/wg.js @@ -24,7 +24,7 @@ $(document).ready(function () { }); let secHtml = `