vali %!s(int64=6) %!d(string=hai) anos
pai
achega
acf9977817

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

@@ -178,7 +178,7 @@ class Report extends Base
         $goups = (new GroupsModel)->where(['status' => 1])->select();
         $serday1 = date("Y-m-d", strtotime('-7 day'));
         $serday2 = date("Y-m-d", strtotime('-1 day'));
-        $defday = $serday1 . ',' . $serday2;
+        $defday = $serday1 . ' , ' . $serday2;
         $toExcel = input('param.toExcel', 0);
 
 

+ 3 - 1
application/admin/view/report/attendancereport.html

@@ -26,7 +26,8 @@
                 <div class="content clearfix m-b">
                     <div class="form-group">
                         <div class="layui-input-inline">
-                            <input type="text" class="layui-input" name="daterang" id="daterang" value="{$dzone}"
+                            <input type="text" class="layui-input" name="daterang"
+                                   id="daterang" value="{$dzone}"
                                    placeholder="时间段"
                                    readonly="">
                         </div>
@@ -160,6 +161,7 @@
         laydate.render({
             elem: '#daterang'
             , range: ','
+            , value: '{$dzone}'
         });
 
     });