new feature

This commit is contained in:
JaguarJack
2022-12-14 19:25:52 +08:00
parent b63cd5d01c
commit 098463f4e1
35 changed files with 391 additions and 146 deletions

View File

@@ -26,13 +26,19 @@ class RolesModel extends Model
/**
* @var array
*/
protected array $fieldsInList = ['id', 'role_name','identify','parent_id','description','data_range', 'created_at', 'updated_at'];
protected array $fields = ['id', 'role_name','identify','parent_id','description','data_range', 'created_at', 'updated_at'];
/**
* @var array
*/
protected array $form = ['role_name','identify','parent_id','description','data_range'];
/**
* @var bool
*/
protected bool $isPaginate = false;
/**
* @var array
*/
@@ -41,11 +47,5 @@ class RolesModel extends Model
];
/**
* @return mixed
*/
public function getList(): mixed
{
return self::query()->select($this->fieldsInList)->quickSearch()->get()->toTree();
}
protected bool $asTree = true;
}