col(self::col(12))->clearable(true)->required(), self::cascader('department_id', '部门', []) ->col(self::col(12)) ->options( DepartmentModel::field(['id', 'parent_id', 'department_name'])->select()->toTree() ) ->props(self::props('department_name', 'id', [ 'checkStrictly' => true ]))->clearable(true), self::email('email', '邮箱')->col(self::col(12))->required()->clearable(true), self::selectMultiple('jobs', '岗位', []) ->col(self::col(12))->options( Job::where('status', Job::ENABLE)->field(['id as value', 'job_name as label'])->select()->toArray() )->clearable(true)->filterable(true), self::input('password', '密码')->col(self::col(12)) ->placeholder('请输入密码')->clearable(true), self::tree('roles', '角色', []) ->props(self::props('role_name', 'id', [], Roles::field(['id', 'parent_id', 'role_name'])->select()->toTree())) ->checkStrictly(true) ->required(), ]; } }