| | |
| | | <link href="https://fonts.googleapis.com/css?family=Quicksand:400,500,600,700&display=swap" |
| | | rel="stylesheet"> |
| | | <style> |
| | | body { |
| | | margin: 0px; |
| | | width: 100%; |
| | | min-width: 1500px; |
| | | max-width: 100%; |
| | | height: 100%; |
| | | background-color: #F0F0F0; |
| | | } |
| | | |
| | | #head { |
| | | background-color: #FFFF00; |
| | | width: 100%; |
| | | height: 100px; |
| | | } |
| | | |
| | | #center { |
| | | background-color: #00FFFF; |
| | | width: 100%; |
| | | min-height: 100%; |
| | | } |
| | | |
| | | #foot { |
| | | background-color: #FF00FF; |
| | | width: 100%; |
| | | height: 100px; |
| | | } |
| | | |
| | | .panel-head { |
| | | font-size: 1rem; |
| | | color: rgba(255, 255, 255, .7); |
| | |
| | | </div> |
| | | <!-- END LOADER --> |
| | | <div class="border-left" |
| | | style="opacity:0.4;float:left;position:absolute;z-index:1;left:120px;height:20px;"> |
| | | style="opacity: 0.4; float: left; position: absolute; z-index: 1; left: 120px; height: 20px;"> |
| | | <img alt="" src="/hxzkoa/resources/images/border.png" class="img-left"> |
| | | </div> |
| | | <div class="border-right" style="opacity:0.4;float:right;position:absolute;z-index:2;right:120px;"> |
| | | <div class="border-right" |
| | | style="opacity: 0.4; float: right; position: absolute; z-index: 2; right: 120px;"> |
| | | <img alt="" src="/hxzkoa/resources/images/border2.png" class="img-right"> |
| | | </div> |
| | | <!-- BEGIN NAVBAR --> |
| | |
| | | <!-- BEGIN MODAL --> |
| | | <div class="modal fade addNew" tabindex="-1" role="dialog" aria-labelledby="myExtraLargeModalLabel" |
| | | aria-hidden="true"> |
| | | <div class="modal-dialog modal-xl" role="document" style="width:30%;"> |
| | | <div class="modal-dialog modal-xl" role="document" style="width: 30%;"> |
| | | <div class="modal-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">新增</h5> |
| | |
| | | <form action="form_action.asp" method="get"> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">基站ID:</label> |
| | | style="font-size: 12px;">基站ID:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="anchorid_a" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">X坐标(cm):</label> |
| | | style="font-size: 12px;">X坐标(cm):</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="POSX_a" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">Y坐标(cm):</label> |
| | | style="font-size: 12px;">Y坐标(cm):</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="POSY_a" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">Z坐标(cm):</label> |
| | | style="font-size: 12px;">Z坐标(cm):</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="POSZ_a" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">基站所在层:</label> |
| | | style="font-size: 12px;">基站所在层:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="layer_a" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">基站所在组:</label> |
| | | style="font-size: 12px;">基站所在组:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="zu_a" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">基站的量程:</label> |
| | | style="font-size: 12px;">基站的量程:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="liangcheng_a" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">基站的地址:</label> |
| | | style="font-size: 12px;">基站的地址:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="anchorip_a" /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="modal-footer" style="margin-top:10%; margin-left:10%;float:left;"> |
| | | <div class="modal-footer" style="margin-top: 10%; margin-left: 10%; float: left;"> |
| | | <button type="button" class="btn btn-primary add">保存</button> |
| | | <a> |
| | | <c:forEach var="i" begin="1" end="28"> </c:forEach> |
| | | </a> |
| | | <button class="btn" data-dismiss="modal"><i |
| | | class="flaticon-cancel-12"></i>取消</button> |
| | | <button class="btn" data-dismiss="modal"> |
| | | <i class="flaticon-cancel-12"></i>取消 |
| | | </button> |
| | | </div> |
| | | </form> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="modal fade modifyNew" tabindex="-1" role="dialog" aria-labelledby="myExtraLargeModalLabel" |
| | | aria-hidden="true"> |
| | | <div class="modal-dialog modal-xl" role="document" style="width:30%;"> |
| | | <div class="modal-dialog modal-xl" role="document" style="width: 30%;"> |
| | | <div class="modal-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">修改</h5> |
| | |
| | | <form action="form_action.asp" method="get"> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">基站ID:</label> |
| | | style="font-size: 12px;">基站ID:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="anchorid_m" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">X坐标(cm):</label> |
| | | style="font-size: 12px;">X坐标(cm):</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="POSX_m" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">Y坐标(cm):</label> |
| | | style="font-size: 12px;">Y坐标(cm):</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="POSY_m" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">Z坐标(cm):</label> |
| | | style="font-size: 12px;">Z坐标(cm):</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="POSZ_m" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">基站所在层:</label> |
| | | style="font-size: 12px;">基站所在层:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="layer_m" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">基站所在组:</label> |
| | | style="font-size: 12px;">基站所在组:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="zu_m" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">基站的量程:</label> |
| | | style="font-size: 12px;">基站的量程:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="liangcheng_m" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">基站的地址:</label> |
| | | style="font-size: 12px;">基站的地址:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="anchorip_m" /> |
| | | </div> |
| | | </div> |
| | | <div class="modal-footer" style="margin-top:10%; margin-left:10%;float:left;"> |
| | | <div class="modal-footer" style="margin-top: 10%; margin-left: 10%; float: left;"> |
| | | <button type="button" class="btn btn-primary modify">保存</button> |
| | | <a> |
| | | <c:forEach var="i" begin="1" end="28"> </c:forEach> |
| | | </a> |
| | | <button class="btn" data-dismiss="modal"><i |
| | | class="flaticon-cancel-12"></i>取消</button> |
| | | <button class="btn" data-dismiss="modal"> |
| | | <i class="flaticon-cancel-12"></i>取消 |
| | | </button> |
| | | </div> |
| | | </form> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="modal fade importLable" tabindex="-1" role="dialog" aria-labelledby="myExtraLargeModalLabel" |
| | | aria-hidden="true"> |
| | | <div class="modal-dialog modal-xl" role="document" style="width:25%;"> |
| | | <div class="modal-dialog modal-xl" role="document" style="width: 25%;"> |
| | | <div class="modal-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">导入基站</h5> |
| | |
| | | <div class="modal-body"> |
| | | <form action="/hxzkoa/uploadAnchor.do" method="post" enctype="multipart/form-data"> |
| | | <div class="form-group mb-4 mt-3" |
| | | style="width:50%; margin-left:25%; overflow:auto; _display:inline-block;"> |
| | | style="width: 50%; margin-left: 25%; overflow: auto; _display: inline-block;"> |
| | | <input type="file" class="form-control-file" name="file" id="importXls"> |
| | | </div> |
| | | <input class="form-control" type="hidden" id="resultList" value="${resultList}" /> |
| | | <div class="modal-footer" style="margin-top:10%; margin-left:10%;float:left;"> |
| | | <div class="modal-footer" style="margin-top: 10%; margin-left: 10%; float: left;"> |
| | | <button type="submit" class="btn btn-primary">保存</button> |
| | | <a> |
| | | <c:forEach var="i" begin="1" end="28"> </c:forEach> |
| | |
| | | <div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing"> |
| | | <div class="widget-content widget-content-area br-6"> |
| | | <div class="table-responsive mb-4 mt-4"> |
| | | <table id="html5-extension" class="table table-hover" style="width:100%"> |
| | | <table id="html5-extension" class="table table-hover" style="width: 100%"> |
| | | <div> |
| | | <div class="search-input-group-style input-group mb-3" |
| | | style="width:15%;float:left;margin-left:15px;margin-right:15px;"> |
| | | style="width: 15%; float: left; margin-left: 15px; margin-right: 15px;"> |
| | | <div class="input-group-prepend"> |
| | | <span class="input-group-text search" id="basic-addon1"><svg |
| | | xmlns="http://www.w3.org/2000/svg" width="24" |
| | |
| | | type="hidden" class="custom-control-input" |
| | | value="${list.anchorid}" name="anchorids"><label |
| | | class="custom-control-label" for="${list.id}" |
| | | style="position:raletive;left:20px;"></label></td> |
| | | style="position: raletive; left: 20px;"></label> |
| | | </td> |
| | | <td class="noExl"> |
| | | <c:choose> |
| | | <c:when test="${list.anchormode == '0'}"> |
| | |
| | | </div> |
| | | <!-- END CONTENT PART --> |
| | | </div> |
| | | <% String superuser=(String)session.getAttribute("superuser"); String |
| | | deleteq=(String)session.getAttribute("deleteq"); String |
| | | alertq=(String)session.getAttribute("alertq"); String |
| | | deleteall=(String)session.getAttribute("deleteall"); |
| | | String username=(String)session.getAttribute("username"); |
| | | if(username==null || username.equals("")){ |
| | | request.getRequestDispatcher("/hxzk/login.jsp").forward(request,response); |
| | | return; |
| | | } |
| | | %> |
| | | <input type="hidden" name="superuser" id="superuser" value="<%=superuser%>"> |
| | | <input type="hidden" name="deleteq" id="deleteq" value="<%=deleteq%>"> |
| | | <input type="hidden" name="alertq" id="alertq" value="<%=alertq%>"> |
| | | <input type="hidden" name="deleteall" id="deleteall" value="<%=deleteall%>"> |
| | | <% String superuser=(String) session.getAttribute("superuser"); String deleteq=(String) |
| | | session.getAttribute("deleteq"); String alertq=(String) session.getAttribute("alertq"); String |
| | | deleteall=(String) session.getAttribute("deleteall"); String username=(String) |
| | | session.getAttribute("username"); String fenceq=(String) session.getAttribute("fenceq"); if (username==null || username.equals("")) { |
| | | request.getRequestDispatcher("/hxzk/login.jsp").forward(request, response); return; } %> |
| | | <input type="hidden" name="superuser" id="superuser" value="<%=superuser%>"> <input |
| | | type="hidden" name="deleteq" id="deleteq" value="<%=deleteq%>"> <input type="hidden" |
| | | name="alertq" id="alertq" value="<%=alertq%>"> <input type="hidden" name="deleteall" |
| | | id="deleteall" value="<%=deleteall%>"><input type="hidden" name="xianusera" id="xianusera" value="<%=username%>"> |
| | | <input type="hidden" name="fenceq" id="fenceq" value="<%=fenceq%>"> |
| | | <!-- END MAIN CONTAINER --> |
| | | <script> |
| | | // 页面初始化 |
| | | $(document).ready(function () { |
| | | window.onload = function () { |
| | | App.init(); |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/getSysSetting_list.do", |
| | | url: "/hxzkoa/getSysSetting_list2.do", |
| | | data: { |
| | | |
| | | }, |
| | |
| | | success: function (data) { |
| | | /* title = data[0].title |
| | | document.title = title; */ |
| | | if (data.dataList2[0].label == 0) { |
| | | $("#labela").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].achor == 0) { |
| | | $("#anchora").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].gps == 0) { |
| | | $("#gpsa").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].fence == 0) { |
| | | $("#fencea").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].warning == 0) { |
| | | $("#warninga").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].history == 0) { |
| | | $("#historya").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].attendance == 0) { |
| | | $("#attendancea").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].basiclnfo == 0) { |
| | | $("#basiclnfoa").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].video == 0) { |
| | | $("#videoa").css({ 'display': 'none' }); |
| | | }; |
| | | if (data.dataList2[0].gas == 0) { |
| | | $("#gasa").css({ 'display': 'none' }); |
| | | }; |
| | | }, |
| | | }); |
| | | $("#page_1").addClass("active"); |
| | |
| | | var deleteq = document.getElementById("deleteq").value; |
| | | var alertq = document.getElementById("alertq").value; |
| | | var deleteall = document.getElementById("deleteall").value; |
| | | var fenceq = document.getElementById("fenceq").value; |
| | | document.getElementById("xianuser").innerHTML=document.getElementById("xianusera").value |
| | | //console.log(superuser) |
| | | if (superuser == "访客") { |
| | | $("#addButton").attr("disabled", "true"); |
| | |
| | | if (deleteall == "否") { |
| | | $("#deleteAllButton").attr("disabled", "true"); |
| | | } |
| | | }); |
| | | if (fenceq == "否") { |
| | | $("#addButton").attr("disabled", "true"); |
| | | } |
| | | }; |
| | | // 加载head复用页面 |
| | | $('.header-page').load('/hxzkoa/hxzk/top.html'); $('.login-page').load('/hxzkoa/hxzk/head.html'); |
| | | $('.header-page').load('/hxzkoa/hxzk/top.html'); |
| | | $('.login-page').load('/hxzkoa/hxzk/head.html'); |
| | | // 刷新功能 |
| | | $(".reset").click(function () { |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 新增功能 |
| | | $('.add').on('click', function () { |
| | | var anchorid = $("#anchorid_a").val(); |
| | | var result = ""; |
| | | $.ajax({ |
| | | async: false, |
| | | type: "POST", |
| | | url: "/hxzkoa/anchorid_search.do", |
| | | data: { |
| | | anchorid: anchorid |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | result = data |
| | | }, |
| | | $('.add').on( |
| | | 'click', |
| | | function () { |
| | | var anchorid = $("#anchorid_a").val(); |
| | | var result = ""; |
| | | $.ajax({ |
| | | async: false, |
| | | type: "POST", |
| | | url: "/hxzkoa/anchorid_search.do", |
| | | data: { |
| | | anchorid: anchorid |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | result = data |
| | | }, |
| | | }); |
| | | if (result == 1) { |
| | | swal('添加失败!', '该基站已存在', 'error') |
| | | return false; |
| | | } |
| | | var reg = /^[A-Za-z0-9]+$/; |
| | | var result = reg.test(anchorid); |
| | | //console.log("result", result); |
| | | var POSX = $("#POSX_a").val(); |
| | | var POSY = $("#POSY_a").val(); |
| | | //var reg2 = /^-?\\d+$/; |
| | | var reg2 = new RegExp("^[0-9][0-9]*$"); |
| | | var result_x = reg2.test(POSX); |
| | | var result_y = reg2.test(POSY); |
| | | var POSZ = $("#POSZ_a").val(); |
| | | var result_z = reg2.test(POSZ); |
| | | var layer = $("#layer_a").val(); |
| | | var result_l = reg2.test(layer); |
| | | var zu = $("#zu_a").val(); |
| | | var result_z = reg2.test(zu); |
| | | var liangcheng = $("#liangcheng_a").val(); |
| | | var result_lc = reg2.test(liangcheng); |
| | | var anchorip = $("#anchorip_a").val(); |
| | | if (!anchorid || !result) { |
| | | swal('输入有误', '请输入正确的基站ID!', 'error'); |
| | | return; |
| | | } |
| | | if (POSX == "" || POSY == "" || POSZ == "" |
| | | || layer == "" || zu == "" || liangcheng == "" |
| | | || anchorip == "") { |
| | | swal('输入有误', '输入不能为空!', 'error'); |
| | | return; |
| | | } |
| | | if ((!result_x && POSX != "") |
| | | || (!result_y && POSY != "") |
| | | || (!result_z && POSZ != "") |
| | | || (!result_l && layer != "") |
| | | || (!result_z && zu != "") |
| | | || (!result_lc && liangcheng != "")) { |
| | | swal('输入有误', '不能输入小数!', 'error'); |
| | | return; |
| | | } |
| | | if (isNaN(anchorid)) { |
| | | //swal('输入有误','请输入数字!','error');return; |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | dataType: "json", |
| | | url: "/hxzkoa/anchorManagement_add.do", |
| | | data: { |
| | | anchorid: anchorid, |
| | | POSX: POSX, |
| | | POSY: POSY, |
| | | POSZ: POSZ, |
| | | layer: layer, |
| | | zu: zu, |
| | | liangcheng: liangcheng, |
| | | anchorip: anchorip |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | swal({ |
| | | title: "Saved!", |
| | | text: "保存成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | if (result == 1) { |
| | | swal( |
| | | '添加失败!', |
| | | '该基站已存在', |
| | | 'error' |
| | | ) |
| | | return false; |
| | | } |
| | | var reg = /^[A-Za-z0-9]+$/; |
| | | var result = reg.test(anchorid); |
| | | //console.log("result", result); |
| | | var POSX = $("#POSX_a").val(); |
| | | var POSY = $("#POSY_a").val(); |
| | | //var reg2 = /^-?\\d+$/; |
| | | var reg2 = new RegExp("^[0-9][0-9]*$"); |
| | | var result_x = reg2.test(POSX); |
| | | var result_y = reg2.test(POSY); |
| | | var POSZ = $("#POSZ_a").val(); |
| | | var result_z = reg2.test(POSZ); |
| | | var layer = $("#layer_a").val(); |
| | | var result_l = reg2.test(layer); |
| | | var zu = $("#zu_a").val(); |
| | | var result_z = reg2.test(zu); |
| | | var liangcheng = $("#liangcheng_a").val(); |
| | | var result_lc = reg2.test(liangcheng); |
| | | var anchorip = $("#anchorip_a").val(); |
| | | if (!anchorid || !result) { |
| | | swal('输入有误', '请输入正确的基站ID!', 'error'); return; |
| | | } |
| | | if (POSX == "" || POSY == "" || POSZ == "" || layer == "" || zu == "" || liangcheng == "" || anchorip == ""){ |
| | | swal('输入有误', '输入不能为空!', 'error'); return; |
| | | } |
| | | if ((!result_x && POSX != "") || (!result_y && POSY != "") || (!result_z && POSZ != "") || (!result_l && layer != "") || (!result_z && zu != "") || (!result_lc && liangcheng != "")) { |
| | | swal('输入有误', '不能输入小数!', 'error'); return; |
| | | } |
| | | if (isNaN(anchorid)) { |
| | | //swal('输入有误','请输入数字!','error');return; |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | dataType: "json", |
| | | url: "/hxzkoa/anchorManagement_add.do", |
| | | data: { |
| | | anchorid: anchorid, |
| | | POSX: POSX, |
| | | POSY: POSY, |
| | | POSZ: POSZ, |
| | | layer: layer, |
| | | zu: zu, |
| | | liangcheng: liangcheng, |
| | | anchorip: anchorip |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | swal({ |
| | | title: "Saved!", |
| | | text: "保存成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 修改功能初始化 |
| | | $('.initModify').on('click', function () { |
| | | var tr, state, firstId; |
| | | $('input[name="selectIds"]').each( |
| | | function () { |
| | | $('input[name="selectIds"]').each(function () { |
| | | state = $(this).prop('checked'); |
| | | if (state) { |
| | | firstId = $(this).attr('id'); |
| | | tr = $(this).parent().parent()[0]; |
| | | $("#anchorid_m").val(tr.children[2].innerHTML); |
| | | $("#POSX_m").val(tr.children[3].innerHTML); |
| | | $("#POSY_m").val(tr.children[4].innerHTML); |
| | | $("#POSZ_m").val(tr.children[5].innerHTML); |
| | | $("#layer_m").val(tr.children[6].innerHTML); |
| | | $("#zu_m").val(tr.children[7].innerHTML); |
| | | $("#liangcheng_m").val(tr.children[8].innerHTML); |
| | | $("#anchorip_m").val(tr.children[10].innerHTML); |
| | | return false; |
| | | } |
| | | }); |
| | | if (!state) { |
| | | $('input[name="selectIds"]').each(function () { |
| | | state = $(this).prop('checked'); |
| | | if (state) { |
| | | if (!state) { |
| | | firstId = $(this).attr('id'); |
| | | tr = $(this).parent().parent()[0]; |
| | | $("#anchorid_m").val(tr.children[2].innerHTML); |
| | |
| | | $("#anchorip_m").val(tr.children[10].innerHTML); |
| | | return false; |
| | | } |
| | | } |
| | | ); |
| | | if (!state) { |
| | | $('input[name="selectIds"]').each( |
| | | function () { |
| | | state = $(this).prop('checked'); |
| | | if (!state) { |
| | | firstId = $(this).attr('id'); |
| | | tr = $(this).parent().parent()[0]; |
| | | $("#anchorid_m").val(tr.children[2].innerHTML); |
| | | $("#POSX_m").val(tr.children[3].innerHTML); |
| | | $("#POSY_m").val(tr.children[4].innerHTML); |
| | | $("#POSZ_m").val(tr.children[5].innerHTML); |
| | | $("#layer_m").val(tr.children[6].innerHTML); |
| | | $("#zu_m").val(tr.children[7].innerHTML); |
| | | $("#liangcheng_m").val(tr.children[8].innerHTML); |
| | | $("#anchorip_m").val(tr.children[10].innerHTML); |
| | | return false; |
| | | } |
| | | } |
| | | ); |
| | | }); |
| | | alert("请选中一条数据进行修改,当前默认第一条!"); |
| | | } |
| | | }); |
| | |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 删除功能 |
| | | $('.delete').on('click', function () { |
| | | swal({ |
| | | title: '确定要删除么?', |
| | | text: "删除之后无法恢复!", |
| | | type: 'warning', |
| | | showCancelButton: true, |
| | | confirmButtonText: '删除', |
| | | cancelButtonText: '取消', |
| | | padding: '2em' |
| | | }).then(function (result) { |
| | | if (result.value) { |
| | | //获取选中数据 |
| | | var checkVal = []; |
| | | var anchorid = []; |
| | | var obj = document.getElementsByName("selectIds"); |
| | | var anchorids = document.getElementsByName("anchorids"); |
| | | for (var k in obj) { |
| | | if (obj[k].checked) { |
| | | checkVal.push(obj[k].id); |
| | | } |
| | | } |
| | | for (var k in anchorids) { |
| | | if (obj[k].checked) { |
| | | anchorid.push(anchorids[k].value); |
| | | } |
| | | } |
| | | if (checkVal.length > 0) { |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/anchorManagement_delete.do", |
| | | data: { |
| | | checkVal: checkVal.toString(), |
| | | anchorids: anchorid.toString() |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | swal({ |
| | | title: "Deleted!", |
| | | text: "删除成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | } else { |
| | | swal( |
| | | '删除失败!', |
| | | '请先选择删除的内容', |
| | | 'error' |
| | | ) |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | $('.delete') |
| | | .on( |
| | | 'click', |
| | | function () { |
| | | swal({ |
| | | title: '确定要删除么?', |
| | | text: "删除之后无法恢复!", |
| | | type: 'warning', |
| | | showCancelButton: true, |
| | | confirmButtonText: '删除', |
| | | cancelButtonText: '取消', |
| | | padding: '2em' |
| | | }) |
| | | .then( |
| | | function (result) { |
| | | if (result.value) { |
| | | //获取选中数据 |
| | | var checkVal = []; |
| | | var anchorid = []; |
| | | var obj = document |
| | | .getElementsByName("selectIds"); |
| | | var anchorids = document |
| | | .getElementsByName("anchorids"); |
| | | for (var k in obj) { |
| | | if (obj[k].checked) { |
| | | checkVal |
| | | .push(obj[k].id); |
| | | } |
| | | } |
| | | for (var k in anchorids) { |
| | | if (obj[k].checked) { |
| | | anchorid |
| | | .push(anchorids[k].value); |
| | | } |
| | | } |
| | | if (checkVal.length > 0) { |
| | | $ |
| | | .ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/anchorManagement_delete.do", |
| | | data: { |
| | | checkVal: checkVal |
| | | .toString(), |
| | | anchorids: anchorid |
| | | .toString() |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | swal({ |
| | | title: "Deleted!", |
| | | text: "删除成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout( |
| | | "window.location.reload()", |
| | | 1000); |
| | | } else { |
| | | swal( |
| | | '删除失败!', |
| | | '请先选择删除的内容', |
| | | 'error') |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | // 全部删除 |
| | | $('.deleteAll').on('click', function () { |
| | | swal({ |
| | |
| | | }) |
| | | }); |
| | | // 搜索功能 |
| | | $(".search").click(function () { |
| | | var input = $("#search_input").val(); |
| | | if (input == "") { |
| | | swal('输入有误', '输入不能为空!', 'error'); return; |
| | | } |
| | | if (isNaN(input)) { |
| | | //swal('输入有误','请输入数字!','error');return; |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/anchorManagement_search.do", |
| | | data: { |
| | | input: input |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | //搜索完成后刷新页面,只显示查到的部分 |
| | | var str = ""; |
| | | for (var k in data.dataList) { |
| | | if (data.dataList[k].anchormode == '0') { |
| | | str += "<tr align=\"center\"><td class=\"noExl custom-control custom-checkbox\"><input type=\"checkbox\" class=\"custom-control-input\" id=" + data.dataList[k].id + " name=\"selectIds\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/anchor/基站离线.png\"/>" + "</td><td>" + data.dataList[k].anchorid + "</td><td>" + data.dataList[k].POSX + "</td><td>" + data.dataList[k].POSY + "</td><td>" + data.dataList[k].POSZ + "</td><td>" + data.dataList[k].layer + "</td><td>" + data.dataList[k].zu + "</td><td>" + data.dataList[k].liangcheng + "</td><td>" + data.dataList[k].anchormode + "</td><td>" + data.dataList[k].anchorip + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].greateTime + "</td></tr>"; |
| | | } else { |
| | | str += "<tr align=\"center\"><td class=\"noExl custom-control custom-checkbox\"><input type=\"checkbox\" class=\"custom-control-input\" id=" + data.dataList[k].id + " name=\"selectIds\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/anchor/基站在线.png\"/>" + "</td><td>" + data.dataList[k].anchorid + "</td><td>" + data.dataList[k].POSX + "</td><td>" + data.dataList[k].POSY + "</td><td>" + data.dataList[k].POSZ + "</td><td>" + data.dataList[k].layer + "</td><td>" + data.dataList[k].zu + "</td><td>" + data.dataList[k].liangcheng + "</td><td>" + data.dataList[k].anchormode + "</td><td>" + data.dataList[k].anchorip + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].greateTime + "</td></tr>"; |
| | | } |
| | | $(".search") |
| | | .click( |
| | | function () { |
| | | var input = $("#search_input").val(); |
| | | if (input == "") { |
| | | swal('输入有误', '输入不能为空!', 'error'); |
| | | return; |
| | | } |
| | | $("#nr").html(str); |
| | | if (!data.pageList.length == 0) { |
| | | str = ""; |
| | | str += "<li><a href=\"javascript:page('pre');\">上一页</a></li>"; |
| | | for (var k = 0; k < data.pageList.length; k++) { |
| | | str += "<li id=\"page_" + data.pageList[k] + "\"><a href=\"javascript:page('" + data.pageList[k] + "');\">" + data.pageList[k] + "</a></li>"; |
| | | } |
| | | str += "<li><a href=\"javascript:page('next');\">下一页</a></li>"; |
| | | $("#pageListId").html(str); |
| | | if (isNaN(input)) { |
| | | //swal('输入有误','请输入数字!','error');return; |
| | | } |
| | | $("#pageListId>li.active").removeClass("active"); |
| | | $("#page_" + data.curPage).addClass("active"); |
| | | $("#curPage").val(data.curPage); |
| | | $ |
| | | .ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/anchorManagement_search.do", |
| | | data: { |
| | | input: input |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | //搜索完成后刷新页面,只显示查到的部分 |
| | | var str = ""; |
| | | for (var k in data.dataList) { |
| | | if (data.dataList[k].anchormode == '0') { |
| | | str += "<tr align=\"center\"><td class=\"noExl custom-control custom-checkbox\"><input type=\"checkbox\" class=\"custom-control-input\" id=" + data.dataList[k].id + " name=\"selectIds\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;\"></label></td><td class=\"noExl\">" |
| | | + "<img src=\"hxzk/image/anchor/基站离线.png\"/>" |
| | | + "</td><td>" |
| | | + data.dataList[k].anchorid |
| | | + "</td><td>" |
| | | + data.dataList[k].POSX |
| | | + "</td><td>" |
| | | + data.dataList[k].POSY |
| | | + "</td><td>" |
| | | + data.dataList[k].POSZ |
| | | + "</td><td>" |
| | | + data.dataList[k].layer |
| | | + "</td><td>" |
| | | + data.dataList[k].zu |
| | | + "</td><td>" |
| | | + data.dataList[k].liangcheng |
| | | + "</td><td>" |
| | | + data.dataList[k].anchormode |
| | | + "</td><td>" |
| | | + data.dataList[k].anchorip |
| | | + "</td><td>" |
| | | + data.dataList[k].version |
| | | + "</td><td>" |
| | | + data.dataList[k].greateTime |
| | | + "</td></tr>"; |
| | | } else { |
| | | str += "<tr align=\"center\"><td class=\"noExl custom-control custom-checkbox\"><input type=\"checkbox\" class=\"custom-control-input\" id=" + data.dataList[k].id + " name=\"selectIds\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;\"></label></td><td class=\"noExl\">" |
| | | + "<img src=\"hxzk/image/anchor/基站在线.png\"/>" |
| | | + "</td><td>" |
| | | + data.dataList[k].anchorid |
| | | + "</td><td>" |
| | | + data.dataList[k].POSX |
| | | + "</td><td>" |
| | | + data.dataList[k].POSY |
| | | + "</td><td>" |
| | | + data.dataList[k].POSZ |
| | | + "</td><td>" |
| | | + data.dataList[k].layer |
| | | + "</td><td>" |
| | | + data.dataList[k].zu |
| | | + "</td><td>" |
| | | + data.dataList[k].liangcheng |
| | | + "</td><td>" |
| | | + data.dataList[k].anchormode |
| | | + "</td><td>" |
| | | + data.dataList[k].anchorip |
| | | + "</td><td>" |
| | | + data.dataList[k].version |
| | | + "</td><td>" |
| | | + data.dataList[k].greateTime |
| | | + "</td></tr>"; |
| | | } |
| | | } |
| | | $("#nr").html(str); |
| | | if (!data.pageList.length == 0) { |
| | | str = ""; |
| | | str += "<li><a href=\"javascript:page('pre');\">上一页</a></li>"; |
| | | for (var k = 0; k < data.pageList.length; k++) { |
| | | str += "<li id=\"page_" + data.pageList[k] + "\"><a href=\"javascript:page('" |
| | | + data.pageList[k] |
| | | + "');\">" |
| | | + data.pageList[k] |
| | | + "</a></li>"; |
| | | } |
| | | str += "<li><a href=\"javascript:page('next');\">下一页</a></li>"; |
| | | $("#pageListId").html(str); |
| | | } |
| | | $("#pageListId>li.active") |
| | | .removeClass("active"); |
| | | $("#page_" + data.curPage) |
| | | .addClass("active"); |
| | | $("#curPage").val(data.curPage); |
| | | |
| | | }, |
| | | error: function () { |
| | | //console.log('error'); |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | error: function () { |
| | | //console.log('error'); |
| | | } |
| | | }); |
| | | }); |
| | | // 导出表格 |
| | | $(".toAllExcel").click(function () { |
| | | window.location.href = '/hxzkoa/anchorManagement_export.do'; |
| | |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 下载模板 |
| | | $(".toExcel").click(function () { |
| | | window.location.href = '/hxzkoa/anchorManagement_exportTemplate.do'; |
| | | swal({ |
| | | title: "Exported!", |
| | | text: "导出成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false, |
| | | timer: 1000 |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | $(".toExcel") |
| | | .click( |
| | | function () { |
| | | window.location.href = '/hxzkoa/anchorManagement_exportTemplate.do'; |
| | | swal({ |
| | | title: "Exported!", |
| | | text: "导出成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false, |
| | | timer: 1000 |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 导入标签 |
| | | $(".importXls").click(function () { |
| | | var path = $("#importXls").val(); |
| | | if (path == "") { |
| | | swal( |
| | | '导入失败!', |
| | | '未选择文件', |
| | | 'error' |
| | | ) |
| | | return; |
| | | } else { |
| | | //解决由于浏览器的安全机制,路径被fakepath代替,隐藏了真实物理路径问题 |
| | | if (path.indexOf("fakepath") != -1) { |
| | | alert("由于浏览器的安全机制,请调整浏览器安全设置并使用Internet Explorer或者将导入文件放到C://hxzkoa/目录下,其他路径只能读取文件名!"); |
| | | alert("浏览器安全设置方法:打开Windows附件->Internet Explorer->工具 -> Internet选项 ->安全 -> 自定义级别 -> 找到“其他”中的“将本地文件上载至服务器时包含本地目录路径”,选中“启用”即可。"); |
| | | } |
| | | //var fileObj = document.getElementById("importXls").files[0]; |
| | | //var url = window.URL.createObjectURL(fileObj); |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/anchorManagement_import.do", |
| | | data: { |
| | | path: path |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.result == 1) { |
| | | swal({ |
| | | title: "Imported!", |
| | | text: "导入成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | } else { |
| | | swal( |
| | | '导入失败!', |
| | | '无法获取文件', |
| | | 'error' |
| | | ) |
| | | $(".importXls") |
| | | .click( |
| | | function () { |
| | | var path = $("#importXls").val(); |
| | | if (path == "") { |
| | | swal('导入失败!', '未选择文件', 'error') |
| | | return; |
| | | } else { |
| | | //解决由于浏览器的安全机制,路径被fakepath代替,隐藏了真实物理路径问题 |
| | | if (path.indexOf("fakepath") != -1) { |
| | | alert("由于浏览器的安全机制,请调整浏览器安全设置并使用Internet Explorer或者将导入文件放到C://hxzkoa/目录下,其他路径只能读取文件名!"); |
| | | alert("浏览器安全设置方法:打开Windows附件->Internet Explorer->工具 -> Internet选项 ->安全 -> 自定义级别 -> 找到“其他”中的“将本地文件上载至服务器时包含本地目录路径”,选中“启用”即可。"); |
| | | } |
| | | //var fileObj = document.getElementById("importXls").files[0]; |
| | | //var url = window.URL.createObjectURL(fileObj); |
| | | $ |
| | | .ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/anchorManagement_import.do", |
| | | data: { |
| | | path: path |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.result == 1) { |
| | | swal({ |
| | | title: "Imported!", |
| | | text: "导入成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout( |
| | | "window.location.reload()", |
| | | 1000); |
| | | } else { |
| | | swal('导入失败!', '无法获取文件', |
| | | 'error') |
| | | } |
| | | } |
| | | }); |
| | | setTimeout("window.location.reload()", 1000); |
| | | } |
| | | }); |
| | | setTimeout("window.location.reload()", 1000); |
| | | } |
| | | }); |
| | | // 导入标签 |
| | | $(document).ready(function () { |
| | | var resultList = $("#resultList").val(); |
| | |
| | | }) |
| | | setTimeout("history.go(-1)", 2000); |
| | | } else if (resultList == '0') { |
| | | swal( |
| | | '导入失败!', |
| | | '无法获取文件', |
| | | 'error' |
| | | ) |
| | | swal('导入失败!', '无法获取文件', 'error') |
| | | setTimeout("history.go(-1)", 2000); |
| | | } |
| | | }); |
| | | // 分页跳转 |
| | | function page(page) { |
| | | var curPage = $("#curPage").val(); |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/anchorManagement_page.do", |
| | | data: { |
| | | page: page, |
| | | curPage: curPage |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | var str = ""; |
| | | for (var k in data.dataList) { |
| | | if (data.dataList[k].anchormode == '0') { |
| | | str += "<tr align=\"center\"><td class=\"noExl custom-control custom-checkbox\"><input type=\"checkbox\" class=\"custom-control-input\" id=" + data.dataList[k].id + " name=\"selectIds\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/anchor/基站离线.png\"/>" + "</td><td>" + data.dataList[k].anchorid + "</td><td>" + data.dataList[k].POSX + "</td><td>" + data.dataList[k].POSY + "</td><td>" + data.dataList[k].POSZ + "</td><td>" + data.dataList[k].layer + "</td><td>" + data.dataList[k].zu + "</td><td>" + data.dataList[k].liangcheng + "</td><td>" + data.dataList[k].anchormode + "</td><td>" + data.dataList[k].anchorip + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].greateTime + "</td></tr>"; |
| | | } else { |
| | | str += "<tr align=\"center\"><td class=\"noExl custom-control custom-checkbox\"><input type=\"checkbox\" class=\"custom-control-input\" id=" + data.dataList[k].id + " name=\"selectIds\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/anchor/基站在线.png\"/>" + "</td><td>" + data.dataList[k].anchorid + "</td><td>" + data.dataList[k].POSX + "</td><td>" + data.dataList[k].POSY + "</td><td>" + data.dataList[k].POSZ + "</td><td>" + data.dataList[k].layer + "</td><td>" + data.dataList[k].zu + "</td><td>" + data.dataList[k].liangcheng + "</td><td>" + data.dataList[k].anchormode + "</td><td>" + data.dataList[k].anchorip + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].greateTime + "</td></tr>"; |
| | | $ |
| | | .ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/anchorManagement_page.do", |
| | | data: { |
| | | page: page, |
| | | curPage: curPage |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | var str = ""; |
| | | for (var k in data.dataList) { |
| | | if (data.dataList[k].anchormode == '0') { |
| | | str += "<tr align=\"center\"><td class=\"noExl custom-control custom-checkbox\"><input type=\"checkbox\" class=\"custom-control-input\" id=" + data.dataList[k].id + " name=\"selectIds\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;\"></label></td><td class=\"noExl\">" |
| | | + "<img src=\"hxzk/image/anchor/基站离线.png\"/>" |
| | | + "</td><td>" |
| | | + data.dataList[k].anchorid |
| | | + "</td><td>" |
| | | + data.dataList[k].POSX |
| | | + "</td><td>" |
| | | + data.dataList[k].POSY |
| | | + "</td><td>" |
| | | + data.dataList[k].POSZ |
| | | + "</td><td>" |
| | | + data.dataList[k].layer |
| | | + "</td><td>" |
| | | + data.dataList[k].zu |
| | | + "</td><td>" |
| | | + data.dataList[k].liangcheng |
| | | + "</td><td>" |
| | | + data.dataList[k].anchormode |
| | | + "</td><td>" |
| | | + data.dataList[k].anchorip |
| | | + "</td><td>" |
| | | + data.dataList[k].version |
| | | + "</td><td>" |
| | | + data.dataList[k].greateTime |
| | | + "</td></tr>"; |
| | | } else { |
| | | str += "<tr align=\"center\"><td class=\"noExl custom-control custom-checkbox\"><input type=\"checkbox\" class=\"custom-control-input\" id=" + data.dataList[k].id + " name=\"selectIds\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;\"></label></td><td class=\"noExl\">" |
| | | + "<img src=\"hxzk/image/anchor/基站在线.png\"/>" |
| | | + "</td><td>" |
| | | + data.dataList[k].anchorid |
| | | + "</td><td>" |
| | | + data.dataList[k].POSX |
| | | + "</td><td>" |
| | | + data.dataList[k].POSY |
| | | + "</td><td>" |
| | | + data.dataList[k].POSZ |
| | | + "</td><td>" |
| | | + data.dataList[k].layer |
| | | + "</td><td>" |
| | | + data.dataList[k].zu |
| | | + "</td><td>" |
| | | + data.dataList[k].liangcheng |
| | | + "</td><td>" |
| | | + data.dataList[k].anchormode |
| | | + "</td><td>" |
| | | + data.dataList[k].anchorip |
| | | + "</td><td>" |
| | | + data.dataList[k].version |
| | | + "</td><td>" |
| | | + data.dataList[k].greateTime |
| | | + "</td></tr>"; |
| | | } |
| | | } |
| | | } |
| | | $("#nr").html(str); |
| | | if (!data.pageList.length == 0) { |
| | | str = ""; |
| | | str += "<li><a href=\"javascript:page('pre');\">上一页</a></li>"; |
| | | for (var k = 0; k < data.pageList.length; k++) { |
| | | str += "<li id=\"page_" + data.pageList[k] + "\"><a href=\"javascript:page('" + data.pageList[k] + "');\">" + data.pageList[k] + "</a></li>"; |
| | | $("#nr").html(str); |
| | | if (!data.pageList.length == 0) { |
| | | str = ""; |
| | | str += "<li><a href=\"javascript:page('pre');\">上一页</a></li>"; |
| | | for (var k = 0; k < data.pageList.length; k++) { |
| | | str += "<li id=\"page_" + data.pageList[k] + "\"><a href=\"javascript:page('" |
| | | + data.pageList[k] |
| | | + "');\">" |
| | | + data.pageList[k] |
| | | + "</a></li>"; |
| | | } |
| | | str += "<li><a href=\"javascript:page('next');\">下一页</a></li>"; |
| | | $("#pageListId").html(str); |
| | | } |
| | | str += "<li><a href=\"javascript:page('next');\">下一页</a></li>"; |
| | | $("#pageListId").html(str); |
| | | $("#pageListId>li.active") |
| | | .removeClass("active"); |
| | | $("#page_" + data.curPage).addClass("active"); |
| | | $("#curPage").val(data.curPage); |
| | | }, |
| | | error: function () { |
| | | //console.log('error'); |
| | | } |
| | | $("#pageListId>li.active").removeClass("active"); |
| | | $("#page_" + data.curPage).addClass("active"); |
| | | $("#curPage").val(data.curPage); |
| | | }, |
| | | error: function () { |
| | | //console.log('error'); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | $(".table tbody").on('click', 'tr', function (e) { |
| | | //console.log(e.target.type) |