Jonlin 6 år sedan
förälder
incheckning
de8960f130

+ 1 - 1
application/admin/controller/Report.php

@@ -269,7 +269,7 @@ class Report extends Base
             'times_inline' => $times_inline_array
         );
     }
-    
+
     // 工作报表
     public function workreport()
     {

+ 7 - 4
application/admin/view/admins/editpower.html

@@ -78,16 +78,19 @@
             }
         });
         $('[level=2]').click(function(){
+            var n = 0;
             if (this.checked) {
                 $(this).parent().parent().find('[level=1]').prop('checked','checked');
             }
             else{
-                if($(this).parent().find('[level=2]').checked){
-                    //$(this).parent().parent().find('[level=1]').removeAttr('checked');
-                }else{
+                for(var i=0;i<$(this).parent().find('[level=2]').length;i++){
+                    if($(this).parent().find('[level=2]')[i].checked){
+                        n = 1;
+                    }
+                }
+                if(n == 0){
                     $(this).parent().parent().find('[level=1]').removeAttr('checked');
                 }
-
             }
         });
     });

+ 3 - 3
application/admin/view/report/workreport.html

@@ -25,7 +25,7 @@
                 <div class="content clearfix m-b">
                     <div class="form-group">
                         <label>留言日期:</label>
-                        <input type="text" class="form-control" id="start" value="<?php echo date('Y-m-d',time()-172800);?>" style="width: 100px;"> --
+                        <input type="text" class="form-control" id="start" value="<?php echo date('Y-m-d',time()-86400);?>" style="width: 100px;"> --
                         <input type="text" class="form-control" id="end" value="<?php echo date('Y-m-d',time()-86400);?>" style="width: 100px;">
                     </div>
                     <div class="form-group">
@@ -98,9 +98,9 @@
             url: "{:url('report/workreport')}", //获取数据的地址
             striped: true,  //表格显示条纹
             pagination: true, //启动分页
-            pageSize: 10,  //每页显示的记录数
+            pageSize: 50,  //每页显示的记录数
             pageNumber:1, //当前第几页
-            pageList: [5, 10, 15, 20, 25],  //记录数可选列表
+            pageList: [20, 50],  //记录数可选列表
             sidePagination: "server", //表示服务端请求
             paginationFirstText: "首页",
             paginationPreText: "上一页",