| | |
| | | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %> |
| | | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
| | | <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> |
| | | <html lang="en"> |
| | | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
| | | <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> |
| | | <html lang="en"> |
| | | |
| | | <head> |
| | | <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> |
| | | <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="/hxzkoa/hxzk/assets/css/components/custom-sweetalert.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/dashboard/dash_2.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/elements/custom-pagination.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/loader.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/scrollspyNav.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/main.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/structure.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/elements/search.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/apex/apexcharts.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/animate/animate.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/highlight/styles/monokai-sublime.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert2.min.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/datatables.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/custom_dt_html5.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/dt-global_style.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/perfect-scrollbar/perfect-scrollbar.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="https://fonts.gstatic.com" rel="preconnect"> |
| | | <link href="https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap" rel="stylesheet"> |
| | | <link href="https://fonts.googleapis.com/css?family=Quicksand:400,500,600,700&display=swap" |
| | | rel="stylesheet"> |
| | | <style> |
| | | .panel-head { |
| | | font-size: 1rem; |
| | | color: rgba(255, 255, 255, .7); |
| | | line-height: 2rem; |
| | | text-align: center; |
| | | background: linear-gradient(rgb(0, 20, 30), rgb(0, 40, 70)); |
| | | border: 2px solid rgba(0, 90, 120, .3); |
| | | } |
| | | <head> |
| | | <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> |
| | | <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="/hxzkoa/hxzk/assets/css/components/custom-sweetalert.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/dashboard/dash_2.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/elements/custom-pagination.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/loader.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/scrollspyNav.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/main.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/structure.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/elements/search.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/apex/apexcharts.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/animate/animate.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/highlight/styles/monokai-sublime.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert2.min.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/datatables.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/custom_dt_html5.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/dt-global_style.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/perfect-scrollbar/perfect-scrollbar.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="https://fonts.gstatic.com" rel="preconnect"> |
| | | <link href="https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap" rel="stylesheet"> |
| | | <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; |
| | | } |
| | | |
| | | .table-bordered td, |
| | | .table-bordered th { |
| | | border: 1px solid #ebedf2; |
| | | } |
| | | </style> |
| | | <script src="/hxzkoa/hxzk/assets/js/app.js"></script> |
| | | <script src="/hxzkoa/hxzk/assets/js/dashboard/dash_2.js"></script> |
| | | <script src="/hxzkoa/hxzk/assets/js/loader.js"></script> |
| | | <script src="/hxzkoa/hxzk/assets/js/libs/jquery-3.1.1.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/bootstrap/js/bootstrap.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/bootstrap/js/popper.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/apex/apexcharts.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/table/datatable/button-ext/jszip.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/table/jquery.table2excel.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/sweetalerts/promise-polyfill.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert2.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/sweetalerts/custom-sweetalert.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/perfect-scrollbar/perfect-scrollbar.min.js"></script> |
| | | </head> |
| | | #head { |
| | | background-color: #FFFF00; |
| | | width: 100%; |
| | | height: 100px; |
| | | } |
| | | |
| | | <body class="alt-menu sidebar-noneoverflow"> |
| | | <!-- BEGIN LOADER --> |
| | | <div id="load_screen"> |
| | | <div class="loader"> |
| | | <div class="loader-content"> |
| | | <div class="spinner-grow align-self-center"></div> |
| | | #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); |
| | | line-height: 2rem; |
| | | text-align: center; |
| | | background: linear-gradient(rgb(0, 20, 30), rgb(0, 40, 70)); |
| | | border: 2px solid rgba(0, 90, 120, .3); |
| | | } |
| | | |
| | | .table-bordered td, |
| | | .table-bordered th { |
| | | border: 1px solid #ebedf2; |
| | | } |
| | | </style> |
| | | <script src="/hxzkoa/hxzk/assets/js/app.js"></script> |
| | | <script src="/hxzkoa/hxzk/assets/js/dashboard/dash_2.js"></script> |
| | | <script src="/hxzkoa/hxzk/assets/js/loader.js"></script> |
| | | <script src="/hxzkoa/hxzk/assets/js/libs/jquery-3.1.1.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/bootstrap/js/bootstrap.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/bootstrap/js/popper.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/apex/apexcharts.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/table/datatable/button-ext/jszip.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/table/jquery.table2excel.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/sweetalerts/promise-polyfill.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert2.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/sweetalerts/custom-sweetalert.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/perfect-scrollbar/perfect-scrollbar.min.js"></script> |
| | | </head> |
| | | |
| | | <body class="alt-menu sidebar-noneoverflow"> |
| | | <!-- BEGIN LOADER --> |
| | | <div id="load_screen"> |
| | | <div class="loader"> |
| | | <div class="loader-content"> |
| | | <div class="spinner-grow align-self-center"></div> |
| | | </div> |
| | | </div> |
| | | </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> |
| | | <!-- BEGIN NAVBAR --> |
| | | <div class="login-page"></div> |
| | | <!-- END NAVBAR --> |
| | | <!-- BEGIN MAIN CONTAINER --> |
| | | <div class="main-container" id="container"> |
| | | <div class="overlay"></div> |
| | | <div class="search-overlay"></div> |
| | | <!-- BEGIN TOPBAR --> |
| | | <div class="header-page"></div> |
| | | <!-- END TOPBAR --> |
| | | <!-- 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-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">新增</h5> |
| | | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| | | stroke-width="2" stroke-linecap="round" stroke-linejoin="round" |
| | | class="feather feather-x"> |
| | | <line x1="18" y1="6" x2="6" y2="18"></line> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line> |
| | | </svg> |
| | | </button> |
| | | </div> |
| | | <div class="modal-body"> |
| | | <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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="tag_id_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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="state_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> |
| | | <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="工牌标签">工牌标签</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> |
| | | |
| | | <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> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </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-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">修改</h5> |
| | | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| | | stroke-width="2" stroke-linecap="round" stroke-linejoin="round" |
| | | class="feather feather-x"> |
| | | <line x1="18" y1="6" x2="6" y2="18"></line> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line> |
| | | </svg> |
| | | </button> |
| | | </div> |
| | | <div class="modal-body"> |
| | | <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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="tag_id_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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="state_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> |
| | | <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="工牌标签">工牌标签</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> |
| | | <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="sudu_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> |
| | | <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;"> |
| | | <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> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </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-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">全部修改</h5> |
| | | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| | | stroke-width="2" stroke-linecap="round" stroke-linejoin="round" |
| | | class="feather feather-x"> |
| | | <line x1="18" y1="6" x2="6" y2="18"></line> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line> |
| | | </svg> |
| | | </button> |
| | | </div> |
| | | <div class="modal-body"> |
| | | <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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" value="修改全部标签" |
| | | disabled="disabled" /> |
| | | </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" value="修改全部标签" |
| | | disabled="disabled" /> |
| | | </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_ma" /> |
| | | </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="sudu_ma" /> |
| | | </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"> |
| | | <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;"> |
| | | <button type="button" class="btn btn-primary modifyAll">保存</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> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </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-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">导入标签</h5> |
| | | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| | | stroke-width="2" stroke-linecap="round" stroke-linejoin="round" |
| | | class="feather feather-x"> |
| | | <line x1="18" y1="6" x2="6" y2="18"></line> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line> |
| | | </svg> |
| | | </button> |
| | | </div> |
| | | <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;"> |
| | | <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;"> |
| | | <button type="submit" class="btn btn-primary">保存</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> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </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-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">更多设置</h5> |
| | | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| | | stroke-width="2" stroke-linecap="round" stroke-linejoin="round" |
| | | class="feather feather-x"> |
| | | <line x1="18" y1="6" x2="6" y2="18"></line> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line> |
| | | </svg> |
| | | </button> |
| | | </div> |
| | | <div class="modal-body"> |
| | | <div> |
| | | <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> |
| | | <select class="form-control form-control-lg" id="tagId_ms" |
| | | style="float: left; width: 60%;"> |
| | | <option value="ALL">所有标签</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> |
| | | <c:forEach var="i" begin="1" end="5"> </c:forEach> |
| | | </a> |
| | | <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;"> |
| | | <label for="xiumianT_ms" |
| | | style="float: left; width: 20%; line-height: 37px;">休眠时间:</label> |
| | | <input class="form-control" type="text" id="xiumianT_ms" |
| | | style="float: left; width: 40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | style="float: left; margin-left: 5px;" |
| | | onclick="sendTag('2')">确定修改</button> |
| | | |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div style="width: 60%; margin-left: 20%; float: left;"> |
| | | <label for="gonglv_ms" |
| | | style="float: left; width: 20%; line-height: 37px;">标签功率:</label> |
| | | |
| | | <input class="form-control" type="text" id="gonglv_ms" |
| | | style="float: left; width: 40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | 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;"> |
| | | <label for="zhendongT_ms" |
| | | style="float: left; width: 20%; line-height: 37px;">振动时间:</label> |
| | | |
| | | <input class="form-control" type="text" id="zhendongT_ms" |
| | | style="float: left; width: 40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | 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;"> |
| | | <label for="pinglv_ms" |
| | | style="float: left; width: 20%; line-height: 37px;">选择频率:</label> |
| | | |
| | | <select class="form-control form-control-lg" id="pinglv_ms" |
| | | 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> |
| | | <a> |
| | | <c:forEach var="i" begin="1" end="5"> </c:forEach> |
| | | </a> |
| | | |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div style="width: 60%; margin-left: 20%; float: left;"> |
| | | <label for="jiasu_ms" |
| | | style="float: left; width: 20%; line-height: 37px;">加速计值:</label> |
| | | |
| | | <input class="form-control" type="text" id="jiasu_ms" |
| | | style="float: left; width: 40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | 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;"> |
| | | <label for="jignzhiT_ms" |
| | | style="float: left; width: 20%; line-height: 37px;">静止时间:</label> |
| | | |
| | | <input class="form-control" type="text" id="jignzhiT_ms" |
| | | style="float: left; width: 40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | 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;"> |
| | | <input type="checkbox" name="sAdn" checked='checked' id="zhendong_ms" |
| | | style="float: left; margin-top: 12px;"> |
| | | <label for="zhendong_ms" |
| | | 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> |
| | | </div> |
| | | </div> |
| | | <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> |
| | | </a> |
| | | <button class="btn" data-dismiss="modal"> |
| | | <i class="flaticon-cancel-12"></i> 取消 |
| | | </button> |
| | | </div> |
| | | </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> |
| | | <!-- BEGIN NAVBAR --> |
| | | <div class="login-page"></div> |
| | | <!-- END NAVBAR --> |
| | | <!-- BEGIN MAIN CONTAINER --> |
| | | <div class="main-container" id="container"> |
| | | <div class="overlay"></div> |
| | | <div class="search-overlay"></div> |
| | | <!-- BEGIN TOPBAR --> |
| | | <div class="header-page"></div> |
| | | <!-- END TOPBAR --> |
| | | <!-- 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-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">新增</h5> |
| | | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| | | stroke-width="2" stroke-linecap="round" stroke-linejoin="round" |
| | | class="feather feather-x"> |
| | | <line x1="18" y1="6" x2="6" y2="18"></line> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line> |
| | | </svg> |
| | | </button> |
| | | </div> |
| | | <div class="modal-body"> |
| | | <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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="tag_id_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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="state_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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="gaodu_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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="sudu_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> |
| | | <div class="col-sm-10"> |
| | | <select class="form-control form-control-lg" id="pinglv_a"> |
| | | <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> |
| | | </div> |
| | | </div> |
| | | <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> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </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-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">修改</h5> |
| | | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| | | stroke-width="2" stroke-linecap="round" stroke-linejoin="round" |
| | | class="feather feather-x"> |
| | | <line x1="18" y1="6" x2="6" y2="18"></line> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line> |
| | | </svg> |
| | | </button> |
| | | </div> |
| | | <div class="modal-body"> |
| | | <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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="tag_id_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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="state_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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="gaodu_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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="sudu_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> |
| | | <div class="col-sm-10"> |
| | | <select class="form-control form-control-lg" id="pinglv_m"> |
| | | <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> |
| | | </div> |
| | | </div> |
| | | <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> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </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-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">全部修改</h5> |
| | | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| | | stroke-width="2" stroke-linecap="round" stroke-linejoin="round" |
| | | class="feather feather-x"> |
| | | <line x1="18" y1="6" x2="6" y2="18"></line> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line> |
| | | </svg> |
| | | </button> |
| | | </div> |
| | | <div class="modal-body"> |
| | | <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> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" value="修改全部标签" |
| | | disabled="disabled" /> |
| | | </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" value="修改全部标签" |
| | | disabled="disabled" /> |
| | | </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_ma" /> |
| | | </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="sudu_ma" /> |
| | | </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"> |
| | | <select class="form-control form-control-lg" id="pinglv_ma"> |
| | | <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> |
| | | </div> |
| | | </div> |
| | | <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> |
| | | </a> |
| | | <button class="btn" data-dismiss="modal"> |
| | | <i class="flaticon-cancel-12"></i> 取消 |
| | | </button> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </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-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">导入标签</h5> |
| | | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| | | stroke-width="2" stroke-linecap="round" stroke-linejoin="round" |
| | | class="feather feather-x"> |
| | | <line x1="18" y1="6" x2="6" y2="18"></line> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line> |
| | | </svg> |
| | | </button> |
| | | </div> |
| | | <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;"> |
| | | <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;"> |
| | | <button type="submit" class="btn btn-primary">保存</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> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </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-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="myExtraLargeModalLabel">更多设置</h5> |
| | | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| | | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" |
| | | height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| | | stroke-width="2" stroke-linecap="round" stroke-linejoin="round" |
| | | class="feather feather-x"> |
| | | <line x1="18" y1="6" x2="6" y2="18"></line> |
| | | <line x1="6" y1="6" x2="18" y2="18"></line> |
| | | </svg> |
| | | </button> |
| | | </div> |
| | | <div class="modal-body"> |
| | | <div> |
| | | <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> |
| | | <select class="form-control form-control-lg" id="tagId_ms" |
| | | style="float:left;width:60%;"> |
| | | <option value="ALL">所有标签</option> |
| | | <option value="1048">1048</option> |
| | | <option value="1099">1099</option> |
| | | </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> |
| | | <c:forEach var="i" begin="1" end="5"> </c:forEach> |
| | | </a> |
| | | <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;"> |
| | | <label for="xiumianT_ms" |
| | | style="float:left;width:20%;line-height:37px;">休眠时间:</label> |
| | | <input class="form-control" type="text" id="xiumianT_ms" |
| | | style="float:left;width:40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | style="float:left;margin-left:5px;" onclick="sendTag('2')">确定修改</button> |
| | | |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div style="width:60%; margin-left:20%;float:left;"> |
| | | <label for="gonglv_ms" |
| | | style="float:left;width:20%;line-height:37px;">标签功率:</label> |
| | | |
| | | <input class="form-control" type="text" id="gonglv_ms" |
| | | style="float:left;width:40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | 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;"> |
| | | <label for="zhendongT_ms" |
| | | style="float:left;width:20%;line-height:37px;">振动时间:</label> |
| | | |
| | | <input class="form-control" type="text" id="zhendongT_ms" |
| | | style="float:left;width:40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | 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;"> |
| | | <label for="pinglv_ms" |
| | | style="float:left;width:20%;line-height:37px;">选择频率:</label> |
| | | |
| | | <select class="form-control form-control-lg" id="pinglv_ms" |
| | | style="float:left;width:40%;"> |
| | | <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> |
| | | <button type="button" class="btn btn-primary" |
| | | 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;"> |
| | | <label for="jiasu_ms" |
| | | style="float:left;width:20%;line-height:37px;">加速计值:</label> |
| | | |
| | | <input class="form-control" type="text" id="jiasu_ms" |
| | | style="float:left;width:40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | 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;"> |
| | | <label for="jignzhiT_ms" |
| | | style="float:left;width:20%;line-height:37px;">静止时间:</label> |
| | | |
| | | <input class="form-control" type="text" id="jignzhiT_ms" |
| | | style="float:left;width:40%;" /> |
| | | <button type="button" class="btn btn-primary" |
| | | 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;"> |
| | | <input type="checkbox" name="sAdn" checked='checked' id="zhendong_ms" |
| | | style="float:left;margin-top:12px;"> |
| | | <label for="zhendong_ms" |
| | | 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> |
| | | </div> |
| | | </div> |
| | | <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> |
| | | </a> |
| | | <button class="btn" data-dismiss="modal"> |
| | | <i class="flaticon-cancel-12"></i> 取消 |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- END MODAL --> |
| | | <!-- BEGIN CONTENT PART --> |
| | | <div id="content" class="main-content"> |
| | | <div class="layout-px-spacing"> |
| | | <div class="row layout-top-spacing" id="cancel-row"> |
| | | <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%"> |
| | | <div> |
| | | <div class="search-input-group-style input-group mb-3" |
| | | style="width:15%;float:left;margin-left:15px;margin-right:15px;"> |
| | | <div class="input-group-prepend"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- END MODAL --> |
| | | <!-- BEGIN CONTENT PART --> |
| | | <div id="content" class="main-content"> |
| | | <div class="layout-px-spacing"> |
| | | <div class="row layout-top-spacing" id="cancel-row"> |
| | | <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%"> |
| | | <div> |
| | | <div class="search-input-group-style input-group mb-3" |
| | | 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" |
| | |
| | | <circle cx="11" cy="11" r="8"></circle> |
| | | <line x1="21" y1="21" x2="16.65" y2="16.65"></line> |
| | | </svg></span> |
| | | </div> |
| | | <input type="text" id="search_input" class="form-control" |
| | | placeholder="请输入标签ID" 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> |
| | | <thead> |
| | | <tr align="center"> |
| | | <th class="noExl">选择</th> |
| | | <th class="noExl">状态</th> |
| | | <th>标签ID</th> |
| | | <th>绑定对象</th> |
| | | <th>电量%</th> |
| | | <th>佩戴高度/cm</th> |
| | | <th>速度限制cm/s</th> |
| | | <th>定位频率(HZ)</th> |
| | | <th>版本</th> |
| | | <th>添加时间</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody id="nr"> |
| | | <c:forEach items="${labelManagementList}" var="list"> |
| | | <tr align="center"> |
| | | <td class="noExl custom-control custom-checkbox"><input |
| | | type="checkbox" class="custom-control-input" |
| | | id="${list.id}" name="selectIds"><input |
| | | 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> |
| | | </td> |
| | | <td class="noExl"> |
| | | <c:choose> |
| | | <c:when test="${list.status == '0'}"> |
| | | <img src="hxzk/image/icon/tagoff.png" /> |
| | | </c:when> |
| | | <c:otherwise> |
| | | <img src="hxzk/image/icon/tagon.png" /> |
| | | </c:otherwise> |
| | | </c:choose> |
| | | </td> |
| | | <td>${list.tag_id}</td> |
| | | <td>${list.state}</td> |
| | | <td>${list.power}</td> |
| | | <td>${list.gaodu}</td> |
| | | <td>${list.sudu}</td> |
| | | <td>${list.pinglv}</td> |
| | | <td>${list.version}</td> |
| | | <td>${list.addtime}</td> |
| | | </tr> |
| | | </c:forEach> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | <div class="paginating-container pagination-solid"> |
| | | <input type="hidden" id="curPage" value="${curPage}"></input> |
| | | <ul class="pagination" id="pageListId"> |
| | | <li><a href="javascript:page('pre');">上一页</a></li> |
| | | <c:forEach items="${pageList}" var="list"> |
| | | <li id="page_${list}"><a |
| | | href="javascript:page('${list}');">${list}</a></li> |
| | | </c:forEach> |
| | | <li><a href="javascript:page('next');">下一页</a></li> |
| | | </ul> |
| | | </div> |
| | | <input type="text" id="search_input" class="form-control" |
| | | placeholder="请输入编号或姓名" aria-label="Username" |
| | | aria-describedby="basic-addon1"> |
| | | </div> |
| | | <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>--%> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <thead> |
| | | <tr align="center"> |
| | | <th class="noExl">选择</th> |
| | | <th class="noExl">状态</th> |
| | | <th>设备编号</th> |
| | | <th>绑定对象</th> |
| | | <th>电量</th> |
| | | <th>佩戴高度/cm</th> |
| | | <th>频率/HZ</th> |
| | | <th>版本</th> |
| | | <th>设备类型</th> |
| | | <th>更新时间</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody id="nr"> |
| | | <c:forEach items="${labelManagementList}" var="list"> |
| | | <tr align="center"> |
| | | <td class="noExl custom-control custom-checkbox"><input |
| | | type="checkbox" class="custom-control-input" |
| | | id="${list.id}" name="selectIds"><input |
| | | 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> |
| | | </td> |
| | | <td class="noExl"> |
| | | <c:choose> |
| | | <c:when test="${list.status == '0'}"> |
| | | <img src="hxzk/image/icon/tagoff.png" /> |
| | | </c:when> |
| | | <c:otherwise> |
| | | <img src="hxzk/image/icon/tagon.png" /> |
| | | </c:otherwise> |
| | | </c:choose> |
| | | </td> |
| | | <td>${list.tag_id}</td> |
| | | <td>${list.state}</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.pinglv}</td> |
| | | <td> |
| | | <c:choose> |
| | | <c:when test="${list.version == 'null'}"> |
| | | 未知 |
| | | </c:when> |
| | | <c:otherwise> |
| | | ${list.version} |
| | | </c:otherwise> |
| | | </c:choose> |
| | | </td> |
| | | <td>${list.type}</td> |
| | | <td>${list.addtime}</td> |
| | | </tr> |
| | | </c:forEach> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | <!-- END CONTENT PART --> |
| | | <div class="paginating-container pagination-solid"> |
| | | <input type="hidden" id="curPage" value="${curPage}"></input> |
| | | <ul class="pagination" id="pageListId"> |
| | | <li><a href="javascript:page('pre');">上一页</a></li> |
| | | <c:forEach items="${pageList}" var="list"> |
| | | <li id="page_${list}"><a |
| | | href="javascript:page('${list}');">${list}</a></li> |
| | | </c:forEach> |
| | | <li><a href="javascript:page('next');">下一页</a></li> |
| | | </ul> |
| | | </div> |
| | | </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%>"> |
| | | <!-- 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; }, }); |
| | | $("#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; |
| | | if (superuser == "访客") { |
| | | $("#addButton").attr("disabled", "true"); |
| | | $("#deleteButton").attr("disabled", "true"); |
| | | $("#modifyButton").attr("disabled", "true"); |
| | | $("#deleteAllButton").attr("disabled", "true"); |
| | | $("#modifyAllButton").attr("disabled", "true"); |
| | | $("#importButton").attr("disabled", "true"); |
| | | } |
| | | if (deleteq == "否") { |
| | | $("#deleteButton").attr("disabled", "true"); |
| | | } |
| | | if (alertq == "否") { |
| | | $("#modifyButton").attr("disabled", "true"); |
| | | $("#modifyAllButton").attr("disabled", "true"); |
| | | } |
| | | if (deleteall == "否") { |
| | | $("#deleteAllButton").attr("disabled", "true"); |
| | | } |
| | | }); |
| | | // 加载head复用页面 |
| | | $('.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 tag_id = $("#tag_id_a").val(); |
| | | var sre = ""; |
| | | $.ajax({ |
| | | async: false, |
| | | type: "POST", |
| | | url: "/hxzkoa/labeltag_id_search.do", |
| | | data: { |
| | | tag_id: tag_id |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | sre = data |
| | | } |
| | | }); |
| | | if (sre == 1) { |
| | | swal( |
| | | '添加失败!', |
| | | '该标签已存在', |
| | | '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(); |
| | | if (gaodu != "" && isNaN(gaodu)) { |
| | | swal('输入有误', '高度为数字!', 'error'); return; |
| | | } else if (String(gaodu).indexOf(".") > -1) { |
| | | swal('输入有误', '高度为整数!', 'error'); return; |
| | | } |
| | | if (sudu != "" && isNaN(sudu)) { |
| | | swal('输入有误', '速度为数字!', 'error'); return; |
| | | } else if (String(sudu).indexOf(".") > -1) { |
| | | swal('输入有误', '速度为整数!', 'error'); return; |
| | | } |
| | | if (!tag_id) { |
| | | swal('输入有误', '请输入标签ID!', 'error'); return; |
| | | } |
| | | if (state != "" && !state) { |
| | | swal('输入有误', '请补全内容!', 'error'); return; |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_add.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | state: state, |
| | | gaodu: gaodu, |
| | | sudu: sudu, |
| | | pinglv: pinglv |
| | | }, |
| | | 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 () { |
| | | state = $(this).prop('checked'); |
| | | if (state) { |
| | | firstId = $(this).attr('id'); |
| | | tr = $(this).parent().parent()[0]; |
| | | $("#tag_id_m").val(tr.children[2].innerHTML); |
| | | $("#state_m").val(tr.children[3].innerHTML); |
| | | $("#gaodu_m").val(tr.children[5].innerHTML); |
| | | $("#sudu_m").val(tr.children[6].innerHTML); |
| | | $("#pinglv_m").val(tr.children[7].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]; |
| | | $("#tag_id_m").val(tr.children[2].innerHTML); |
| | | $("#state_m").val(tr.children[3].innerHTML); |
| | | $("#gaodu_m").val(tr.children[5].innerHTML); |
| | | $("#sudu_m").val(tr.children[6].innerHTML); |
| | | $("#pinglv_m").val(tr.children[7].innerHTML); |
| | | return false; |
| | | } |
| | | |
| | | } |
| | | ); |
| | | alert("请选中一条数据进行修改,当前默认第一条!"); |
| | | } |
| | | }); |
| | | // 修改功能 |
| | | $('.modify').on('click', function () { |
| | | var tag_id = $("#tag_id_m").val(); |
| | | var state = $("#state_m").val(); |
| | | var gaodu = $("#gaodu_m").val(); |
| | | var sudu = $("#sudu_m").val(); |
| | | var pinglv = $('#pinglv_m option:selected').val(); |
| | | if (isNaN(gaodu)) { |
| | | swal('输入有误', '高度为数字!', 'error'); return; |
| | | } |
| | | if (isNaN(sudu)) { |
| | | swal('输入有误', '速度为数字!', 'error'); return; |
| | | } |
| | | if (!tag_id) { |
| | | swal('输入有误', '请补全内容!', 'error'); return; |
| | | } |
| | | if (!state) { |
| | | swal('输入有误', '请补全内容!', 'error'); return; |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_modify.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | state: state, |
| | | gaodu: gaodu, |
| | | sudu: sudu, |
| | | pinglv: pinglv |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | swal({ |
| | | title: "Modified!", |
| | | text: "修改成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 全部修改 |
| | | $(".modifyAll").click(function () { |
| | | var gaodu = $("#gaodu_ma").val(); |
| | | var sudu = $("#sudu_ma").val(); |
| | | var pinglv = $('#pinglv_ma option:selected').val(); |
| | | if (isNaN(gaodu)) { |
| | | swal('输入有误', '高度为数字!', 'error'); return; |
| | | } |
| | | if (isNaN(sudu)) { |
| | | swal('输入有误', '速度为数字!', 'error'); return; |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_modifyAll.do", |
| | | data: { |
| | | gaodu: gaodu, |
| | | sudu: sudu, |
| | | pinglv: pinglv |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | swal({ |
| | | title: "Modified!", |
| | | text: "修改成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | 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 obj = document.getElementsByName("selectIds"); |
| | | var tagids = document.getElementsByName("tagids"); |
| | | for (var k in obj) { |
| | | if (obj[k].checked) { |
| | | checkVal.push(tagids[k].value); |
| | | } |
| | | } |
| | | if (checkVal.length > 0) { |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_delete.do", |
| | | data: { |
| | | checkVal: checkVal.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({ |
| | | title: '确定要全部删除么?', |
| | | text: "删除之后无法恢复!", |
| | | type: 'warning', |
| | | showCancelButton: true, |
| | | confirmButtonText: '删除', |
| | | cancelButtonText: '取消', |
| | | padding: '2em' |
| | | }).then(function (result) { |
| | | if (result.value) { |
| | | //获取选中数据 |
| | | var checkVal = []; |
| | | var obj = document.getElementsByName("selectIds"); |
| | | for (var k in obj) { |
| | | if (obj[k].checked) { |
| | | checkVal.push(obj[k].id); |
| | | } |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_deleteAll.do", |
| | | data: { |
| | | checkVal: checkVal.toString() |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | swal({ |
| | | title: "Deleted!", |
| | | text: "删除成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | } |
| | | }) |
| | | }); |
| | | // 搜索功能 |
| | | $(".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/labelManagement_search.do", |
| | | data: { |
| | | input: input |
| | | }, |
| | | dataType: "json", |
| | | 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>"; |
| | | } 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>"; |
| | | } |
| | | } |
| | | $("#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'); |
| | | } |
| | | }); |
| | | }); |
| | | // 导出表格 |
| | | $(".toAllExcel").click(function () { |
| | | window.location.href = '/hxzkoa/labelManagement_export.do'; |
| | | swal({ |
| | | title: "Exported!", |
| | | text: "导出成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 下载模板 |
| | | $(".toExcel").click(function () { |
| | | window.location.href = '/hxzkoa/labelManagement_exportTemplate.do'; |
| | | swal({ |
| | | title: "Exported!", |
| | | text: "导出成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false, |
| | | timer: 1000 |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 导入标签 |
| | | $(document).ready(function () { |
| | | var resultList = $("#resultList").val(); |
| | | //console.log(resultList) |
| | | if (resultList == '1') { |
| | | swal({ |
| | | title: "Imported!", |
| | | text: "导入成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("history.go(-1)", 2000); |
| | | } else if (resultList == '0') { |
| | | swal( |
| | | '导入失败!', |
| | | '无法获取文件', |
| | | 'error' |
| | | ) |
| | | setTimeout("history.go(-1)", 2000); |
| | | } |
| | | }); |
| | | // 更多设置 初始化 |
| | | $(".moreSettingInit").click(function () { |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_tagid.do", |
| | | dataType: "json", |
| | | success: function (data) { |
| | | $("#tagId_ms").empty(); |
| | | option = $("<option>").val('ALL').text('全部标签'); |
| | | $("#tagId_ms").append(option); |
| | | for (var i = 0; i < data.dataList.length; i++) { |
| | | option = $("<option>").val(data.dataList[i]).text(data.dataList[i]); |
| | | $("#tagId_ms").append(option); |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | // 更多设置 保存 |
| | | $(".moreSettingSave").click(function () { |
| | | var tag_id = $('#tagId_ms option:selected').val(); |
| | | if (tag_id == 'ALL') { |
| | | var res = confirm("是否全部保存?"); |
| | | if (!res) { |
| | | return |
| | | } |
| | | } |
| | | var sleep_satus = $("#xiumian_ms").val(); |
| | | if (sleep_satus == 'on') { |
| | | sleep_satus = '1' |
| | | } else { |
| | | sleep_satus = '0' |
| | | } |
| | | var sleep_time = $("#xiumianT_ms").val(); |
| | | var gongfang = $("#gonglv_ms").val(); |
| | | var zhendongT_ms = $("#zhendongT_ms").val(); |
| | | var pinglv = $("#pinglv_ms").val(); |
| | | var imu = $("#jiasu_ms").val(); |
| | | var jignzhiT_ms = $("#jignzhiT_ms").val(); |
| | | var dong_status = $("#zhendong_ms").val(); |
| | | if (dong_status == 'on') { |
| | | dong_status = '1' |
| | | } else { |
| | | dong_status = '0' |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_more.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | sleep_satus: sleep_satus, |
| | | sleep_time: sleep_time, |
| | | gongfang: gongfang, |
| | | pinglv: pinglv, |
| | | imu: imu, |
| | | dong_status: dong_status |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | swal({ |
| | | title: "Modified!", |
| | | text: "保存成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 发送指令 |
| | | function sendTag(tag) { |
| | | var tag_id = $('#tagId_ms option:selected').val(); |
| | | var hz; |
| | | if (tag == '1') { |
| | | // 1.开启或者关闭标签休眠 |
| | | var sleep_satus = $("#xiumian_ms").val(); |
| | | if (sleep_satus == 'on') { |
| | | hz = '1' |
| | | } else { |
| | | hz = '0' |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/to_cs_xiumian_.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | hz: hz |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | } else if (tag == '2') { |
| | | // 2.修改标签休眠时间 |
| | | hz = $("#xiumianT_ms").val(); |
| | | if (hz == "") { swal('输入有误', '休眠时间不能为空!', 'error'); return; } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/to_cs_xiumian_time.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | hz: hz |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | } else if (tag == '3') { |
| | | // 3.修改标签的功率 |
| | | hz = $("#gonglv_ms").val(); |
| | | if (hz == "") { swal('输入有误', '标签功率不能为空!', 'error'); return; } |
| | | } else if (tag == '4') { |
| | | // 4.下发标签振动 |
| | | hz = $("#zhendongT_ms").val(); |
| | | if (hz == "") { swal('输入有误', '振动时间不能为空!', 'error'); return; } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/to_cs_zhendong_.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | hz: hz |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | } else if (tag == '5') { |
| | | // 5.修改标签的频率 |
| | | hz = $("#pinglv_ms").val(); |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/to_cs_pinlv.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | hz: hz |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | } else if (tag == '6') { |
| | | // 6.修改加速度计阈值 |
| | | hz = $("#jiasu_ms").val(); |
| | | if (hz == "") { swal('输入有误', '加速计值不能为空!', 'error'); return; } |
| | | } else if (tag == '7') { |
| | | // 7.修改静止时间 |
| | | hz = $("#jignzhiT_ms").val(); |
| | | if (hz == "") { swal('输入有误', '静止时间不能为空!', 'error'); return; } |
| | | } else if (tag == '8') { |
| | | // 8.开启或者关闭标签振动功能 |
| | | var dong_status = $("#zhendong_ms").val(); |
| | | if (dong_status == 'on') { |
| | | hz = '1' |
| | | } else { |
| | | hz = '0' |
| | | } |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_tag.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | tag: tag, |
| | | hz: hz |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | //console.log(data) |
| | | swal({ |
| | | title: "Saved!", |
| | | text: data.result, |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false, |
| | | timer: 1000 |
| | | }) |
| | | } |
| | | }); |
| | | </div> |
| | | </div> |
| | | </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"); 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> |
| | | // 页面初始化 |
| | | 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"); |
| | | $("#modifyButton").attr("disabled", "true"); |
| | | $("#deleteAllButton").attr("disabled", "true"); |
| | | $("#modifyAllButton").attr("disabled", "true"); |
| | | $("#importButton").attr("disabled", "true"); |
| | | } |
| | | if (deleteq == "否") { |
| | | $("#deleteButton").attr("disabled", "true"); |
| | | } |
| | | if (alertq == "否") { |
| | | $("#modifyButton").attr("disabled", "true"); |
| | | $("#modifyAllButton").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'); |
| | | // 刷新功能 |
| | | $(".reset").click(function () { |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 新增功能 |
| | | $('.add').on('click', function () { |
| | | var tag_id = $("#tag_id_a").val(); |
| | | var sre = ""; |
| | | $.ajax({ |
| | | async: false, |
| | | type: "POST", |
| | | url: "/hxzkoa/labeltag_id_search.do", |
| | | data: { |
| | | tag_id: tag_id |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | sre = data |
| | | } |
| | | }); |
| | | if (sre == 1) { |
| | | swal( |
| | | '添加失败!', |
| | | '该标签已存在', |
| | | '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').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) { |
| | | swal('输入有误', '高度为整数!', 'error'); return; |
| | | } |
| | | if (sudu != "" && isNaN(sudu)) { |
| | | swal('输入有误', '速度为数字!', 'error'); return; |
| | | } else if (String(sudu).indexOf(".") > -1) { |
| | | swal('输入有误', '速度为整数!', 'error'); return; |
| | | } |
| | | if (!tag_id) { |
| | | swal('输入有误', '请输入标签ID!', 'error'); return; |
| | | } |
| | | if (state != "" && !state) { |
| | | swal('输入有误', '请补全内容!', 'error'); return; |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_add.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | state: state, |
| | | gaodu: gaodu, |
| | | sudu: sudu, |
| | | pinglv: pinglv, |
| | | type: type |
| | | }, |
| | | 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 () { |
| | | state = $(this).prop('checked'); |
| | | if (state) { |
| | | firstId = $(this).attr('id'); |
| | | tr = $(this).parent().parent()[0]; |
| | | console.log(tr.children[9].innerHTML); |
| | | $("#tag_id_m").val(tr.children[2].innerHTML); |
| | | $("#state_m").val(tr.children[3].innerHTML); |
| | | $("#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) { |
| | | $('input[name="selectIds"]').each( |
| | | function () { |
| | | state = $(this).prop('checked'); |
| | | if (!state) { |
| | | firstId = $(this).attr('id'); |
| | | tr = $(this).parent().parent()[0]; |
| | | $("#tag_id_m").val(tr.children[2].innerHTML); |
| | | $("#state_m").val(tr.children[3].innerHTML); |
| | | $("#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; |
| | | } |
| | | // 分页跳转 |
| | | function page(page) { |
| | | var curPage = $("#curPage").val(); |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_page.do", |
| | | data: { |
| | | page: page, |
| | | curPage: curPage |
| | | }, |
| | | dataType: "json", |
| | | 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>"; |
| | | } 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>"; |
| | | } |
| | | } |
| | | $("#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'); |
| | | } |
| | | }); |
| | | } |
| | | ); |
| | | alert("请选中一条数据进行修改,当前默认第一条!"); |
| | | } |
| | | }); |
| | | // 修改功能 |
| | | $('.modify').on('click', function () { |
| | | var tag_id = $("#tag_id_m").val(); |
| | | var state = $("#state_m").val(); |
| | | var gaodu = $("#gaodu_m").val(); |
| | | var sudu = $("#sudu_m").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; |
| | | } |
| | | if (isNaN(sudu)) { |
| | | swal('输入有误', '速度为数字!', 'error'); return; |
| | | } |
| | | if (!tag_id) { |
| | | swal('输入有误', '请补全内容!', 'error'); return; |
| | | } |
| | | if (!state) { |
| | | swal('输入有误', '请补全内容!', 'error'); return; |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_modify.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | state: state, |
| | | gaodu: gaodu, |
| | | sudu: sudu, |
| | | pinglv: pinglv, |
| | | type: type |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | swal({ |
| | | title: "Modified!", |
| | | text: "修改成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 全部修改 |
| | | $(".modifyAll").click(function () { |
| | | var gaodu = $("#gaodu_ma").val(); |
| | | var sudu = $("#sudu_ma").val(); |
| | | var pinglv = $('#pinglv_ma').val(); |
| | | // if (pinglv < 0.1 || pinglv > 20) { |
| | | // swal('输入有误', '频率必须在0.1-20之间!', 'error'); return; |
| | | // } |
| | | if (isNaN(gaodu)) { |
| | | swal('输入有误', '高度为数字!', 'error'); return; |
| | | } |
| | | if (isNaN(sudu)) { |
| | | swal('输入有误', '速度为数字!', 'error'); return; |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_modifyAll.do", |
| | | data: { |
| | | gaodu: gaodu, |
| | | sudu: sudu, |
| | | pinglv: pinglv |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | swal({ |
| | | title: "Modified!", |
| | | text: "修改成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | 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 obj = document.getElementsByName("selectIds"); |
| | | var tagids = document.getElementsByName("tagids"); |
| | | for (var k in obj) { |
| | | if (obj[k].checked) { |
| | | checkVal.push(tagids[k].value); |
| | | } |
| | | } |
| | | if (checkVal.length > 0) { |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_delete.do", |
| | | data: { |
| | | checkVal: checkVal.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({ |
| | | title: '确定要全部删除么?', |
| | | text: "删除之后无法恢复!", |
| | | type: 'warning', |
| | | showCancelButton: true, |
| | | confirmButtonText: '删除', |
| | | cancelButtonText: '取消', |
| | | padding: '2em' |
| | | }).then(function (result) { |
| | | if (result.value) { |
| | | //获取选中数据 |
| | | var checkVal = []; |
| | | var obj = document.getElementsByName("selectIds"); |
| | | for (var k in obj) { |
| | | if (obj[k].checked) { |
| | | checkVal.push(obj[k].id); |
| | | } |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_deleteAll.do", |
| | | data: { |
| | | checkVal: checkVal.toString() |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | swal({ |
| | | title: "Deleted!", |
| | | text: "删除成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | } |
| | | }) |
| | | }); |
| | | // 搜索功能 |
| | | $(".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/labelManagement_search.do", |
| | | data: { |
| | | input: input |
| | | }, |
| | | dataType: "json", |
| | | 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); |
| | | 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'); |
| | | } |
| | | }); |
| | | }); |
| | | // 导出表格 |
| | | $(".toAllExcel").click(function () { |
| | | window.location.href = '/hxzkoa/labelManagement_export.do'; |
| | | swal({ |
| | | title: "Exported!", |
| | | text: "导出成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 下载模板 |
| | | $(".toExcel").click(function () { |
| | | window.location.href = '/hxzkoa/labelManagement_exportTemplate.do'; |
| | | swal({ |
| | | title: "Exported!", |
| | | text: "导出成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false, |
| | | timer: 1000 |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 导入标签 |
| | | $(document).ready(function () { |
| | | //return false; |
| | | var resultList = $("#resultList").val(); |
| | | //console.log(resultList) |
| | | if (resultList == '1') { |
| | | swal({ |
| | | title: "Imported!", |
| | | text: "导入成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("history.go(-1)", 2000); |
| | | } else if (resultList == '0') { |
| | | swal( |
| | | '导入失败!', |
| | | '无法获取文件', |
| | | 'error' |
| | | ) |
| | | setTimeout("history.go(-1)", 2000); |
| | | } |
| | | }); |
| | | // 更多设置 初始化 |
| | | $(".moreSettingInit").click(function () { |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_tagid.do", |
| | | dataType: "json", |
| | | success: function (data) { |
| | | $("#tagId_ms").empty(); |
| | | option = $("<option>").val('ALL').text('全部标签'); |
| | | $("#tagId_ms").append(option); |
| | | for (var i = 0; i < data.dataList.length; i++) { |
| | | option = $("<option>").val(data.dataList[i]).text(data.dataList[i]); |
| | | $("#tagId_ms").append(option); |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | // 更多设置 保存 |
| | | $(".moreSettingSave").click(function () { |
| | | var tag_id = $('#tagId_ms option:selected').val(); |
| | | if (tag_id == 'ALL') { |
| | | var res = confirm("是否全部保存?"); |
| | | if (!res) { |
| | | return |
| | | } |
| | | } |
| | | var sleep_satus = $("#xiumian_ms").val(); |
| | | if (sleep_satus == 'on') { |
| | | sleep_satus = '1' |
| | | } else { |
| | | sleep_satus = '0' |
| | | } |
| | | var sleep_time = $("#xiumianT_ms").val(); |
| | | 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(); |
| | | if (dong_status == 'on') { |
| | | dong_status = '1' |
| | | } else { |
| | | dong_status = '0' |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_more.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | sleep_satus: sleep_satus, |
| | | sleep_time: sleep_time, |
| | | gongfang: gongfang, |
| | | pinglv: pinglv, |
| | | imu: imu, |
| | | dong_status: dong_status |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | swal({ |
| | | title: "Modified!", |
| | | text: "保存成功!", |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false |
| | | }) |
| | | setTimeout("window.location.reload()", 1000); |
| | | }); |
| | | // 发送指令 |
| | | function sendTag(tag) { |
| | | var tag_id = $('#tagId_ms option:selected').val(); |
| | | var hz; |
| | | if (tag == '1') { |
| | | // 1.开启或者关闭标签休眠 |
| | | var sleep_satus = $("#xiumian_ms").val(); |
| | | if (sleep_satus == 'on') { |
| | | hz = '1' |
| | | } else { |
| | | hz = '0' |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/to_cs_xiumian_.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | hz: hz |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | } else if (tag == '2') { |
| | | // 2.修改标签休眠时间 |
| | | hz = $("#xiumianT_ms").val(); |
| | | if (hz == "") { swal('输入有误', '休眠时间不能为空!', 'error'); return; } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/to_cs_xiumian_time.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | hz: hz |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | } else if (tag == '3') { |
| | | // 3.修改标签的功率 |
| | | hz = $("#gonglv_ms").val(); |
| | | if (hz == "") { swal('输入有误', '标签功率不能为空!', 'error'); return; } |
| | | } else if (tag == '4') { |
| | | // 4.下发标签振动 |
| | | hz = $("#zhendongT_ms").val(); |
| | | if (hz == "") { swal('输入有误', '振动时间不能为空!', 'error'); return; } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/to_cs_zhendong_.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | hz: hz |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | } 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", |
| | | url: "/hxzkoa/to_cs_pinlv.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | hz: hz |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | | } else if (tag == '6') { |
| | | // 6.修改加速度计阈值 |
| | | hz = $("#jiasu_ms").val(); |
| | | if (hz == "") { swal('输入有误', '加速计值不能为空!', 'error'); return; } |
| | | } else if (tag == '7') { |
| | | // 7.修改静止时间 |
| | | hz = $("#jignzhiT_ms").val(); |
| | | if (hz == "") { swal('输入有误', '静止时间不能为空!', 'error'); return; } |
| | | } else if (tag == '8') { |
| | | // 8.开启或者关闭标签振动功能 |
| | | var dong_status = $("#zhendong_ms").val(); |
| | | if (dong_status == 'on') { |
| | | hz = '1' |
| | | } else { |
| | | hz = '0' |
| | | } |
| | | } |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_tag.do", |
| | | data: { |
| | | tag_id: tag_id, |
| | | tag: tag, |
| | | hz: hz |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | //console.log(data) |
| | | swal({ |
| | | title: "Saved!", |
| | | text: data.result, |
| | | type: "success", |
| | | showCancelButton: false, |
| | | showConfirmButton: false, |
| | | buttons: false, |
| | | timer: 1000 |
| | | }) |
| | | } |
| | | }); |
| | | } |
| | | // 分页跳转 |
| | | function page(page) { |
| | | var curPage = $("#curPage").val(); |
| | | $.ajax({ |
| | | async: false, //同步的 |
| | | type: "POST", |
| | | url: "/hxzkoa/labelManagement_page.do", |
| | | data: { |
| | | page: page, |
| | | curPage: curPage |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | var str = ""; |
| | | for (var k in data.dataList) { |
| | | if(data.dataList[k].power == -1){ |
| | | data.dataList[k].power = "未知" |
| | | } else if(data.dataList[k].version == "null" ) { |
| | | data.dataList[k].version = "未知" |
| | | }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); |
| | | 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'); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | 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) { |
| | | $(this).find(":checkbox").prop("checked", false); |
| | | } else { |
| | | $(this).find(":checkbox").prop("checked", true); |
| | | } |
| | | } else { |
| | | return false; |
| | | } |
| | | }); |
| | | </script> |
| | | </body> |
| | | $(".table tbody").on('click', 'tr', function (e) { |
| | | if (e.target.type != 'checkbox') { |
| | | if ($(this).find(":checkbox").prop("checked") == true) { |
| | | $(this).find(":checkbox").prop("checked", false); |
| | | } else { |
| | | $(this).find(":checkbox").prop("checked", true); |
| | | } |
| | | } else { |
| | | return false; |
| | | } |
| | | }); |
| | | </script> |
| | | </body> |
| | | |
| | | </html> |
| | | </html> |