|
|
@ -116,7 +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) => { |
|
|
|
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'], |
|
|
|