yzt
2023-05-08 24e1c6a1c3d5331b5a4f1111dcbae3ef148eda1a
src/main/webapp/hxzk/basicInfo/personManagement.jsp
@@ -254,7 +254,7 @@
                  </button>
               </div>
               <div class="modal-body">
                  <form action="/hxzkoa/uploadPerson.do" method="post"
                  <form action="/hxzkoa/uploadPerson4.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;">
@@ -303,7 +303,7 @@
                                          <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"
                                    placeholder="请输入编号或姓名" aria-label="Username"
                                    aria-describedby="basic-addon1">
                              </div>
                              <button type="button" class="btn btn-secondary reset">刷新</button>
@@ -314,10 +314,8 @@
                                 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=".addNew" id="importButton">导入人员</button>
                              <button type="button" class="btn btn-secondary toAllExcel">导出表格</button>
                              <button type="button" class="btn btn-secondary toExcel">下载模板</button>
                           </div>
                           <thead>
                              <tr align="center">
@@ -396,8 +394,48 @@
      <!-- END MAIN CONTAINER -->
      <script>
   // 页面初始化
      $(document).ready(function() {
         App.init();$.ajax({async : false, type : "POST",url : "/hxzkoa/getSysSetting_list.do",data : {},dataType : "json",success:function(data){/* title = data[0].title;document.title = title; */},});
      window.onload = function() {
         App.init();
         $.ajax({
            async : false,
            type : "POST",
            url : "/hxzkoa/getSysSetting_list2.do",
            data : {},
            dataType : "json",
            success:function(data){
               /* title = data[0].title;document.title = title; */
               if (data.dataList2[0].label == 0) {
                  $("#labela").css({ 'display': 'none' });
               };
               if (data.dataList2[0].achor == 0) {
                  $("#anchora").css({ 'display': 'none' });
               };
               if (data.dataList2[0].gps == 0) {
                  $("#gpsa").css({ 'display': 'none' });
               };
               if (data.dataList2[0].fence == 0) {
                  $("#fencea").css({ 'display': 'none' });
               };
               if (data.dataList2[0].warning == 0) {
                  $("#warninga").css({ 'display': 'none' });
               };
               if (data.dataList2[0].history == 0) {
                  $("#historya").css({ 'display': 'none' });
               };
               if (data.dataList2[0].attendance == 0) {
                  $("#attendancea").css({ 'display': 'none' });
               };
               if (data.dataList2[0].basiclnfo == 0) {
                  $("#basiclnfoa").css({ 'display': 'none' });
               };
               if (data.dataList2[0].video == 0) {
                  $("#videoa").css({ 'display': 'none' });
               };
               if (data.dataList2[0].gas == 0) {
                  $("#gasa").css({ 'display': 'none' });
               };
            },
         });
         $("#page_1").addClass("active");
         var superuser = document.getElementById("superuser").value;
         var deleteq = document.getElementById("deleteq").value;
@@ -422,7 +460,7 @@
         if (deleteall == "否"){
            $("#deleteAllButton").attr("disabled","true");
         }
      });
      };
        $('.header-page').load('/hxzkoa/hxzk/top.html');$('.login-page').load('/hxzkoa/hxzk/head.html');
        $(".reset").click(function() {
         setTimeout("window.location.reload()", 1000);
@@ -433,7 +471,7 @@
         $.ajax({
            async : false, //同步的
            type : "POST",
            url : "/hxzkoa/personManagement_page.do",
            url : "/hxzkoa/personManagement_page4.do",
            data : {
               page : page,
               curPage : curPage
@@ -483,7 +521,7 @@
         $.ajax({
            async : false, //同步的
            type : "POST",
            url : "/hxzkoa/personManagement_search.do",
            url : "/hxzkoa/personManagement_search4.do",
            data : {
               input : input
            },
@@ -727,7 +765,7 @@
         
         // 导出表格
         $(".toAllExcel").click(function() {
            window.location.href='/hxzkoa/personManagement_export.do';
            window.location.href='/hxzkoa/personManagement_export4.do';
            swal({title:"Exported!",
                 text:"导出成功!",
                 type:"success",
@@ -739,7 +777,7 @@
         });
         // 下载模板
         $(".toExcel").click(function() {
            window.location.href='/hxzkoa/personManagement_exportTemplate.do';
            window.location.href='/hxzkoa/personManagement_exportTemplate4.do';
            swal({title:"Exported!",
                 text:"导出成功!",
                 type:"success",