| | |
| | | } |
| | | } |
| | | |
| | | export function getRolePaginationKey() { |
| | | return { |
| | | current: 'current', |
| | | size: 'pageSize' |
| | | } |
| | | } |
| | | |
| | | const ROLE_REPORT_COLUMNS = [ |
| | | { source: 'name', label: '角色名称' }, |
| | | { source: 'code', label: '角色编码' }, |
| | |
| | | } |
| | | } |
| | | |
| | | function normalizeScopeKeys(keys = []) { |
| | | export function normalizeScopeKeys(keys = []) { |
| | | if (!Array.isArray(keys)) { |
| | | return [] |
| | | } |
| | |
| | | ) |
| | | } |
| | | |
| | | function normalizeScopeKey(value) { |
| | | export function normalizeScopeKey(value) { |
| | | const normalized = normalizeRoleId(value) |
| | | return normalized === void 0 ? '' : String(normalized) |
| | | } |