| | |
| | | <meta charset="utf-8"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no"> |
| | | <title></title> |
| | | <title>标签管理</title> |
| | | <link href="/hxzkoa/hxzk/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/img/favicon.ico" rel="icon" type="image/x-icon" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/components/custom-modal.css" rel="stylesheet" type="text/css" /> |
| | |
| | | <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: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="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="tag_id_a" /> |
| | | </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="state_a" /> |
| | | </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"> |
| | | <select class="form-control form-control-lg" id="type" |
| | | style="font-size: 15px;"> |
| | | <option value="系统默认">系统默认</option> |
| | | <option value="融合终端">融合终端</option> |
| | | <option value="心率带屏">心率带屏</option> |
| | | <option value="车载带屏">车载带屏</option> |
| | | <option value="车载无屏">车载无屏</option> |
| | | <option value="物资标签">物资标签</option> |
| | | <option value="工牌标签">工牌标签</option> |
| | | <option value="安全帽标签">安全帽标签</option> |
| | | <option value="URT+CO">URT+CO</option> |
| | | </select> |
| | | </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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="gaodu_a" /> |
| | | </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="sudu_a" /> |
| | | </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"> |
| | | <select class="form-control form-control-lg" id="pinglv_a"> |
| | | <option value="1">1</option> |
| | | <option value="0.1">0.1</option> |
| | | <option value="1" selected>1</option> |
| | | <option value="2">2</option> |
| | | <option value="5">5</option> |
| | | <option value="10">10</option> |
| | | <option value="20">20</option> |
| | | </select> |
| | | <!-- <input class="form-control" type="text" id="pinglv_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: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="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="tag_id_m" /> |
| | | </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="state_m" /> |
| | | </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"> |
| | | <select class="form-control form-control-lg" id="typeg" |
| | | style="font-size: 15px;"> |
| | | <option value="系统默认">系统默认</option> |
| | | <option value="融合终端">融合终端</option> |
| | | <option value="心率带屏">心率带屏</option> |
| | | <option value="车载带屏">车载带屏</option> |
| | | <option value="车载无屏">车载无屏</option> |
| | | <option value="物资标签">物资标签</option> |
| | | <option value="工牌标签">工牌标签</option> |
| | | <option value="安全帽标签">安全帽标签</option> |
| | | <option value="URT+CO">URT+CO</option> |
| | | </select> |
| | | </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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="gaodu_m" /> |
| | | </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="sudu_m" /> |
| | | </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"> |
| | | <select class="form-control form-control-lg" id="pinglv_m"> |
| | | <option value="0.1">0.1</option> |
| | | <option value="1">1</option> |
| | | <option value="2">2</option> |
| | | <option value="5">5</option> |
| | | <option value="10">10</option> |
| | | <option value="20">20</option> |
| | | </select> |
| | | <!-- <input class="form-control" type="text" id="pinglv_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> |
| | |
| | | </div> |
| | | <div class="modal fade modifyAllNew" 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="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" value="修改全部标签" |
| | | disabled="disabled" /> |
| | |
| | | <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" value="修改全部标签" |
| | | disabled="disabled" /> |
| | |
| | | <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="gaodu_ma" /> |
| | | </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="sudu_ma" /> |
| | | </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"> |
| | | <select class="form-control form-control-lg" id="pinglv_ma"> |
| | | <option value="0.1">0.1</option> |
| | | <option value="1">1</option> |
| | | <option value="2">2</option> |
| | | <option value="5">5</option> |
| | | <option value="10">10</option> |
| | | <option value="20">20</option> |
| | | </select> |
| | | <!-- <input class="form-control" type="text" id="pinglv_ma" /> --> |
| | | </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 modifyAll">保存</button> |
| | | <a> |
| | | <c:forEach var="i" begin="1" end="28"> </c:forEach> |
| | |
| | | </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/uploadLabel.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> |
| | | <div class="modal fade moreSetting" tabindex="-1" role="dialog" |
| | | aria-labelledby="myExtraLargeModalLabel" aria-hidden="true"> |
| | | <div class="modal-dialog modal-xl" role="document" style="width:35%;"> |
| | | <div class="modal-dialog modal-xl" role="document" style="width: 35%;"> |
| | | <div class="modal-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">更多设置</h5> |
| | |
| | | </div> |
| | | <div class="modal-body"> |
| | | <div> |
| | | <div style="width:60%; margin-left:20%;margin-top:2%;float:left;"> |
| | | <div style="width: 60%; margin-left: 20%; margin-top: 2%; float: left;"> |
| | | <label for="tagId_ms" |
| | | style="float:left;width:20%;line-height:37px;">选择标签:</label> |
| | | style="float: left; width: 20%; line-height: 37px;">选择标签:</label> |
| | | <select class="form-control form-control-lg" id="tagId_ms" |
| | | style="float:left;width:60%;"> |
| | | style="float: left; width: 60%;"> |
| | | <option value="ALL">所有标签</option> |
| | | <option value="1048">1048</option> |
| | | <option value="1099">1099</option> |
| | | <c:forEach items="${labelManagementListaa}" var="label"> |
| | | <option value="${label.tag_id}">${label.tag_id}</option> |
| | | </c:forEach> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div style="width:60%; margin-left:20%;margin-top:2%;float:left;"> |
| | | <input type="checkbox" name="sAdn" checked='checked' id="xiumian_ms"> |
| | | <label for="xiumian">开启/关闭休眠</label> |
| | | <a> |
| | | <div style="width: 60%; margin-left: 20%; margin-top: 2%; float: left;"> |
| | | <input type="checkbox" name="sAdn" checked='checked' id="xiumian_ms"> <label |
| | | for="xiumian">开启/关闭休眠</label> <a> |
| | | <c:forEach var="i" begin="1" end="5"> </c:forEach> |
| | | </a> |
| | | <button type="button" class="btn btn-primary" style="margin-left:13%;" |
| | | <button type="button" class="btn btn-primary" style="margin-left: 13%;" |
| | | onclick="sendTag('1')">开关休眠</button> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div style="width:60%; margin-left:20%;margin-top:2%;float:left;"> |
| | | <div style="width: 60%; margin-left: 20%; margin-top: 2%; float: left;"> |
| | | <label for="xiumianT_ms" |
| | | style="float:left;width:20%;line-height:37px;">休眠时间:</label> |
| | | style="float: left; width: 20%; line-height: 37px;">休眠时间:</label> |
| | | <input class="form-control" type="text" id="xiumianT_ms" |
| | | style="float:left;width:40%;" /> |
| | | style="float: left; width: 40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | style="float:left;margin-left:5px;" onclick="sendTag('2')">确定修改</button> |
| | | style="float: left; margin-left: 5px;" |
| | | onclick="sendTag('2')">确定修改</button> |
| | | |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div style="width:60%; margin-left:20%;float:left;"> |
| | | <div style="width: 60%; margin-left: 20%; float: left;"> |
| | | <label for="gonglv_ms" |
| | | style="float:left;width:20%;line-height:37px;">标签功率:</label> |
| | | style="float: left; width: 20%; line-height: 37px;">标签功率:</label> |
| | | |
| | | <input class="form-control" type="text" id="gonglv_ms" |
| | | style="float:left;width:40%;" /> |
| | | style="float: left; width: 40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | style="float:left;margin-left:5px;" onclick="sendTag('3')">修改功率</button> |
| | | style="float: left; margin-left: 5px;" |
| | | onclick="sendTag('3')">修改功率</button> |
| | | <a> |
| | | <c:forEach var="i" begin="1" end="5"> </c:forEach> |
| | | </a> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div style="width:60%; margin-left:20%;float:left;"> |
| | | <div style="width: 60%; margin-left: 20%; float: left;"> |
| | | <label for="zhendongT_ms" |
| | | style="float:left;width:20%;line-height:37px;">振动时间:</label> |
| | | style="float: left; width: 20%; line-height: 37px;">振动时间:</label> |
| | | |
| | | <input class="form-control" type="text" id="zhendongT_ms" |
| | | style="float:left;width:40%;" /> |
| | | style="float: left; width: 40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | style="float:left;margin-left:5px;" onclick="sendTag('4')">下发振动</button> |
| | | style="float: left; margin-left: 5px;" |
| | | onclick="sendTag('4')">下发振动</button> |
| | | <a> |
| | | <c:forEach var="i" begin="1" end="5"> </c:forEach> |
| | | </a> |
| | |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div style="width:60%; margin-left:20%;float:left;"> |
| | | <div style="width: 60%; margin-left: 20%; float: left;"> |
| | | <label for="pinglv_ms" |
| | | style="float:left;width:20%;line-height:37px;">选择频率:</label> |
| | | style="float: left; width: 20%; line-height: 37px;">选择频率:</label> |
| | | |
| | | <select class="form-control form-control-lg" id="pinglv_ms" |
| | | style="float:left;width:40%;"> |
| | | style="float: left; width: 40%;"> |
| | | <option value="0.1">0.1</option> |
| | | <option value="1">1</option> |
| | | <option value="2">2</option> |
| | | <option value="5">5</option> |
| | | <option value="10">10</option> |
| | | <option value="20">20</option> |
| | | </select> |
| | | <!-- <input class="form-control" type="text" id="pinglv_ms" |
| | | style="float: left; width: 40%;" /> --> |
| | | <button type="button" class="btn btn-primary" |
| | | style="float:left;margin-left:5px;" onclick="sendTag('5')">修改频率</button> |
| | | style="float: left; margin-left: 5px;" |
| | | onclick="sendTag('5')">修改频率</button> |
| | | <a> |
| | | <c:forEach var="i" begin="1" end="5"> </c:forEach> |
| | | </a> |
| | |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div style="width:60%; margin-left:20%;float:left;"> |
| | | <div style="width: 60%; margin-left: 20%; float: left;"> |
| | | <label for="jiasu_ms" |
| | | style="float:left;width:20%;line-height:37px;">加速计值:</label> |
| | | style="float: left; width: 20%; line-height: 37px;">加速计值:</label> |
| | | |
| | | <input class="form-control" type="text" id="jiasu_ms" |
| | | style="float:left;width:40%;" /> |
| | | style="float: left; width: 40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | style="float:left;margin-left:5px;" onclick="sendTag('6')">修改阈值</button> |
| | | style="float: left; margin-left: 5px;" |
| | | onclick="sendTag('6')">修改阈值</button> |
| | | <a> |
| | | <c:forEach var="i" begin="1" end="5"> </c:forEach> |
| | | </a> |
| | |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div style="width:60%; margin-left:20%;float:left;"> |
| | | <div style="width: 60%; margin-left: 20%; float: left;"> |
| | | <label for="jignzhiT_ms" |
| | | style="float:left;width:20%;line-height:37px;">静止时间:</label> |
| | | style="float: left; width: 20%; line-height: 37px;">静止时间:</label> |
| | | |
| | | <input class="form-control" type="text" id="jignzhiT_ms" |
| | | style="float:left;width:40%;" /> |
| | | style="float: left; width: 40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | style="float:left;margin-left:5px;" onclick="sendTag('7')">确定修改</button> |
| | | style="float: left; margin-left: 5px;" |
| | | onclick="sendTag('7')">确定修改</button> |
| | | <a> |
| | | <c:forEach var="i" begin="1" end="5"> </c:forEach> |
| | | </a> |
| | |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div style="width:60%; margin-left:20%;float:left;"> |
| | | <div style="width: 60%; margin-left: 20%; float: left;"> |
| | | <input type="checkbox" name="sAdn" checked='checked' id="zhendong_ms" |
| | | style="float:left;margin-top:12px;"> |
| | | style="float: left; margin-top: 12px;"> |
| | | <label for="zhendong_ms" |
| | | style="float:left;width:40%;line-height:37px;margin-left:5px;">开启/关闭振动</label> |
| | | style="float: left; width: 40%; line-height: 37px; margin-left: 5px;">开启/关闭振动</label> |
| | | <a> |
| | | <c:forEach var="i" begin="1" end="5"> </c:forEach> |
| | | </a> |
| | | <button type="button" class="btn btn-primary" |
| | | style="float:left;margin-left:5px;" onclick="sendTag('8')">确定修改</button> |
| | | style="float: left; margin-left: 5px;" |
| | | onclick="sendTag('8')">确定修改</button> |
| | | </div> |
| | | </div> |
| | | <div class="modal-footer" style="margin-top:5%; margin-left:10%;float:left;"> |
| | | <div class="modal-footer" style="margin-top: 5%; margin-left: 10%; float: left;"> |
| | | <button type="button" class="btn btn-primary moreSettingSave">保存</button> |
| | | <a> |
| | | <c:forEach var="i" begin="1" end="40"> </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" |
| | | style="height:37px;"><svg |
| | | style="height: 37px;"><svg |
| | | xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" |
| | | stroke="currentColor" stroke-width="2" |
| | |
| | | </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> |
| | | <button type="button" class="btn btn-secondary reset">刷新</button> |
| | | <button type="button" class="btn btn-secondary" data-toggle="modal" |
| | | data-target=".addNew" id="addButton">新增</button> |
| | | <button type="button" class="btn btn-secondary initModify" |
| | | data-toggle="modal" data-target=".modifyNew" |
| | | id="modifyButton">修改</button> |
| | | <button type="button" class="btn btn-secondary delete" |
| | | id="deleteButton">删除</button> |
| | | <button type="button" class="btn btn-secondary deleteAll" |
| | | id="deleteAllButton">全部删除</button> |
| | | <button type="button" class="btn btn-secondary" data-toggle="modal" |
| | | data-target=".modifyAllNew" id="modifyAllButton">全部修改</button> |
| | | <!-- <input type="file" class="btn btn-secondary" id="importXls" style="width:15%;"> --> |
| | | <!-- <button type="button" class="btn btn-secondary importXls" id="importButton">导入标签</button> --> |
| | | <button type="button" class="btn btn-secondary" data-toggle="modal" |
| | | data-target=".importLable" id="importButton">导入标签</button> |
| | | <button type="button" |
| | | class="btn btn-secondary toAllExcel">导出表格</button> |
| | | <button type="button" |
| | | class="btn btn-secondary toExcel">下载模板</button> |
| | | <button type="button" class="btn btn-secondary moreSettingInit" |
| | | data-toggle="modal" data-target=".moreSetting">更多设置</button> |
| | | <div style="width: 100px; float: left; margin-right: 10px;"> |
| | | <select class="form-control form-control-lg" id="shaileixing" |
| | | style="font-size: 15px;" onchange="shaicha()"> |
| | | <option value="全部">所有类型</option> |
| | | <!--<c:forEach items="${leixing}" var="list"> |
| | | <option value="${list}">${list}</option> |
| | | </c:forEach>--> |
| | | <option value="人员标签">人员标签</option> |
| | | <option value="车辆标签">车辆标签</option> |
| | | <option value="物资标签">物资标签</option> |
| | | </select> |
| | | </div> |
| | | <div style="width: 100px; float: left; margin-right: 10px;"> |
| | | <select class="form-control form-control-lg" id="shaibumen" |
| | | style="font-size: 15px;" onchange="shaicha()"> |
| | | <option value="全部">所有部门</option> |
| | | <c:forEach items="${bumen}" var="list"> |
| | | <option value="${list}">${list}</option> |
| | | </c:forEach> |
| | | </select> |
| | | </div> |
| | | <div style="float: left;"> |
| | | <button type="button" |
| | | class="btn btn-secondary reset">刷新</button> |
| | | <button type="button" class="btn btn-secondary" |
| | | data-toggle="modal" data-target=".addNew" |
| | | id="addButton">新增</button> |
| | | <button type="button" class="btn btn-secondary initModify" |
| | | data-toggle="modal" data-target=".modifyNew" |
| | | id="modifyButton">修改</button> |
| | | <button type="button" class="btn btn-secondary delete" |
| | | id="deleteButton">删除</button> |
| | | <button type="button" class="btn btn-secondary deleteAll" |
| | | id="deleteAllButton">全部删除</button> |
| | | <button type="button" class="btn btn-secondary" |
| | | data-toggle="modal" data-target=".modifyAllNew" |
| | | id="modifyAllButton">全部修改</button> |
| | | <!-- <input type="file" class="btn btn-secondary" id="importXls" style="width:15%;"> --> |
| | | <!-- <button type="button" class="btn btn-secondary importXls" id="importButton">导入标签</button> --> |
| | | <button type="button" class="btn btn-secondary" |
| | | data-toggle="modal" data-target=".importLable" |
| | | id="importButton">导入标签</button> |
| | | <button type="button" |
| | | class="btn btn-secondary toAllExcel">导出表格</button> |
| | | <button type="button" |
| | | class="btn btn-secondary toExcel">下载模板</button> |
| | | <button type="button" class="btn btn-secondary moreSettingInit" |
| | | data-toggle="modal" data-target=".moreSetting">更多设置</button> |
| | | </div> |
| | | <div style="float: left;margin-left: 20px;width: 200px;"> |
| | | <div style="width: 50%;float: left;"> |
| | | <span style="color: #bfc9d4;height: 40%;">人员标签:${tongji[0]} 个</span> |
| | | </div> |
| | | <div style="width: 50%;float: left;"> |
| | | <span style="color: #bfc9d4;height: 40%;">车载标签:${tongji[1]} 个</span> |
| | | </div> |
| | | <br> |
| | | <div style="width: 50%;float: left;"> |
| | | <span style="color: #bfc9d4;height: 40%;">物资标签:${tongji[2]} 个</span> |
| | | </div> |
| | | <div style="width: 50%;float: left;"> |
| | | <span style="color: #bfc9d4;height: 40%;">未绑定:${tongji[3]} 个</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <thead> |
| | | <tr align="center"> |
| | |
| | | <th>速度限制cm/s</th> |
| | | <th>定位频率(HZ)</th> |
| | | <th>版本</th> |
| | | <th>类型</th> |
| | | <th>添加时间</th> |
| | | </tr> |
| | | </thead> |
| | |
| | | type="hidden" class="custom-control-input" |
| | | value="${list.tag_id}" name="tagids"><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 class="noExl"> |
| | | <c:choose> |
| | |
| | | </td> |
| | | <td>${list.tag_id}</td> |
| | | <td>${list.state}</td> |
| | | <td>${list.power}</td> |
| | | <%-- <td>${list.power}</td> --%> |
| | | <td> |
| | | <c:choose> |
| | | <c:when test="${list.power == -1}"> |
| | | 未知 |
| | | </c:when> |
| | | <c:otherwise> |
| | | ${list.power}% |
| | | </c:otherwise> |
| | | </c:choose> |
| | | </td> |
| | | <td>${list.gaodu}</td> |
| | | <td>${list.sudu}</td> |
| | | <td>${list.pinglv}</td> |
| | | <td>${list.version}</td> |
| | | <td>${list.type}</td> |
| | | <td>${list.addtime}</td> |
| | | </tr> |
| | | </c:forEach> |
| | |
| | | </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"); %> |
| | | <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 () { |
| | | 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; |
| | | var fenceq = document.getElementById("fenceq").value; |
| | | document.getElementById("xianuser").innerHTML=document.getElementById("xianusera").value |
| | | if (superuser == "访客") { |
| | | $("#addButton").attr("disabled", "true"); |
| | | $("#deleteButton").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); |
| | |
| | | 'error' |
| | | ) |
| | | return false; |
| | | } |
| | | } |
| | | var state = $("#state_a").val(); |
| | | var gaodu = $("#gaodu_a").val(); |
| | | var sudu = $("#sudu_a").val(); |
| | | var pinglv = $('#pinglv_a option:selected').val(); |
| | | // var pinglv = $('#pinglv_a option:selected').val(); |
| | | var pinglv = $('#pinglv_a').val(); |
| | | var type = $("#type").val(); |
| | | if (pinglv == "") { |
| | | pinglv = 1 |
| | | } |
| | | // if (pinglv < 0.1 || pinglv > 20) { |
| | | // swal('输入有误', '频率必须在0.1-20之间!', 'error'); return; |
| | | // } |
| | | if (gaodu != "" && isNaN(gaodu)) { |
| | | swal('输入有误', '高度为数字!', 'error'); return; |
| | | } else if (String(gaodu).indexOf(".") > -1) { |
| | |
| | | state: state, |
| | | gaodu: gaodu, |
| | | sudu: sudu, |
| | | pinglv: pinglv |
| | | pinglv: pinglv, |
| | | type: type |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | |
| | | $("#gaodu_m").val(tr.children[5].innerHTML); |
| | | $("#sudu_m").val(tr.children[6].innerHTML); |
| | | $("#pinglv_m").val(tr.children[7].innerHTML); |
| | | $("#typeg").val(tr.children[9].innerHTML); |
| | | return false; |
| | | } |
| | | |
| | | } |
| | | ); |
| | | if (!state) { |
| | |
| | | $("#gaodu_m").val(tr.children[5].innerHTML); |
| | | $("#sudu_m").val(tr.children[6].innerHTML); |
| | | $("#pinglv_m").val(tr.children[7].innerHTML); |
| | | $("#typeg").val(tr.children[9].innerHTML); |
| | | return false; |
| | | } |
| | | |
| | | } |
| | | ); |
| | | alert("请选中一条数据进行修改,当前默认第一条!"); |
| | |
| | | var state = $("#state_m").val(); |
| | | var gaodu = $("#gaodu_m").val(); |
| | | var sudu = $("#sudu_m").val(); |
| | | var pinglv = $('#pinglv_m option:selected').val(); |
| | | var pinglv = $('#pinglv_m').val(); |
| | | var type = $("#typeg").val(); |
| | | // if (pinglv < 0.1 || pinglv > 20) { |
| | | // swal('输入有误', '频率必须在0.1-20之间!', 'error'); return; |
| | | // } |
| | | if (isNaN(gaodu)) { |
| | | swal('输入有误', '高度为数字!', 'error'); return; |
| | | } |
| | |
| | | state: state, |
| | | gaodu: gaodu, |
| | | sudu: sudu, |
| | | pinglv: pinglv |
| | | pinglv: pinglv, |
| | | type: type |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | |
| | | $(".modifyAll").click(function () { |
| | | var gaodu = $("#gaodu_ma").val(); |
| | | var sudu = $("#sudu_ma").val(); |
| | | var pinglv = $('#pinglv_ma option:selected').val(); |
| | | var pinglv = $('#pinglv_ma').val(); |
| | | // if (pinglv < 0.1 || pinglv > 20) { |
| | | // swal('输入有误', '频率必须在0.1-20之间!', 'error'); return; |
| | | // } |
| | | if (isNaN(gaodu)) { |
| | | swal('输入有误', '高度为数字!', 'error'); return; |
| | | } |
| | |
| | | //搜索完成后刷新页面,只显示查到的部分 |
| | | var str = ""; |
| | | for (var k in data.dataList) { |
| | | if (data.dataList[k].status == '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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].tag_id + " name=\"tagids\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/tagoff.png\"/>" + "</td><td>" + data.dataList[k].tag_id + "</td><td>" + data.dataList[k].state + "</td><td>" + data.dataList[k].power + "</td><td>" + data.dataList[k].gaodu + "</td><td>" + data.dataList[k].sudu + "</td><td>" + data.dataList[k].pinglv + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].addtime + "</td></tr>"; |
| | | if(data.dataList[k].power == -1){ |
| | | data.dataList[k].power = "未知" |
| | | } 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].tag_id + " name=\"tagids\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/tagon.png\"/>" + "</td><td>" + data.dataList[k].tag_id + "</td><td>" + data.dataList[k].state + "</td><td>" + data.dataList[k].power + "</td><td>" + data.dataList[k].gaodu + "</td><td>" + data.dataList[k].sudu + "</td><td>" + data.dataList[k].pinglv + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].addtime + "</td></tr>"; |
| | | data.dataList[k].power = data.dataList[k].power+"%" |
| | | } |
| | | if (data.dataList[k].status == '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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].tag_id + " name=\"tagids\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/tagoff.png\"/>" + "</td><td>" + data.dataList[k].tag_id + "</td><td>" + data.dataList[k].state + "</td><td>" + data.dataList[k].power + "</td><td>" + data.dataList[k].gaodu + "</td><td>" + data.dataList[k].sudu + "</td><td>" + data.dataList[k].pinglv + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].addtime + "</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].tag_id + " name=\"tagids\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/tagon.png\"/>" + "</td><td>" + data.dataList[k].tag_id + "</td><td>" + data.dataList[k].state + "</td><td>" + data.dataList[k].power + "</td><td>" + data.dataList[k].gaodu + "</td><td>" + data.dataList[k].sudu + "</td><td>" + data.dataList[k].pinglv + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].addtime + "</td></tr>"; |
| | | } |
| | | } |
| | | $("#nr").html(str); |
| | |
| | | }); |
| | | // 导入标签 |
| | | $(document).ready(function () { |
| | | //return false; |
| | | var resultList = $("#resultList").val(); |
| | | //console.log(resultList) |
| | | if (resultList == '1') { |
| | |
| | | var gongfang = $("#gonglv_ms").val(); |
| | | var zhendongT_ms = $("#zhendongT_ms").val(); |
| | | var pinglv = $("#pinglv_ms").val(); |
| | | // if (pinglv < 0.1 || pinglv > 20) { |
| | | // swal('输入有误', '频率必须在0.1-20之间!', 'error'); return; |
| | | // } |
| | | var imu = $("#jiasu_ms").val(); |
| | | var jignzhiT_ms = $("#jignzhiT_ms").val(); |
| | | var dong_status = $("#zhendong_ms").val(); |
| | |
| | | } else if (tag == '5') { |
| | | // 5.修改标签的频率 |
| | | hz = $("#pinglv_ms").val(); |
| | | // if (hz < 0.1 || hz > 20) { |
| | | // swal('输入有误', '频率必须在0.1-20之间!', 'error'); return; |
| | | // } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | |
| | | success: function (data) { |
| | | var str = ""; |
| | | for (var k in data.dataList) { |
| | | if (data.dataList[k].status == '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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].tag_id + " name=\"tagids\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/tagoff.png\"/>" + "</td><td>" + data.dataList[k].tag_id + "</td><td>" + data.dataList[k].state + "</td><td>" + data.dataList[k].power + "</td><td>" + data.dataList[k].gaodu + "</td><td>" + data.dataList[k].sudu + "</td><td>" + data.dataList[k].pinglv + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].addtime + "</td></tr>"; |
| | | if(data.dataList[k].power == -1){ |
| | | data.dataList[k].power = "未知" |
| | | } 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].tag_id + " name=\"tagids\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/tagon.png\"/>" + "</td><td>" + data.dataList[k].tag_id + "</td><td>" + data.dataList[k].state + "</td><td>" + data.dataList[k].power + "</td><td>" + data.dataList[k].gaodu + "</td><td>" + data.dataList[k].sudu + "</td><td>" + data.dataList[k].pinglv + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].addtime + "</td></tr>"; |
| | | data.dataList[k].power = data.dataList[k].power+"%" |
| | | } |
| | | if (data.dataList[k].status == '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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].tag_id + " name=\"tagids\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/tagoff.png\"/>" + "</td><td>" + data.dataList[k].tag_id + "</td><td>" + data.dataList[k].state + "</td><td>" + data.dataList[k].power + "</td><td>" + data.dataList[k].gaodu + "</td><td>" + data.dataList[k].sudu + "</td><td>" + data.dataList[k].pinglv + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].addtime + "</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].tag_id + " name=\"tagids\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/tagon.png\"/>" + "</td><td>" + data.dataList[k].tag_id + "</td><td>" + data.dataList[k].state + "</td><td>" + data.dataList[k].power + "</td><td>" + data.dataList[k].gaodu + "</td><td>" + data.dataList[k].sudu + "</td><td>" + data.dataList[k].pinglv + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].addtime + "</td></tr>"; |
| | | } |
| | | } |
| | | $("#nr").html(str); |
| | |
| | | }); |
| | | } |
| | | |
| | | function shaicha() { |
| | | var leixing = $("#shaileixing").val(); |
| | | var bumen = $("#shaibumen").val(); |
| | | if (leixing == '全部' && bumen == '全部') { |
| | | window.location.reload(); |
| | | } else { |
| | | $.ajax({ |
| | | url: 'shailabel.do', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | | leixing: leixing, |
| | | bumen: bumen |
| | | }, |
| | | success: function (data) { |
| | | var str = ""; |
| | | for (var k in data.dataList) { |
| | | if(data.dataList[k].power == -1){ |
| | | data.dataList[k].power = "未知" |
| | | } else { |
| | | data.dataList[k].power = data.dataList[k].power+"%" |
| | | } |
| | | if (data.dataList[k].status == '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\"><input type=\"hidden\" class=\"custom-control-input\" value=" + data.dataList[k].tag_id + " name=\"tagids\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/tagoff.png\"/>" + "</td><td>" + data.dataList[k].tag_id + "</td><td>" + data.dataList[k].state + "</td><td>" + data.dataList[k].power + "</td><td>" + data.dataList[k].gaodu + "</td><td>" + data.dataList[k].sudu + "</td><td>" + data.dataList[k].pinglv + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].addtime + "</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].tag_id + " name=\"tagids\"><label class=\"custom-control-label\" for=" + data.dataList[k].id + " style=\"position:raletive;left:20px;bottom:5px;\"></label></td><td class=\"noExl\">" + "<img src=\"hxzk/image/icon/tagon.png\"/>" + "</td><td>" + data.dataList[k].tag_id + "</td><td>" + data.dataList[k].state + "</td><td>" + data.dataList[k].power + "</td><td>" + data.dataList[k].gaodu + "</td><td>" + data.dataList[k].sudu + "</td><td>" + data.dataList[k].pinglv + "</td><td>" + data.dataList[k].version + "</td><td>" + data.dataList[k].type + "</td><td>" + data.dataList[k].addtime + "</td></tr>"; |
| | | } |
| | | } |
| | | $("#nr").html(str); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | $(".table tbody").on('click', 'tr', function (e) { |
| | | if (e.target.type != 'checkbox') { |
| | | if ($(this).find(":checkbox").prop("checked") == true) { |