Browse Source

自定义三个按钮,去分页

lizhen_gitee 5 months ago
parent
commit
02d1ea065b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      application/admin/controller/Lessonslot.php

+ 3 - 2
application/admin/controller/Lessonslot.php

@@ -52,7 +52,6 @@ class Lessonslot extends Backend
             if ($this->request->request('keyField')) {
                 return $this->selectpage();
             }
-            list($where, $sort, $order, $offset, $limit) = $this->buildparams();
 
             //按周翻页
             $week_current = input('week_current','');
@@ -60,7 +59,9 @@ class Lessonslot extends Backend
                 $starttime = strtotime('this week Monday') + (86400*7*$week_current);
                 $endtime   = $starttime + (86400*7);
                 $where = ['lessonslot.starttime'=>['between',[$starttime,$endtime]]];
-                $limit = 9999;
+                $limit = 999999;
+            }else{
+                list($where, $sort, $order, $offset, $limit) = $this->buildparams();
             }
 
             $list = $this->model