|
@@ -46,6 +46,11 @@ class Lessonorder extends Backend
|
|
|
//设置过滤方法
|
|
|
$this->request->filter(['strip_tags', 'trim']);
|
|
|
if ($this->request->isAjax()) {
|
|
|
+ //拿slot_id
|
|
|
+ $filter = $this->request->get('filter');
|
|
|
+ $filter = json_decode($filter,true);
|
|
|
+ $slot_id = isset($filter['slot_id']) ? $filter['slot_id'] : 0;
|
|
|
+
|
|
|
//如果发送的来源是Selectpage,则转发到Selectpage
|
|
|
if ($this->request->request('keyField')) {
|
|
|
return $this->selectpage();
|
|
@@ -67,7 +72,7 @@ class Lessonorder extends Backend
|
|
|
$row->getRelation('coach')->visible(['nickname']);
|
|
|
}
|
|
|
|
|
|
- $result = array("total" => $list->total(), "rows" => $list->items());
|
|
|
+ $result = array("total" => $list->total(), "rows" => $list->items(), "extend"=>[ 'slot_id' => $slot_id ]);
|
|
|
|
|
|
return json($result);
|
|
|
}
|