实现表格的接口排序并且默认开启

This commit is contained in:
2022-07-14 18:35:41 +08:00
parent cf6d0f9814
commit 94e2090559
6 changed files with 73 additions and 23 deletions

View File

@@ -12,10 +12,10 @@ use think\console\Output;
class Version extends Command
{
const VERSION = 'v2.0.4';
const VERSION = 'v2.0.5';
const COMMENT = [
'自动生成CURD导出生成关联查询',
'实现表格的接口排序并且默认开启',
];
protected function configure()

View File

@@ -104,6 +104,17 @@ class AdminController extends BaseController
$this->isDemo = Env::get('adminsystem.is_demo', false);
$this->viewInit();
$this->checkAuth();
$this->initSort();
}
public function initSort()
{
$sort = $this->request->param('sort');
if (!empty($sort)) {
$this->sort = $sort;
}
}
/**