| | |
| | | <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;"><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;"><img |
| | | alt="" src="/hxzkoa/resources/images/border2.png" class="img-right"></div> |
| | | 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;"> |
| | | <img alt="" src="/hxzkoa/resources/images/border2.png" class="img-right"> |
| | | </div> |
| | | <!-- BEGIN NAVBAR --> |
| | | <div class="login-page"></div> |
| | | <!-- END NAVBAR --> |
| | |
| | | <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" |
| | |
| | | </svg></span> |
| | | </div> |
| | | <input type="text" id="search_input" class="form-control" |
| | | placeholder="请输入设备ID" aria-label="Username" |
| | | placeholder="请输入编号或姓名" aria-label="Username" |
| | | aria-describedby="basic-addon1"> |
| | | </div> |
| | | <div style="width: 150px; float: left; margin-right: 10px;"> |
| | | <select class="form-control form-control-lg" id="shaileixing" |
| | | style="font-size: 15px;" onchange="fenlei()"> |
| | | <option value="全部">全部</option> |
| | | <option value="出区域告警">出区域告警</option> |
| | | <option value="SOS">SOS告警</option> |
| | | <option value="低电量">低电量告警</option> |
| | | </select> |
| | | </div> |
| | | <div style="width: 150px; float: left; margin-right: 10px;"> |
| | | <select class="form-control form-control-lg" id="shaizhuangtai" |
| | | style="font-size: 15px;" onchange="fenlei()"> |
| | | <option value="全部">全部</option> |
| | | <option value="已处理">已处理</option> |
| | | <option value="未处理">未处理</option> |
| | | </select> |
| | | </div> |
| | | <button type="button" class="btn btn-secondary reset">刷新</button> |
| | | <button type="button" class="btn btn-secondary handle" |
| | | id="modifyButton">处理</button> |
| | |
| | | <th>处理情况</th> |
| | | <th class="noExl">处理状态</th> |
| | | <th>更新时间</th> |
| | | <th>备注</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody id="nr"> |
| | |
| | | type="hidden" class="custom-control-input" |
| | | value="${list.type}" name="type"><label |
| | | class="custom-control-label" for="${list.id}" |
| | | style="position:raletive;left:20px;bottom:2px;"></label> |
| | | style="position: raletive; left: 20px; bottom: 2px;"></label> |
| | | </td> |
| | | <td>${list.id}</td> |
| | | <td>${list.type}</td> |
| | |
| | | </c:choose> |
| | | </td> |
| | | <td>${list.time}</td> |
| | | <td>${list.baoliu1}</td> |
| | | </tr> |
| | | </c:forEach> |
| | | </tbody> |
| | |
| | | </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; |
| | | } |
| | | %> |
| | | <% 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%>"> |
| | | <input type="hidden" name="xianusera" id="xianusera" value="<%=username%>"> |
| | | <!-- END MAIN CONTAINER --> |
| | | <script> |
| | | // 页面初始化 |
| | | $(document).ready(function () { |
| | | App.init(); $.ajax({ async: false, type: "POST", url: "/hxzkoa/getSysSetting_list.do", data: {}, dataType: "json", success: function (data) { /* title = data[0].title; document.title = title; */ }, }); |
| | | window.onload = function () { |
| | | App.init(); |
| | | $.ajax({ |
| | | async: false, |
| | | type: "POST", |
| | | url: "/hxzkoa/getSysSetting_list2.do", |
| | | data: {}, |
| | | dataType: "json", |
| | | 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 superuser = document.getElementById("superuser").value; |
| | | var deleteq = document.getElementById("deleteq").value; |
| | | var alertq = document.getElementById("alertq").value; |
| | | var deleteall = document.getElementById("deleteall").value; |
| | | document.getElementById("xianuser").innerHTML=document.getElementById("xianusera").value |
| | | //console.log(superuser) |
| | | if (superuser == "访客") { |
| | | $("#addButton").attr("disabled", "true"); |
| | |
| | | if (deleteall == "否") { |
| | | $("#deleteAllButton").attr("disabled", "true"); |
| | | } |
| | | }); |
| | | }; |
| | | // 加载head复用页面 |
| | | $('.header-page').load('/hxzkoa/hxzk/top.html'); $('.login-page').load('/hxzkoa/hxzk/head.html'); |
| | | // 刷新功能 |
| | |
| | | var str = ""; |
| | | for (var k in data.dataList) { |
| | | if (data.dataList[k].status == '未处理') { |
| | | 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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/未处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td></tr>"; |
| | | 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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/未处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td><td>" + data.dataList[k].baoliu1 + "</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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/已处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td></tr>"; |
| | | 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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/已处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td><td>" + data.dataList[k].baoliu1 + "</td></tr>"; |
| | | } |
| | | } |
| | | $("#nr").html(str); |
| | |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("window.location.reload()",1000); |
| | | setTimeout("window.location.reload()", 1000); |
| | | } else { |
| | | swal( |
| | | '删除失败!', |
| | |
| | | checkVal.push(obj[k].id); |
| | | } |
| | | } |
| | | var fenlei = $("#shaileixing").val() |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/Warning_deleteAll.do", |
| | | data: { |
| | | checkVal: checkVal.toString() |
| | | checkVal: checkVal.toString(), |
| | | fenlei: fenlei, |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | |
| | | var str = ""; |
| | | for (var k in data.dataList) { |
| | | if (data.dataList[k].status == '未处理') { |
| | | 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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/未处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td></tr>"; |
| | | 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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/未处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td><td>" + data.dataList[k].baoliu1 + "</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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/已处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td></tr>"; |
| | | 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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/已处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td><td>" + data.dataList[k].baoliu1 + "</td></tr>"; |
| | | } |
| | | } |
| | | $("#nr").html(str); |
| | |
| | | } |
| | | }); |
| | | } |
| | | //分类查询 |
| | | function fenlei() { |
| | | var shaileixing = document.getElementById("shaileixing").value; |
| | | var shaizhuangtai = document.getElementById("shaizhuangtai").value; |
| | | if (shaileixing == '全部') { |
| | | if (shaizhuangtai == '全部') { |
| | | window.location.reload(); |
| | | } else { |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/shaizhuangtai.do", |
| | | data: { |
| | | fenlei: shaizhuangtai, |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | var str = ""; |
| | | for (var k in data.dataList) { |
| | | if (data.dataList[k].status == '未处理') { |
| | | 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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/未处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td><td>" + data.dataList[k].baoliu1 + "</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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/已处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td><td>" + data.dataList[k].baoliu1 + "</td></tr>"; |
| | | } |
| | | } |
| | | $("#nr").html(str); |
| | | }, |
| | | error: function () { |
| | | console.log('error'); |
| | | } |
| | | }); |
| | | } |
| | | } else if (shaizhuangtai == '全部') { |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/shaileixing.do", |
| | | data: { |
| | | fenlei: shaileixing, |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | var str = ""; |
| | | for (var k in data.dataList) { |
| | | if (data.dataList[k].status == '未处理') { |
| | | 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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/未处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td><td>" + data.dataList[k].baoliu1 + "</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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/已处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td><td>" + data.dataList[k].baoliu1 + "</td></tr>"; |
| | | } |
| | | } |
| | | $("#nr").html(str); |
| | | }, |
| | | error: function () { |
| | | console.log('error'); |
| | | } |
| | | }); |
| | | } else { |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/shuangshai.do", |
| | | data: { |
| | | fenlei: shaileixing, |
| | | fenlei2: shaizhuangtai |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | var str = ""; |
| | | for (var k in data.dataList) { |
| | | if (data.dataList[k].status == '未处理') { |
| | | 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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/未处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td><td>" + data.dataList[k].baoliu1 + "</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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].objectid + " name=\"objectids\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].status + " name=\"statuss\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td>" + data.dataList[k].id + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].objectid + "</td><td>" + data.dataList[k].status + "</td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/已处理.png\"/>" + "</td><td>" + data.dataList[k].time + "</td><td>" + data.dataList[k].baoliu1 + "</td></tr>"; |
| | | } |
| | | } |
| | | $("#nr").html(str); |
| | | }, |
| | | error: function () { |
| | | console.log('error'); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | $(".table tbody").on('click', 'tr', function (e) { |
| | | //console.log(e.target.type) |
| | | if (e.target.type != 'checkbox') { |