|
|
@ -116,9 +116,7 @@ export const transformAntdTableProColumns = (columns: XFormTypes.IColumn[], over |
|
|
|
return request[item.dicMethod || 'get'](url, params).then(res => { |
|
|
|
const data = has(res.data, resKey) ? get(res.data, resKey) : res.data |
|
|
|
|
|
|
|
return mapTree(data || [], (i: any) => { |
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
|
|
// @ts-ignore
|
|
|
|
return mapTree(data || [], (i: object) => { |
|
|
|
const disabled = has(i, disabledKey) ? get(i, disabledKey) : ('status' in i ? !convertToBool(i.status) : false) |
|
|
|
return { |
|
|
|
title: i[label || 'label'], |
|
|
|