update:调整部门管理

This commit is contained in:
JaguarJack 2020-09-01 07:58:36 +08:00
parent 1d660ba648
commit 44ed0b9788
2 changed files with 2 additions and 4 deletions

View File

@ -31,7 +31,7 @@ class UpdateRoles extends Migrator
if ($this->hasTable('roles')) {
$table = $this->table('roles');
$table->addColumn('identifies', 'string', [
$table->addColumn('identify', 'string', [
'limit' => 20,
'default' => 1,
'comment' => '角色的标识,用英文表示,用于后台路由权限',

View File

@ -35,9 +35,7 @@ class Department extends CatchModel
*/
public function getList(): array
{
return $this->withoutField(['department_name'])
->addFields(['department_name as title'])
->catchSearch()
return $this->catchSearch()
->catchOrder()
->select()->toArray();
}