From 8b1521987b83f3b736a1bccfd1ea41de1fcc778c Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 03 四月 2024 20:46:29 +0800 Subject: [PATCH] 1 --- Terra.YaoGan.Web/Terra.YaoGan.Web/js/Gis/Gis.js | 4 +- Terra.YaoGan.Web/Terra.YaoGan.Web/Terra.YaoGan.Web.csproj | 1 Terra.YaoGan.Web/Terra.YaoGan.Web/checkbox.html | 66 +++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 2 deletions(-) diff --git a/Terra.YaoGan.Web/Terra.YaoGan.Web/Terra.YaoGan.Web.csproj b/Terra.YaoGan.Web/Terra.YaoGan.Web/Terra.YaoGan.Web.csproj index 60aba4b..f83e2c2 100644 --- a/Terra.YaoGan.Web/Terra.YaoGan.Web/Terra.YaoGan.Web.csproj +++ b/Terra.YaoGan.Web/Terra.YaoGan.Web/Terra.YaoGan.Web.csproj @@ -1008,6 +1008,7 @@ <Content Include="html\Year.html" /> <Content Include="html\yingxiang.html" /> <Content Include="html\zaiHai.html" /> + <Content Include="checkbox.html" /> <Content Include="Img\a58.png" /> <Content Include="Img\a1.png" /> <Content Include="Img\a2.png" /> diff --git a/Terra.YaoGan.Web/Terra.YaoGan.Web/checkbox.html b/Terra.YaoGan.Web/Terra.YaoGan.Web/checkbox.html new file mode 100644 index 0000000..d26cd5d --- /dev/null +++ b/Terra.YaoGan.Web/Terra.YaoGan.Web/checkbox.html @@ -0,0 +1,66 @@ +锘�<!DOCTYPE html> +<html> +<head> + <title>checkbox.html</title> + <meta http-equiv="Expires" content="0" /> + <meta http-equiv="Cache" content="no-cache" /> + <meta http-equiv="Pragma" content="no-cache" /> + <meta http-equiv="Cache-control" content="no-cache" /> + <link href="imgs/favicon.ico" rel="icon" type="image/x-icon" /> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> + + <style> + html, body { + margin: 0; + padding: 0; + width: 100%; + height: 100%; + } + </style> + <script> + function getQueryString(name) { + var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); + var r = window.location.search.substring(1).match(reg); + if (r != null) { + return decodeURI(r[2]); + }; + return null; + } + + window.onload = function () { + setImageLayer(); + } + + function selectChanged(e) { + setImageLayer(); + } + + function setImageLayer() { + var select = document.getElementById("select"); + var text = select.options[select.selectedIndex].text.replace("骞�", ""); + + var item = SGWorld.ProjectTree.FindItem("澶氭湡鏁版嵁"); + if (item) { + SGWorld.ProjectTree.SetVisibility(item, false); + } + + item = SGWorld.ProjectTree.FindItem("澶氭湡鏁版嵁\\" + text); + if (item) { + SGWorld.ProjectTree.SetVisibility(item, true); + } + } + </script> +</head> +<body> + <select id="select" style="width: 120px; text-align: center;" onchange="selectChanged(this);"> + <option selected="selected">2024骞�</option> + <option>2023骞�</option> + <option>2019骞�</option> + <option>2015骞�</option> + <option>2010骞�</option> + </select> + <object id="SGWorld" classid="CLSID:3a4f9199-65a8-11d5-85c1-0001023952c1"></object> +</body> +</html> \ No newline at end of file diff --git a/Terra.YaoGan.Web/Terra.YaoGan.Web/js/Gis/Gis.js b/Terra.YaoGan.Web/Terra.YaoGan.Web/js/Gis/Gis.js index de05c62..306208e 100644 --- a/Terra.YaoGan.Web/Terra.YaoGan.Web/js/Gis/Gis.js +++ b/Terra.YaoGan.Web/Terra.YaoGan.Web/js/Gis/Gis.js @@ -91,7 +91,7 @@ "top": 35, "bottom": 0, "right": -1, - "visible": "true", + "visible": "false", "direction": "wh" }, { "children": [{ @@ -107,7 +107,7 @@ "top": 35, "bottom": 0, "right": -1, - "visible": "true", + "visible": "false", "direction": "wh" }] }; -- Gitblit v1.9.3