| | |
| | | aria-describedby="basic-addon1"> |
| | | </div> |
| | | <div style="width: 150px; float: left; margin-right: 10px;"> |
| | | <select class="form-control form-control-lg" id="dateList" style="font-size: 15px;" onchange="fenlei(value)"> |
| | | <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> |
| | |
| | | checkVal.push(obj[k].id); |
| | | } |
| | | } |
| | | var fenlei = $("#dateList").val() |
| | | var fenlei = $("#shaileixing").val() |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | |
| | | }); |
| | | } |
| | | //分类查询 |
| | | function fenlei(value) { |
| | | if (value == '全部') { |
| | | window.location.reload(); |
| | | } else { |
| | | 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/fenlei.do", |
| | | url: "/hxzkoa/shaileixing.do", |
| | | data: { |
| | | fenlei: value, |
| | | fenlei: shaileixing, |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | |
| | | $("#nr").html(str); |
| | | }, |
| | | error: function () { |
| | | //console.log('error'); |
| | | 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'); |
| | | } |
| | | }); |
| | | } |