From b72f8f8d58417eb6fb29672d8ac17cfafa46775c Mon Sep 17 00:00:00 2001 From: zhitong.yu <xynz17@163.com> Date: 星期六, 11 五月 2024 10:51:31 +0800 Subject: [PATCH] 增加:主界面选择系统页面,统计实时刷新,低电量人员数据显示 --- src/main/webapp/Home/Home.jsp | 610 +++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 481 insertions(+), 129 deletions(-) diff --git a/src/main/webapp/Home/Home.jsp b/src/main/webapp/Home/Home.jsp index d4f23ac..972b73f 100644 --- a/src/main/webapp/Home/Home.jsp +++ b/src/main/webapp/Home/Home.jsp @@ -1,4 +1,4 @@ -<%-- +锘�<%-- Created by IntelliJ IDEA. User: Dell Date: 2023/11/13 @@ -12,18 +12,16 @@ <title></title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <link rel="stylesheet" href="../CSS/layui.css"> <link rel="stylesheet" href="../Home/HomeCss/Home.css"/> <link rel="stylesheet" href="../CSS/layui1.css"/> <link rel="stylesheet" href="../Home/HomeCss/Time.css/"> <link rel="stylesheet" href="Search/css/style.css"/> <link rel="stylesheet" href="Search/css/style-search.css"/> - <script type="text/javascript" src="../Home/HomeJs/map_load.js"></script> <style> - .layui-table-click { - background-color: #10DB3E !important; - color: black; /*璁剧疆鏂囧瓧棰滆壊涓虹櫧鑹�*/ - } + /*.layui-table-click {*/ + /* background-color: #10DB3E !important;*/ + /* color: black; !*璁剧疆鏂囧瓧棰滆壊涓虹櫧鑹�*!*/ + /*}*/ .BMap_noprint{ z-index: 9999; } @@ -33,7 +31,7 @@ .anchorTR{ z-index: 1000; } - .BMap_naviControl { + .BMapGL_naviControl { z-index: 1000; /* 璁剧疆鎺т欢鐨勫眰绾т负1000 */ } element.style { @@ -62,8 +60,8 @@ } .layui-laypage{ position: relative; - left: 380px; } + .layui-table th{ color: white; border: none !important; @@ -76,8 +74,8 @@ background-color: rgba(28, 52, 89, 0) !important; border: none !important; } - .layui-table tr:hover{ - background-color: black !important; + .layui-table tr:hover td{ + color: #57E1E0; } .layui-laypage { background-color: rgba(5, 73, 146, 0) !important; @@ -135,6 +133,34 @@ background: url("/hxzkuwb/Home/HomeImg/title.png")no-repeat; background-position: center; } + .loading { + width: 200px; + height: 200px; + box-sizing: border-box; + border-radius: 50%; + border-top: 10px solid #63a69f; + /* 鐩稿瀹氫綅 */ + position: relative; + /* 鎵ц鍔ㄧ敾锛堝姩鐢籥1 鏃堕暱 绾挎�х殑 鏃犻檺娆℃挱鏀撅級 */ + animation: a1 2s linear infinite; + } + + .loading::before, + .loading::after { + content: ""; + } + + .loading::before { + border-top: 10px solid #f2e1ac; + /* 鏃嬭浆120搴� */ + transform: rotate(120deg); + } + + .loading::after { + border-top: 10px solid #f2836b; + /* 鏃嬭浆240搴� */ + transform: rotate(240deg); + } </style> </head> <body> @@ -153,14 +179,14 @@ <h1 style="text-align: center;height: 70px;line-height: 65px;color: white;font-size: 25px;width: 100%;position: relative;top: -8px" id="titles"></h1> </div> </div> - <div class="layui-row" style="position: fixed;top: 30px;right: 15px;z-index: 9999999999"> + <div class="layui-row" id="wealcome" style="position: fixed;top: 30px;right: 15px;z-index: 999999999"> <div class="layui-col-xs12 layui-col-md12" style="width: 100%"> <ul class="htxx" style="width: 100%;"> <li style="display: inline-block"><img src="HomeImg/date.png" style="position: relative;top: 0px"/></li> <li id="current-time" style="display: inline-block;font-size: 12px;margin-left: 10px;">鏃ユ湡:2024-00-00 00:00:00</li> <li style="font-size: 12px">娆㈣繋:</li> <li id="yhm" style="font-size: 12px;margin-left: 15px"></li> - <li style="margin-left: 15px;"><a href="javascript:;" onclick="joinHouTai()" style="font-size: 12px;position: relative;top: -2px">鍚庡彴</a></li> + <li style="margin-left: 15px;"><a id="Ht" href="javascript:;" onclick="joinHouTai()" style="font-size: 12px;position: relative;top: -2px">鍚庡彴</a></li> <li style="margin-left: 15px;"><a href="javascript:;" onclick="out()" title="鐐瑰嚮閫�鍑虹櫥褰曠郴缁�"><img src="HomeImg/logout.png" style="width: 20px;position: relative;top: -3px"> </a> </li> </ul> </div> @@ -230,6 +256,10 @@ </div> </div> <%-- 鍖哄煙缁熻--%> + <a href="javascript:;" id="PowerShuaXin" onclick="ChongDianPowerShuaXin()" style="width: 60px;height: 40px;text-align: center;font-size: 12px;line-height: 40px;background-color: #00bff4;display: inline-block;position:fixed;right: 7%;bottom: 40%;z-index: 99999999999999;color: white;display: none">鍒锋柊</a> + <a href="javascript:;" onclick="ChongDianPower()" style="width: 60px;height: 40px;text-align: center;font-size: 12px;line-height: 40px;background-color: #00bff4;display: inline-block;position:fixed;right: 2%;bottom: 40%;z-index: 99999999999999;color: white">鍏呯數浜哄憳</a> + <a style="width: 20%;height: 8%;text-align: center;font-size: 12px;display: inline-block;position:fixed;right: 2%;bottom: 30%;z-index: 99999999999999;color: white"><img src="/hxzkuwb/Home/HomeImg/border1.png"></a> + <div class="layui-row" id="tong2" style="width: 19.5%;height: 39%;z-index: 999999;display: none;"> <div class="layui-col-xs12 layui-col-md12"> <div style="width: 100%;"> @@ -268,6 +298,10 @@ </div> </div> </div> +<%-- <div id="cxgjs" style="width: 55%;height: 50%;z-index: 99999999999;position: fixed;top: 10%;left: 20%;background-color: white;padding: 2%;padding-bottom: 5%;border-radius: 10px">--%> +<%-- <span onclick="Cxgj()" style="cursor: pointer;display: inline-block;float: right"><img src="HomeImg/clos.png" width="25"/></span><br>--%> +<%-- <iframe src="../HouTai/ChaXunGuiJi/ChaXunGuiJi1.jsp" style="width: 100%;height: 50%;z-index: 99999999999;border: 0px;position: fixed"></iframe>--%> +<%-- </div>--%> <div class="layui-row" style="height: 100%;width: 100%;position: fixed;top: 0px;opacity: 0" id="ditu1"> <div class="layui-col-xs12 layui-col-md12"> <iframe src="Home1.jsp" style="width: 100%;height: 100%;border: none;"></iframe> @@ -305,6 +339,15 @@ <table id="fence" lay-filter="fence"></table> </div> <div class="boxfoot6"></div> + </div> + </div> +<%-- 鍏呯數淇℃伅--%> + <div class="layui-row" id="fen1" style="background-color: rgb(255, 255, 255,0)"> + <div class="layui-col-xs12 layui-col-md12"> + <div style="padding-top: 30px;padding-left: 20px;padding-right: 20px"> + <table id="PowerPerson" lay-filter="PowerPerson" style="background-color: rgb(255, 255, 255,1)" ></table> + </div> + <div></div> </div> </div> <%-- 璀﹀憡淇℃伅--%> @@ -434,8 +477,14 @@ <div class="layui-row" id="Ditu"> <div class="layui-col-xs12 layui-col-md12" style="text-align: center"> <div style="text-align: center;z-index: 99999"> - <ul style="margin: auto;text-align: center;width: 100%;padding: 5px;z-index: 999999;background-color: rgba(64,75,92,0.5)" class="MapShow"> - + <ul style="margin: auto;text-align: center;width: 100%;padding: 5px;z-index: 999999;" class="MapShow"> + <li id="topbottom" style="display: none;margin-left: 12.8%"><img src="HomeImg/tobottom.png" style="width:1%"></li> + <li style="font-size: 12px;color: #07F4F6;width: 10%;display: inline-block;text-align: right"><img src="/hxzkuwb/Icon/闅愯棌鐪嬫澘.png" alt="闅愯棌鐪嬫澘" title="闅愯棌鐪嬫澘" onClick="yckb()" + style="width: 22%;cursor:pointer;margin-right:2%"><br><span id ="yckbtext">闅愯棌鐪嬫澘</span></li> + <li style="font-size: 12px;color: #07F4F6;width: 10%;display: inline-block" id="maps"><input type="checkbox" id="sanweis" onClick="Qh1()" style="display: none;position: relative;top: +2px"/><img src="/hxzkuwb/Icon/3D鍦板浘.png" title="鍒囨崲鍦板浘" alt="鍒囨崲鍦板浘" onClick="Qh1()" style="width: 22%;cursor:pointer;"><br>涓夌淮鍦板浘</li> + <li style="font-size: 12px;color:#07F4F6;width: 10%;display: inline-block;text-align: left" ><img src="/hxzkuwb/Icon/鏌ョ湅鏇村.png" onclick="ello()" title="鏇村鎿嶄綔" style="margin- +left:1%;width: 22%;cursor:pointer;" alt="鏇村鎿嶄綔"><br><span style="margin-right: 1%">鏇村鎿嶄綔</span></li> </ul> </div> </div> @@ -443,8 +492,8 @@ <%-- 鍛婅淇℃伅澶勭悊绐楀彛--%> <div class="layui-row" id="wind" style="display: none"> <div class="layui-col-xs12 layui-col-md12" style=""> - <img src="HomeImg/zuosj.png" style="width: 25px;position: relative;left: -19px;top: 115px"> - <div style="width: 320px;height: 300px;background-color: white" id="XiangXi"> + <img src="HomeImg/zuosj.png" style="width: 25px;position: relative;left: -19px;top: 140px"> + <div style="width: 200%;color: black;overflow-y: hidden;background-color: white;border: 3px solid #7CCEFF;" id="XiangXi"> </div> </div> </div> @@ -497,10 +546,10 @@ </div> <%-- 浜哄憳璇︾粏鏁版嵁--%> - <div class="layui-row" id="personMsg" style="z-index: 9999999"> - <div class="layui-col-xs12 layui-col-md12" style=""> - <div style="width: 55%;height: 70%;background-color: #F2F2F2;padding: 15px"> - <div> + <div class="layui-row" id="personMsg" style="z-index: 9999999;"> + <div class="layui-col-xs4 layui-col-md4" style=""> + <div id="boxses" class="boxallsMSG" style="color: black;width: 80%;height: 70%;padding: 15px;margin-left: 110%"> + <div style=""> <a href="javascript:;" onclick="ShuaXinShuJu()"><span style="width: 100px;display: inline-block;background-color: #0357D1;text-align: center;color: white;height: 25px;line-height: 25px;">鍒锋柊鏁版嵁</span><span id="personDate" style="color: black;margin-left: 30px"></span></a> <a href="javascript:;" onclick="GuanMsg()"><span style="width: 60px;display: inline-block;background-color: #0357D1;text-align: center;color: white;height: 25px;line-height: 25px;float: right">鍏抽棴</span></a> </div> @@ -545,9 +594,10 @@ <div style="margin-top: 30px;float: left;position: relative;top: -110px;width: 100%;"> <span>鏂囧瓧锛�</span> <span><input type="text" id="context1" style="width: 70%;height: 25px;border: 1px solid #BFE4F2"></span> - <a href="javascript:;" onclick="sendMsg()"><span style="border: 1px solid #BFE4F2;height: 23px;line-height: 23px;width: 40px;background-color:#BFE4F2;display: inline-block;text-align: center;position: relative;left: -5px;top: -1px">鍙戦��</span></a> + <a href="javascript:;" onclick="sendMsg()"><span style="border: 1px solid #BFE4F2;height: 23px;line-height: 24px;width: 40px;background-color:#BFE4F2;display: inline-block;text-align: center;position: relative;left: -5px;top: 0px">鍙戦��</span></a> </div> </div> + <div class="boxfootMSG" style="width: 100%"></div> </div> </div> <%-- 鍛婅璇︾粏澶勭悊--%> @@ -557,9 +607,9 @@ <li style="margin: 15px 0px">搴忓彿锛�<input type="text" id="warningid" name="ids" readonly style="background-color: whitesmoke;width: 200px;border: none;padding: 5px"></li> <span style="display:none" id="warningidtype"></span> <li style="margin: 15px 0px">蹇�熷鐞嗭細 - <input type="radio" name="baoliu5" value="鏃犻渶澶勭悊" title="鏃犻渶澶勭悊" checked>鏃犻渶澶勭悊 - <input type="radio" name="baoliu5" value="璇姤" title="璇姤">璇姤 - <input type="radio" name="baoliu5" value="宸茶仈绯�" title="宸茶仈绯�">宸茶仈绯� + <input type="radio" name="baoliu5" onclick="gjxzt('鏃犻渶澶勭悊')" value="鏃犻渶澶勭悊" title="鏃犻渶澶勭悊" checked>鏃犻渶澶勭悊 + <input type="radio" name="baoliu5" onclick="gjxzt('璇姤')" value="璇姤" title="璇姤">璇姤 + <input type="radio" name="baoliu5" onclick="gjxzt('宸茶仈绯�')" value="宸茶仈绯�" title="宸茶仈绯�">宸茶仈绯� </li> <li style="margin: 15px 0px">璇︾粏澶勭悊璁板綍锛�</li> <li style="margin: 15px 0px"> @@ -604,23 +654,48 @@ </div> </div> </div> +<%--鏇村--%> +<div style="width: 100%"> +<div id="ello" style="display: none;z-index: 999999999;width: 14%;height: 10%;position: fixed;bottom: 11.6%;right: 36%;background-color: rgba(50,101,159,0.6);border-radius: 5px"> + <ul style="padding-top: 5%;"> + <li style="color: white;display: inline-block;width: 45%;text-align: center"><span>鏄剧ず鍩虹珯</span> <input onclick="showJiZhan()" style="" id="showJiZhan" type="checkbox"/></li> + <li style="color: white;display: inline-block;width: 45%;text-align: center"><span>鏄剧ず缃戝叧</span> <input onclick="showWangGuan()" style="" id="ShowWangGuan" type="checkbox"/></li> + <li style="color: white;display: inline-block;width: 45%;text-align: center"><span>鏄剧ず绂荤嚎</span> <input onclick="showLiXian()" style="" id="ShowLiXianes" type="checkbox"/></li> + <li style="color: white;display: inline-block;width: 45%;text-align: center"><span>鍖哄煙妗嗛��</span> <input onclick="QuYuKuangXuan()" style="" id="QuYuKuangXuan" type="checkbox"/></li> + <li style="color: white;display: inline-block;width: 45%;text-align: center"><span>鑱氶泦鏄剧ず</span> <input onclick="JuJiXianShi()" style="" id="JuJiXianShi" type="checkbox"/></li> +<%-- <li style="width: 40%;border: 1px solid red;color: white;height: 15%;line-height: 15%"><span>鏄剧ず鍩虹珯</span><input onclick="showJiZhan()" style="margin-left: 10%;margin-top: 5%" id="showJiZhan" type="checkbox"/></li>--%> +<%-- <li style="width: 40%;color: white;height: 15%;line-height: 15%"><span>鏄剧ず缃戝叧</span><input onclick="showWangGuan()" style="margin-left: 10%;margin-top: 5%" id="ShowWangGuan" type="checkbox"/></li>--%> +<%-- <li style="color: white;height: 15%;line-height: 15%"><span>鏄剧ず绂荤嚎</span><input onclick="showLiXian()" style="margin-left: 10%;margin-top: 5%" id="ShowLiXianes" type="checkbox"/></li>--%> +<%-- <li style="color: white;height: 15%;line-height: 15%"><span>鍖哄煙妗嗛��</span><input onclick="QuYuKuangXuan()" style="margin-left: 10%;margin-top: 5%" id="QuYuKuangXuan" type="checkbox"/></li>--%> +<%-- <li style="color: white;height: 15%;line-height: 15%"><span>鑱氶泦鏄剧ず</span><input onclick="JuJiXianShi()" style="margin-left: 10%;margin-top: 8%" id="JuJiXianShi" type="checkbox"/></li>--%> + </ul> +</div> +</div> <span class="JingWeiDu" style="position: fixed;bottom: 0px;display: inline-block;height: 20px;z-index: 9999;right: 0px"> - </span> <div class="heimu" style="display: none;width: 100%;height: 100%;position: fixed;top: 0px;left: 0px;z-index: 9999;background-color: black;opacity: 0.8"></div> <span class="heimu1" style="display: none;z-index: 99999999;position: fixed;top: 0px;width: 100%;text-align: center;margin-top: 20%"> <span style="display: inline-block;width: 200px;height: 40px;line-height: 40px;background-color: rgba(0,0,0,0.6);color: white"> 姝e湪鍔犺浇涓�.....</span> </span> -<div style="height: 100%;width: 20%;position: fixed;top: 0px;left: 0px;z-index: 9;" id="border2s"></div> -<div style="height: 100%;width: 20%;position: fixed;top: 0px;right: 0px;z-index: 9;" id="border3s"></div> +<div style="height: 100%;width: 24%;position: fixed;top: 0px;left: 0px;z-index: 9;" id="border2s"></div> +<div style="height: 100%;width: 24%;position: fixed;top: 0px;right: 0px;z-index: 9;" id="border3s"></div> +<%--涓夌淮寤虹瓚鍐呬汉鍛樻暟閲忎俊鎭�--%> +<div id="JianZhuMsg" style="background: url(../Home/HomeImg/FloorBg1.png) no-repeat; background-size: 100% 200%;position: fixed;top: -2%;right: -25%;width: 25%;height: 105%;z-index: 999999999999"> +<div id="Kuanges"> + +</div> +</div> <%--<div style="height: 5%;width: 100%;position: fixed;bottom: 0px;left: 0px;z-index: 9;background: linear-gradient(to top, rgba(0, 0, 0, 1) 1%, rgba(0, 0, 0, 0));"></div>--%> -</body> +</body>路 <script type="text/html" id="titleTpl"> {{# if(d.anchormode === '0' || d.anchormode === '-1' ) { }} <span class="" style="color: white;display: inline-block;width: 35px;height: 20px;line-height: 20px;text-align:center;background-color: #666666;border-radius: 5px;font-size: 12px;position: relative;left: -3px">绂荤嚎</span> {{# } else if(d.anchormode === '1') { }} <span class="" style="color: white;display: inline-block;width: 35px;height: 20px;line-height: 20px;text-align:center;background-color: limegreen;border-radius: 5px;font-size: 12px;position: relative;left: -3px">鍦ㄧ嚎</span> {{# } }} +</script> +<script type="text/html" id="titleTplPower"> + <span>{{d.power}}%</span> </script> <script type="text/html" id="titleTpl1"> {{# if(d.ponline === '0' || d.ponline === '-1' ) { }} @@ -663,6 +738,7 @@ <script src="HomeJs/Time.js"></script> <script src="../Home/HomeJs/TuBiao.js"></script> <script src="HomeJs/checkdJs.js"></script> + <script> var login = sessionStorage.getItem('username') $("#warningusername").val(login) @@ -700,6 +776,7 @@ //浜岀淮鍦板浘榛樿涓哄惁 localStorage.setItem("浜岀淮鍦板浘","涓嶆墽琛�") //浠庨儴闂ㄦ煡璇㈠浘鏍囪儗鏅鑹诧細骞舵樉绀哄埌 涓夌淮/浜岀淮/鐧惧害 + var mapess; function findBuMenColor(dename){ var data = "departmentname="+dename var color = ""; @@ -733,20 +810,20 @@ map.on('loaded', function () { }); } - // - // loadJScript(); - // function loadJScript() { - // var script = document.createElement('script'); - // script.type = 'text/javascript'; - // script.src = '../Home/HomeJs/bmap_offline_api_v3.0_min.js' - // document.body.appendChild(script); - // } - // GL鐗堝懡鍚嶇┖闂翠负BMap + //loadJScript(); + function loadJScript() { + var script = document.createElement('script'); + script.type = 'text/javascript'; + script.src = '//api.map.baidu.com/api?type=webgl&v=1.0&ak=zoVtgLNWuaZBjMAa32RZRFIagXxST0fm&callback=init'; + document.body.appendChild(script); + } + // GL鐗堝懡鍚嶇┖闂翠负BMapGL //鐧惧害 function Qh(){ + mapess++; $(".qhWeiLan").css("display","inline-block"); $("#ditu2").css("opacity","1") $("#ditu2").css("z-index","7") @@ -754,23 +831,23 @@ $("#ChaXuns").show(); $(".ctrls").show(); $(".MapType").show(); - $(".qhPingMian").hide(); - localStorage.setItem("鐧惧害鍦板浘","鎵ц") localStorage.setItem("涓夌淮鍦板浘","涓嶆墽琛�") var sanweis = document.getElementById("sanweis") - var erweis = document.getElementById("erweis") var baidus = document.getElementById("baidus") sanweis.checked = false; baidus.checked = true; layer.msg('鎿嶄綔鎴愬姛') } //涓夌淮 + Qh1() function Qh1(){ + mapess++; + $("#maps").empty(); + $("#maps").append('<li class="MapType" onclick="inits()" style="cursor: pointer;font-size: 12px;width: 100px;display: inline-block;color: '+data[0].color+'"><a href="javascript:;" style="font-size: 12px;cursor:pointer;color: '+data[0].color+'" title=""><img src="/hxzkuwb/Icon/GIS鍦板浘.png" style="width: 40%"><br><span style="color: #07F4F6">鐧惧害鍦板浘</span></a></li>') $(".qhWeiLan").css("display","none"); $("#ditu2").hide(); $("#ChaXuns").hide(); - $(".qhPingMian").hide(); $("#ditu1").css("opacity","1"); $("#ditu1").css("z-index","6") $("#ditu3").css("opacity","0") @@ -778,10 +855,6 @@ localStorage.setItem("涓夌淮鍦板浘","鎵ц") localStorage.setItem("鐧惧害鍦板浘","涓嶆墽琛�") var sanweis = document.getElementById("sanweis") - var erweis = document.getElementById("erweis") - var baidus = document.getElementById("baidus") - sanweis.checked = true; - baidus.checked = false; layer.msg('鎿嶄綔鎴愬姛') $(".MapType").hide(); $("#weilanxs").hide(); @@ -789,6 +862,7 @@ var qhWeiLanNum = 0; var qhOnline = 0 + var qhJiZhan = 0; </script> <script> @@ -800,7 +874,7 @@ url: "/hxzkuwb/baidufence.do", dataType: "json", success: function (data) { - fences = data.fences; + fences.push(data.fences); }, }); return fences; @@ -994,20 +1068,25 @@ } }; - var maptypesnum = 0; + if (localStorage.getItem("maptypesnum") == null || localStorage.getItem("maptypesnum") == ""){ + localStorage.setItem("maptypesnum",0) + }else{ + localStorage.setItem("maptypesnum",localStorage.getItem("maptypesnum")) + } + var onLine = 0; var onFence = 0; - init() - function init() { - maptypesnum=maptypesnum+1; - var mapts = $(".MapType").text(); - if( maptypesnum%2==0){ - $(".MapType").text("鍦板浘"); + var onJiZhan = 0; + function inits(){ + localStorage.setItem("maptypesnum",parseInt(localStorage.getItem("maptypesnum"))+parseInt(1)); + if(localStorage.getItem("maptypesnum")%2==0){ localStorage.setItem("mapType","鍦扮悆妯″紡") }else{ localStorage.setItem("mapType","璺綉妯″紡") - $(".MapType").text("鍦扮悆"); } + location.reload(); + } + function init() { var shijiao; var zhongxindian; var gao; @@ -1036,21 +1115,9 @@ var bm_viewTagid = 1;//鏄惁鏄剧ず鏍囩ID var bm_offView = 1;//鏄惁绂荤嚎涓嶆樉绀哄浘鏍� // 鐧惧害鍦板浘API鍔熻兘//榛樿鍗槦鍦板浘 {mapType:BMAP_SATELLITE_MAP} - var outputPath = 'tiles/'; //鍦板浘鐡︾墖鎵�鍦ㄧ殑鏂囦欢澶� - var fromat = ".jpg"; //鏍煎紡 - /*var tileLayer = new BMap.TileLayer(); - tileLayer.getTilesUrl = function (tileCoord, zoom) { - var x = tileCoord.x; - var y = tileCoord.y; - var url = outputPath + zoom + '/' + x + '/' + y + fromat; - return url; - } - var tileMapType = new BMap.MapType('tileMapType', tileLayer);*/ - - - var bm = new BMap.Map("container"); // 鍒涘缓Map瀹炰緥 + var bm = new BMapGL.Map("container"); // 鍒涘缓Map瀹炰緥 var zhong =zhongxindian.split(';') ; - bm.centerAndZoom(new BMap.Point(zhong[0],zhong[1]), level); // 鍒濆鍖栧湴鍥�,璁剧疆涓績鐐瑰潗鏍囧拰鍦板浘绾у埆 + bm.centerAndZoom(new BMapGL.Point(zhong[0],zhong[1]), level); // 鍒濆鍖栧湴鍥�,璁剧疆涓績鐐瑰潗鏍囧拰鍦板浘绾у埆 bm.enableScrollWheelZoom(true); //寮�鍚紶鏍囨粴杞缉鏀� console.log() if(localStorage.getItem("mapType") == "鍦扮悆妯″紡"){ @@ -1059,8 +1126,23 @@ } //娣诲姞鍦板浘绫诲瀷鎺т欢 + bm.setHeading(shijiao); //璁剧疆鍦板浘鏃嬭浆瑙掑害 + bm.setTilt(gao); - var tileLayer = new BMap.TileLayer(); + + + var zuobiaoxi = ""; + //浠庢暟鎹簱鏌ヨ褰撳墠閫夋嫨鐨勪粈涔堢郴鍧愭爣 + $.ajax({ + url: "/hxzkuwb/findbaidumapList", + type: "GET", + async: false, + success: function(data) { + zuobiaoxi = data[0].zhuanhuan + } + }); + + var tileLayer = new BMapGL.TileLayer(); tileLayer.getTilesUrl = function(tileCoord, zoom) { var name = nameFormat .replace("{x}", tileCoord.x) @@ -1071,15 +1153,21 @@ } bm.addTileLayer(tileLayer); - - - var offset = new BMap.Size(525, 20); // 姘村钩鍜屽瀭鐩村亸绉婚噺 + var navi3DCtrl = new BMapGL.NavigationControl3D({ + anchor: BMAP_ANCHOR_BOTTOM_RIGHT, // 灏嗘帶浠堕敋鐐硅缃负鍦板浘搴曢儴 + offset: new BMapGL.Size(0, 0) // 璁剧疆鎺т欢鐩稿浜庨敋鐐圭殑鍋忕Щ閲忥紝杩欓噷灏嗗亸绉婚噺璁句负(0, 0) + }); + bm.addControl(navi3DCtrl); + var offset = new BMapGL.Size(525, 20); // 姘村钩鍜屽瀭鐩村亸绉婚噺 + navi3DCtrl.setOffset(offset); bm.addEventListener('click', function (e) { $(".JingWeiDu").text('褰撳墠浣嶇疆缁忕含搴︼細' + e.latlng.lng + ',' + e.latlng.lat) }); - var myIcon = new BMap.Icon("../Home/HomeImg/default.png", new BMap.Size(40, 40), { - anchor: new BMap.Size(20, 40) + + + var myIcon = new BMapGL.Icon("../Home/HomeImg/default.png", new BMapGL.Size(40, 40), { + anchor: new BMapGL.Size(20, 40) } ); var timer2; @@ -1107,12 +1195,18 @@ if (data == "") { layer.msg("璇ヤ汉鍛樹笉瀛樺湪锛�") } else { + if (zuobiaoxi == "鐧惧害"){ + var c = new Convertor(); + var rr1 = c.WGS2BD09({ + lng: parseFloat(data.baoliu2), + lat: parseFloat(data.baoliu3) + }); + }else{ + var rr1 = ({lng: parseFloat(data.baoliu2), lat: parseFloat(data.baoliu3)}); + } var c = new Convertor(); - var rr1 = c.WGS2BD09({ - lng: parseFloat(data.baoliu2), - lat: parseFloat(data.baoliu3) - }); - var targetPoint = new BMap.Point(rr1.lng, rr1.lat); + + var targetPoint = new BMapGL.Point(rr1.lng, rr1.lat); bm.panTo(targetPoint); bm.removeOverlay(markers[pTagid]); delete markers[pTagid] @@ -1128,19 +1222,24 @@ lng: parseFloat(gpsInfo.baoliu2), lat: parseFloat(gpsInfo.baoliu3) }); - var lng = parseFloat(rr.lng); - var lat = parseFloat(rr.lat); + if (zuobiaoxi == "鐧惧害"){ + var lng = parseFloat(rr.lng); + var lat = parseFloat(rr.lat); + }else{ + var lng = parseFloat(gpsInfo.baoliu2); + var lat = parseFloat(gpsInfo.baoliu3); + } var userId = gpsInfo.ptagid; // 鍒ゆ柇鍦ㄧ嚎鐘舵�� if (gpsInfo.ponline == "1" || gpsInfo.ponline == "0") { // 濡傛灉鏍囪宸插瓨鍦紝鍒欐洿鏂板潗鏍� if (markers[userId]) { - markers[userId].setPosition(new BMap.Point(lng, lat)); - markers1[userId].setPoint(new BMap.Point(lng, lat)); + markers[userId].setPosition(new BMapGL.Point(lng, lat)); + markers1[userId].setPoint(new BMapGL.Point(lng, lat)); } else { - const customOverlay = new BMap.CustomOverlay(createDOM, { - point: new BMap.Point(lng, lat), + const customOverlay = new BMapGL.CustomOverlay(createDOM, { + point: new BMapGL.Point(lng, lat), opacity: 0.7, map: bm, offsetY: 26, @@ -1149,17 +1248,17 @@ bm.addOverlay(customOverlay); markers1[userId] = customOverlay; // 鍒涘缓鍧愭爣鐐� - var point = new BMap.Point(lng, lat); + var point = new BMapGL.Point(lng, lat); // 鍒涘缓鏍囪 - var myIcon = new BMap.Icon("../Icon/" + gpsInfo.pimage, new BMap.Size(40, 40), { - anchor: new BMap.Size(20, 40), + var myIcon = new BMapGL.Icon("../Icon/" + gpsInfo.pimage, new BMapGL.Size(40, 40), { + anchor: new BMapGL.Size(20, 40), zIndex:10 }); - var marker = new BMap.Marker(point, {icon: myIcon}); + var marker = new BMapGL.Marker(point, {icon: myIcon}); // 灏嗘爣璁版坊鍔犲埌鍦板浘涓� bm.addOverlay(marker); - var label = new BMap.Label(gpsInfo.pname + " " + userId, {offset: new BMap.Size(0, -70)}); + var label = new BMapGL.Label(gpsInfo.pname + " " + userId, {offset: new BMapGL.Size(0, -70)}); label.setStyle({ color: "#fff", fontSize: "14px", @@ -1269,7 +1368,7 @@ var gpslist = getGPS(); for (const key in gpslist) { if (gpslist[key][0] == sousuoid) { - bm.panTo(new BMap.Point(gpslist[key][1], gpslist[key][2])); + bm.panTo(new BMapGL.Point(gpslist[key][1], gpslist[key][2])); } } } @@ -1277,12 +1376,9 @@ }) }) - $("#sousuo2sx").click(function (){ window.location.reload(); }) - - quxiao = quxiao2; // 澧炲姞鐭╁舰鍥惧眰 @@ -1295,7 +1391,7 @@ var points = []; for(var i = 0 ; i < fences.length;i++){ for (var j = i ; j< fences[i].length;j++){ - var point = new BMap.Point(fences[i][j][0], fences[i][j][1]); + var point = new BMapGL.Point(fences[i][j][0], fences[i][j][1]); points.push(point); } @@ -1303,21 +1399,105 @@ var tt = 0; var tt2 = true; var tt3 = 0; + + + //鑾峰彇鍩虹珯鏁版嵁銆� + var jizhanes = FindShowJiZhan(); + var wangguanes = FindShowWangGuan(); + //鑾峰彇缃戝叧鏁版嵁 //var t = 300; 姣�600ms浠庡悗鍙拌姹備竴娆℃渶鏂扮殑鏁版嵁 var markers = {}; var markers1 = {}; var timer = setInterval(function() { + + if (localStorage.getItem("鐧惧害鍦板浘") == "涓嶆墽琛�"){ - console.log("鐧惧害鍦板浘涓嶆墽琛�") return } markers = {}; bm.clearOverlays(); if(onFence == 0){ - var polygon = new BMap.Polygon(points, { strokeColor: "red", strokeOpacity: 0.5, fillColor: "red", fillOpacity: 0.3 }); + //鏄剧ず鍥存爮 + var polygon = new BMapGL.Polygon(points, { strokeColor: "red", strokeOpacity: 0.5, fillColor: "red", fillOpacity: 0.3 }); bm.addOverlay(polygon); } - // bm.addOverlay(polygon); + if (localStorage.getItem("jizhanshow") == "1"){ + //鏄剧ず鍩虹珯 + if (zuobiaoxi == "鐧惧害"){ + for (var i = 0 ; i <jizhanes.length; i ++){ + var c = new Convertor(); + var rr = c.WGS2BD09({ lng: parseFloat(jizhanes[i].baoliu6), lat: parseFloat(jizhanes[i].baoliu7)}); + var point = new BMapGL.Point(rr.lng,rr.lat); + // 鍒涘缓鏍囪 + var myIcon = new BMapGL.Icon("../Icon/jizhan.png", new BMapGL.Size(40, 40), { + anchor: new BMapGL.Size(20, 40) + }); + var jizhan = new BMapGL.Marker(point, { icon: myIcon }); + var label = new BMapGL.Label(jizhanes[i].anchorid, {offset: new BMapGL.Size(0, -70)}); + label.setStyle({ + color: "black", + fontSize: "14px", + borderRadius: "5px", + padding: "5px 5px", + border: "0", + transform: 'translateX(-50%)', + }); + jizhan.setLabel(label); + bm.addOverlay(jizhan); + console.log("娣诲姞鎴愬姛") + } + }else{ + for (var i = 0 ; i <jizhanes.length; i ++){ + var point = new BMapGL.Point(jizhanes[i].baoliu6,jizhanes[i].baoliu7); + // 鍒涘缓鏍囪 + var myIcon = new BMapGL.Icon("../Icon/jizhan.png", new BMapGL.Size(40, 40), { + anchor: new BMapGL.Size(20, 40) + }); + var jizhan = new BMapGL.Marker(point, { icon: myIcon }); + bm.addOverlay(jizhan); + + } + } + + } + if (localStorage.getItem("wangguanshow") == "1"){ + if (zuobiaoxi == "鐧惧害"){ + for (var i = 0 ; i <wangguanes.length; i ++){ + //鏄剧ず缃戝叧 + var c = new Convertor(); + var rr = c.WGS2BD09({ lng: parseFloat(wangguanes[i].lon), lat: parseFloat(wangguanes[i].lat)}); + var point = new BMapGL.Point(rr.lng,rr.lat); + // 鍒涘缓鏍囪 + var myIcon = new BMapGL.Icon("../Icon/wangguan.png", new BMapGL.Size(40, 40), { + anchor: new BMapGL.Size(20, 40) + }); + var wangguan = new BMapGL.Marker(point, { icon: myIcon }); + var label = new BMapGL.Label(wangguanes[i].loragwid, {offset: new BMapGL.Size(0, -70)}); + label.setStyle({ + color: "black", + fontSize: "14px", + borderRadius: "5px", + padding: "5px 5px", + border: "0", + transform: 'translateX(-50%)', + }); + wangguan.setLabel(label); + bm.addOverlay(wangguan); + console.log("娣诲姞缃戝叧鎴愬姛") + } + }else{ + for (var i = 0 ; i <wangguanes.length; i ++){ + //鏄剧ず缃戝叧 + var point = new BMapGL.Point(wangguanes[i].lon,wangguanes[i].lat); + // 鍒涘缓鏍囪 + var myIcon = new BMapGL.Icon("../Icon/wangguan.png", new BMapGL.Size(40, 40), { + anchor: new BMapGL.Size(20, 40) + }); + var wangguan = new BMapGL.Marker(point, { icon: myIcon }); + bm.addOverlay(wangguan); + } + } + } if(onLine == 0){ //鍙樉绀哄湪绾� var gps_node_list1 = getGPS(); @@ -1325,22 +1505,24 @@ var gpsInfo = gps_node_list1[i]; var c = new Convertor(); if(gpsInfo.baoliu2!= "-1" && gpsInfo.baoliu2 !=""){ - // var rr = c.WGS2BD09({ lng: parseFloat(105.883329), lat: parseFloat(37.228208)}); - // var lng = parseFloat(gpsInfo.baoliu2); - // var lat = parseFloat(gpsInfo.baoliu3); - var rr = c.WGS2BD09({ lng: parseFloat(121.455326), lat: parseFloat(30.79417)}); - console.log(rr) - var lng = parseFloat(rr.lng); - var lat = parseFloat(rr.lat); + var rr = c.WGS2BD09({ lng: parseFloat(gpsInfo.baoliu2), lat: parseFloat(gpsInfo.baoliu3)}); + if (zuobiaoxi == "鐧惧害"){ + var lng = parseFloat(rr.lng); + var lat = parseFloat(rr.lat); + }else{ + var lng = parseFloat(gpsInfo.baoliu2); + var lat = parseFloat(gpsInfo.baoliu3); + } var userId = gpsInfo.ptagid; // 鍒ゆ柇鍦ㄧ嚎鐘舵�� + localStorage.setItem("username","瓒呯骇绠$悊鍛�") if(gpsInfo.psos == "1") { if (markers1.hasOwnProperty(userId)) { // 濡傛灉宸茬粡瀛樺湪璇ユ爣璁帮紝鍒欑Щ闄ゅ師鏉ョ殑鏍囪 bm.removeOverlay(markers1[userId]); // 鏇存柊鏍囪浣嶇疆 - const customOverlay = new BMap.CustomOverlay(createDOM, { - point: new BMap.Point(lng, lat), + const customOverlay = new BMapGL.CustomOverlay(createDOM, { + point: new BMapGL.Point(lng, lat), opacity: 1, bm: bm, offsetY: 26, @@ -1350,8 +1532,8 @@ markers1[userId] = customOverlay; } else { // 濡傛灉涓嶅瓨鍦ㄨ鏍囪锛屽垯娣诲姞鏂版爣璁� - const customOverlay = new BMap.CustomOverlay(createDOM, { - point: new BMap.Point(lng, lat), + const customOverlay = new BMapGL.CustomOverlay(createDOM, { + point: new BMapGL.Point(lng, lat), opacity: 1, bm: bm, offsetY: 26, @@ -1367,15 +1549,16 @@ } } // 鍒涘缓鍧愭爣鐐� - var point = new BMap.Point(lng, lat); + var point = new BMapGL.Point(lng, lat); // 鍒涘缓鏍囪 - var myIcon = new BMap.Icon("../Icon/"+gpsInfo.pimage, new BMap.Size(40, 40), { - anchor: new BMap.Size(20, 40) + var myIcon = new BMapGL.Icon("../Icon/"+gpsInfo.pimage, new BMapGL.Size(40, 40), { + anchor: new BMapGL.Size(20, 40) }); - var marker = new BMap.Marker(point, { icon: myIcon }); + var marker = new BMapGL.Marker(point, { icon: myIcon }); + // 灏嗘爣璁版坊鍔犲埌鍦板浘涓� bm.addOverlay(marker); - var label = new BMap.Label(gpsInfo.pname+" "+userId, {offset: new BMap.Size(0, -70)}); + var label = new BMapGL.Label(gpsInfo.pname+" "+userId, {offset: new BMapGL.Size(0, -70)}); label.setStyle({ color: "#fff", fontSize: "14px", @@ -1443,8 +1626,8 @@ // 濡傛灉宸茬粡瀛樺湪璇ユ爣璁帮紝鍒欑Щ闄ゅ師鏉ョ殑鏍囪 bm.removeOverlay(markers1[userId]); // 鏇存柊鏍囪浣嶇疆 - const customOverlay = new BMap.CustomOverlay(createDOM, { - point: new BMap.Point(lng, lat), + const customOverlay = new BMapGL.CustomOverlay(createDOM, { + point: new BMapGL.Point(lng, lat), opacity: 1, bm: bm, offsetY: 26, @@ -1454,8 +1637,8 @@ markers1[userId] = customOverlay; } else { // 濡傛灉涓嶅瓨鍦ㄨ鏍囪锛屽垯娣诲姞鏂版爣璁� - const customOverlay = new BMap.CustomOverlay(createDOM, { - point: new BMap.Point(lng, lat), + const customOverlay = new BMapGL.CustomOverlay(createDOM, { + point: new BMapGL.Point(lng, lat), opacity: 1, bm: bm, offsetY: 26, @@ -1472,15 +1655,15 @@ } } // 鍒涘缓鍧愭爣鐐� - var point = new BMap.Point(lng, lat); + var point = new BMapGL.Point(lng, lat); // 鍒涘缓鏍囪 - var myIcon = new BMap.Icon("../Icon/"+gpsInfo.pimage, new BMap.Size(40, 40), { - anchor: new BMap.Size(20, 40) + var myIcon = new BMapGL.Icon("../Icon/"+gpsInfo.pimage, new BMapGL.Size(40, 40), { + anchor: new BMapGL.Size(20, 40) }); - var marker = new BMap.Marker(point, { icon: myIcon }); + var marker = new BMapGL.Marker(point, { icon: myIcon }); // 灏嗘爣璁版坊鍔犲埌鍦板浘涓� bm.addOverlay(marker); - var label = new BMap.Label(gpsInfo.pname+" "+userId, {offset: new BMap.Size(0, -70)}); + var label = new BMapGL.Label(gpsInfo.pname+" "+userId, {offset: new BMapGL.Size(0, -70)}); if (gpsInfo.ponline == "0"){ label.setStyle({ @@ -1547,7 +1730,7 @@ } } } - }, 2000); // 涓烘瘡涓�涓猧con 娣诲姞鐐瑰嚮浜嬩欢 + }, 3000); // 涓烘瘡涓�涓猧con 娣诲姞鐐瑰嚮浜嬩欢 // bm.addEventListener("dragstart", function() { // clearInterval(timer); // 鎷栧姩寮�濮嬫椂鍋滄瀹氭椂鍣� @@ -1572,11 +1755,8 @@ onFence = 0 $("#weilanxs").text("闅愯棌鍥存爮") - }else{ $("#weilanxs").text("鏄剧ず鍥存爮") - - onFence = 1 } layer.msg('鎿嶄綔鎴愬姛') @@ -1596,7 +1776,9 @@ onLine = "1" localStorage.setItem("oNLine","Yes") } + layer.msg('鎿嶄綔鎴愬姛') } + function getdateTime() { var date = new Date(); @@ -1685,6 +1867,7 @@ lonlat.lat = y; return lonlat; }; + </script> <%--<script>--%> <%-- var result;--%> @@ -2081,7 +2264,6 @@ <%-- //鐭╁舰涓嬭竟绾�--%> <%-- cxt.lineTo(radius, height);--%> - <%-- //宸︿笅瑙掑渾寮э紝寮у害浠�1/2PI鍒癙I--%> <%-- cxt.arc(radius, height - radius, radius, Math.PI / 2, Math.PI);--%> @@ -2107,5 +2289,175 @@ <!-- > END PAGE FUNCTION SCRIPTS --> <!-- > END PAGE FUNCTION SCRIPTS --> +<script> + function FindShowJiZhan() { + var realposition = []; + $.ajax({ + async: false, + type: 'Get', + url: "/hxzkuwb/FindSanWeiJiZhan", + dataType: 'json', + success: function (data) { + realposition = data; + }, + }); + return realposition + }; + function FindShowWangGuan() { + var realposition = []; + $.ajax({ + async: false, + type: 'Get', + url: "/hxzkuwb/FindGateWayList", + dataType: 'json', + success: function (data) { + realposition = data; + }, + }); + return realposition + }; + + + //鏄剧ず鏇村 + function ello(){ + var td = $("#ello").css("display"); + if(td == "block"){ + $("#ello").fadeOut(600) + $("#topbottom").fadeOut(600) + }else{ + $("#ello").fadeIn(600) + $("#topbottom").fadeIn(600) + } + + } + + var showData = "username="+localStorage.getItem("username") + $.get("/hxzkuwb/findScreenRole",showData,function (data){ + if (data.jizhanshow == "1"){ + document.getElementById("showJiZhan").checked = true; + } + if (data.wangguanshow == "1"){ + document.getElementById("ShowWangGuan").checked = true; + } + if (sessionStorage.getItem("PerCircles") == "Yes"){ + document.getElementById("JuJiXianShi").checked = true + }else{ + document.getElementById("JuJiXianShi").checked = false + } + }) + + + function showWangGuan(){ + var flag = document.getElementById("ShowWangGuan") + var wangguanshow; + if (flag.checked) { + //璁剧疆缃戝叧鏄剧ず + wangguanshow = "1"; + localStorage.setItem("wangguanshow","1") + } else { + //璁剧疆缃戝叧闅愯棌 + wangguanshow = "0"; + localStorage.setItem("wangguanshow","0") + } + var data = "wangguanshow="+wangguanshow; + $.get("/hxzkuwb/upScreenSheZhi",data,function (data){ + + }) + } + function showJiZhan(){ + var flag = document.getElementById("showJiZhan") + var jizhanshow; + if (flag.checked) { + //璁剧疆鍩虹珯鏄剧ず + jizhanshow = "1"; + localStorage.setItem("jizhanshow","1") + } else { + //璁剧疆鍩虹珯闅愯棌 + jizhanshow = "0"; + localStorage.setItem("jizhanshow","0") + } + var data = "jizhanshow="+jizhanshow; + $.get("/hxzkuwb/upScreenSheZhi",data,function (data){ + + }) + } + function QuYuKuangXuan(){ + var flag = document.getElementById("QuYuKuangXuan") + if (flag.checked) { + //寮�鍚尯鍩熸閫� + sessionStorage.setItem("QuYuKuangXuan","1") + sessionStorage.setItem("kqhuizhi",true) + } else { + //鍏抽棴鍖哄煙妗嗛�� + sessionStorage.setItem("QuYuKuangXuan","0") + sessionStorage.setItem("kqhuizhi","false1") + } + } + function JuJiXianShi(){ + var flag = document.getElementById("JuJiXianShi") + if (flag.checked) { + //寮�鍚仛闆嗘樉绀� + sessionStorage.setItem("PerCircles","Yes") + } else { + //鍏抽棴鑱氶泦鏄剧ず + sessionStorage.setItem("PerCircles","No") + + } + } + + function showLiXian(){ + var flag = document.getElementById("ShowLiXianes") + if (flag.checked) { + //寮�鍚绾挎樉绀� + sessionStorage.setItem("oNLine","Yes") + onLine = 1; + } else { + //鍏抽棴绂荤嚎鏄剧ず + sessionStorage.setItem("oNLine","No") + onLine = 0; + + } + } + sessionStorage.setItem("oNLine","No") + + + + + + // $.get("/hxzkuwb/findMapShow",function (data){ + // // $(".MapShow").append('<li id="topbottom" style="display: none;"><img src="HomeImg/tobottom.png" style="width:3%"></li>') + // $(".MapShow").append('<li style="width: 40%;display: inline-block"><a href="javascript:;" onClick="yckb()" style="display: inline-block;font-size: 12px;color: '+data[0].coolr+'" id="ykcbs"><img src="/hxzkuwb/Icon/闅愯棌鐪嬫澘.png" alt="闅愯棌鐪嬫澘" title="闅愯棌鐪嬫澘" style="width: 20%"></a><span style="color: #07F4F6">闅愯棌鐪嬫澘</span></li>') + // if(data[0].ishow == "鏄剧ず"){ + // $(".MapShow").append('<li style="width: 40%;display: inline-block" id="maps"><input type="checkbox" id="sanweis" onClick="Qh1()" style="display: none;position: relative;top: 2px"/><a href="javascript:;" class="ts1" style="font-size: 12px;color: #07F4F6" onClick="Qh1()" id="qh1"><img src="/hxzkuwb/Icon/3D鍦板浘.png" title="鍒囨崲鍦板浘" alt="鍒囨崲鍦板浘" style="width: 20%"></a><br><span style="color: #07F4F6">涓夌淮鍦板浘</span></li>') + // }else{ + // Qh() + // } + // if(data[1].ishow == "鏄剧ず"){ + // + // } + // $(".MapShow").append('<li onclick="ello()" style="margin-left: 3%;cursor:pointer;display: inline-block;color: #07F4F6 "><img src="/hxzkuwb/Icon/鏌ョ湅鏇村.png" title="鏇村鎿嶄綔" style="width: 20%" alt="鏇村鎿嶄綔"><br>鏇村鎿嶄綔</li>') + // }) + + + function Cxgj(){ + $("#cxgjs").fadeOut(500) + } + var table = layui.table; + function ChongDianPower(){ + $("#fen1").toggle() + $("#PowerShuaXin").toggle() + layer.msg('鎿嶄綔鎴愬姛') + } + function ChongDianPowerShuaXin(){ + table.reload('PowerPerson', { + url: '/hxzkuwb/findPowerPerson' // 鏂扮殑鏁版嵁鎺ュ彛鍦板潃 + }); + $("#fen1").toggle() + setTimeout(function (){ + $("#fen1").toggle() + },300) + layer.msg('鍒锋柊鎴愬姛') + } +</script> </html> -- Gitblit v1.9.3