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

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

@@ -179,7 +179,6 @@ class Report extends Base
         );
     }
 
-<<<<<<< HEAD
     // 工作报表
     public function workreport()
     {
@@ -284,7 +283,6 @@ class Report extends Base
 
         return $this->fetch();
     }
-=======
->>>>>>> 725c05a5865a7a7fa45b0171f80d65c46633c315
+
 
 }//end class

+ 3 - 8
application/admin/view/admins/editpower.html

@@ -82,7 +82,9 @@
                 $(this).parent().parent().find('[level=1]').prop('checked','checked');
             }
             else{
-                if($(this).parent().find('input:checked').length==0){
+                if($(this).parent().find('[level=2]').checked){
+                    //$(this).parent().parent().find('[level=1]').removeAttr('checked');
+                }else{
                     $(this).parent().parent().find('[level=1]').removeAttr('checked');
                 }
 
@@ -91,13 +93,6 @@
     });
 </script>
 <script>
-    $(".fa-comments-o").change(function(){
-        if($(".fa-comments-o:checked").length!=0){
-            $("#fa-comments-o").prop("checked",true);
-        }else{
-            $("#fa-comments-o").prop("checked",false);
-        }
-    });
 
     function checkboxOnclick(checkbox){