From 9926760c81b8b08d22a35d4b46ef21b0cb2bfeb6 Mon Sep 17 00:00:00 2001 From: hdw <496960745@qq.com> Date: 星期二, 13 十一月 2018 11:42:20 +0800 Subject: [PATCH] Merge branch 'dev_lxw' of https://whychdw@gitlab.com/whyclxw1/gx_tieta.git into dev_lxw --- gx_tieta/WebRoot/index.jsp | 53 +++++++++++++++++++++++++++++++++-------------------- 1 files changed, 33 insertions(+), 20 deletions(-) diff --git a/gx_tieta/WebRoot/index.jsp b/gx_tieta/WebRoot/index.jsp index 33cb90f..3f21744 100644 --- a/gx_tieta/WebRoot/index.jsp +++ b/gx_tieta/WebRoot/index.jsp @@ -121,8 +121,26 @@ <div class="map-info-detail"> <div class="layui-collapse" lay-filter="test" lay-accordion=""> <div class="layui-colla-item"> + <h2 class="layui-colla-title">瀹氫綅鏈烘埧</h2> + <div class="layui-colla-content layui-show"> + <table> + <tbody> + <tr> + <td class="w5em alg-c f-bold">鏈烘埧鍚嶇О:</td> + <td><input type="text" id="mapToolSearch"></td> + </tr> + <tr> + <td colspan="2" class="alg-r btn-container"> + <button type="button" value="鎼滅储" id="mapToolSearchBtn" class="mrr8">鎼滅储</button> + </td> + </tr> + </tbody> + </table> + </div> + </div> + <div class="layui-colla-item" id="permitAddHome"> <h2 class="layui-colla-title">娣诲姞鏈烘埧</h2> - <div class="layui-colla-content layui-show""> + <div class="layui-colla-content"> <table id="mapToolAddHome"> <tbody> <tr> @@ -149,24 +167,6 @@ </tbody> </table> </div> - </div> - <div class="layui-colla-item"> - <h2 class="layui-colla-title">瀹氫綅鏈烘埧</h2> - <div class="layui-colla-content"> - <table> - <tbody> - <tr> - <td class="w5em alg-c f-bold">鏈烘埧鍚嶇О:</td> - <td><input type="text" id="mapToolSearch"></td> - </tr> - <tr> - <td colspan="2" class="alg-r btn-container"> - <button type="button" value="鎼滅储" id="mapToolSearchBtn" class="mrr8">鎼滅储</button> - </td> - </tr> - </tbody> - </table> - </div> </div> </div> </div> @@ -401,6 +401,7 @@ <script type="text/javascript" src="js/myConfirm.js"></script> <script type="text/javascript" src="js/loading.js"></script> <script type="text/javascript" src="src/layui.js"></script> + <script type="text/javascript" src="src/layui.all.js"></script> <script type="text/javascript"> var permits; <% Object obj=session.getAttribute("permits"); @@ -2466,11 +2467,12 @@ var content = '<div style="padding:6px;"><span>钃勭數姹犵粍鍛婅鏁扮洰锛�</span>'+data.code+'<a style="margin-left: 14px" href="javascript:loadToWarnPage();">璇︽儏>></a></div>'+ '<div style="padding:6px;"><span>钃勭數姹犵粍钀藉悗鏁扮洰锛�</span>'+data.sum+'<a style="margin-left: 14px" href="javascript:loadToBehindPage();">璇︽儏>></a></div>'+ '<div style="padding:6px;"><span>钃勭數姹犵粍寤舵椂鏁扮洰锛�</span>'+data.newsum+'<a style="margin-left: 14px" href="javascript:loadToDischargeDelay();">璇︽儏>></a></div>'+ - '<div style="padding:6px"><a href="javascript:loadToRealTime();">瀹炴椂鏁版嵁</a><a style="margin-left: 20px" href="javascript:loadToOldTime();">鍘嗗彶鏁版嵁</a></div>'+ + '<div style="padding:6px"><a href="javascript:loadToRealTime();">瀹炴椂鏁版嵁</a><a style="margin-left: 20px" href="javascript:loadToOldTime();">鍘嗗彶鏁版嵁</a><a style="margin-left: 20px" href="javascript:showHomeInfo();">鍩虹珯淇℃伅</a></div>'+ '<div style="padding:6px;"><span>鍦板潃锛�</span>'+data.data.Address+'</div>'+ '<input type="hidden" class="ipt-hide home" value="'+data.data.StationName+'">'+ '<input type="hidden" class="ipt-hide province" value="'+data.data.stationName1+'">'+ '<input type="hidden" class="ipt-hide county" value="'+data.data.stationName5+'">'+ + '<input type="hidden" class="ipt-hide sid" value="'+data.data.StationId+'">'+ '<input type="hidden" class="ipt-hide city" value="'+data.data.stationName2+'">'; var list = { @@ -3631,6 +3633,13 @@ }); } + // 鏍规嵁鏉冮檺鏇存柊鍦板浘宸ュ叿鍐呭 + var permitAddHome = getPermit('batt_map_edit_permit', permits); // 娣诲姞鏈烘埧鐨勬潈闄� + // 娌℃湁娣诲姞鏈烘埧鐨勬潈闄� + if(!permitAddHome) { + $('#permitAddHome').remove(); + } + // 鍦板浘宸︿笂鏂归潰鏉挎ā鍧�-鐐瑰嚮闈㈡澘涓婃柟鐨勫皬鍥炬爣鏄剧ず璁惧畾淇℃伅 $('#showMapInfoDetail').click(function() { $('.map-info-detail').slideToggle(); @@ -3734,5 +3743,9 @@ $( "#mapToolSearch" ).autocomplete('option', 'source', homeSource); } + // 鏄剧ず鏈烘埧淇℃伅 + function showHomeInfo() { + layer.msg('鍔熻兘寮�鍙戜腑...'); + } </script> </html> -- Gitblit v1.9.1