update:调整部门管理
This commit is contained in:
parent
1d660ba648
commit
44ed0b9788
@ -31,7 +31,7 @@ class UpdateRoles extends Migrator
|
|||||||
if ($this->hasTable('roles')) {
|
if ($this->hasTable('roles')) {
|
||||||
$table = $this->table('roles');
|
$table = $this->table('roles');
|
||||||
|
|
||||||
$table->addColumn('identifies', 'string', [
|
$table->addColumn('identify', 'string', [
|
||||||
'limit' => 20,
|
'limit' => 20,
|
||||||
'default' => 1,
|
'default' => 1,
|
||||||
'comment' => '角色的标识,用英文表示,用于后台路由权限',
|
'comment' => '角色的标识,用英文表示,用于后台路由权限',
|
||||||
|
@ -35,9 +35,7 @@ class Department extends CatchModel
|
|||||||
*/
|
*/
|
||||||
public function getList(): array
|
public function getList(): array
|
||||||
{
|
{
|
||||||
return $this->withoutField(['department_name'])
|
return $this->catchSearch()
|
||||||
->addFields(['department_name as title'])
|
|
||||||
->catchSearch()
|
|
||||||
->catchOrder()
|
->catchOrder()
|
||||||
->select()->toArray();
|
->select()->toArray();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user