refactor: 修改附件排序
This commit is contained in:
@@ -31,6 +31,7 @@ class Attachment extends Common
|
|||||||
->language($this->lang_id)
|
->language($this->lang_id)
|
||||||
->parent(0)
|
->parent(0)
|
||||||
->isShow(true)
|
->isShow(true)
|
||||||
|
->order(['sort' => 'asc', 'id' => 'desc'])
|
||||||
->select();
|
->select();
|
||||||
View::assign('categorys', $categorys);
|
View::assign('categorys', $categorys);
|
||||||
|
|
||||||
@@ -46,6 +47,7 @@ class Attachment extends Common
|
|||||||
])
|
])
|
||||||
->language($this->lang_id)
|
->language($this->lang_id)
|
||||||
->category($param['id']??null)
|
->category($param['id']??null)
|
||||||
|
->order(['sort' => 'asc', 'id' => 'desc'])
|
||||||
->paginate([
|
->paginate([
|
||||||
'list_rows' => $param['size'],
|
'list_rows' => $param['size'],
|
||||||
'page' => $param['page'],
|
'page' => $param['page'],
|
||||||
|
|||||||
Reference in New Issue
Block a user