|
|
|
@ -26,15 +26,15 @@ const ReportTable: FC = (props) => {
|
|
|
|
|
setSumRow(countResult);
|
|
|
|
|
setColumns(_.map(columns, (item, index: number) => {
|
|
|
|
|
if (index === 0) {
|
|
|
|
|
return { ...item, fixed: "left" };
|
|
|
|
|
return { ...item, fixed: "left", ellipsis: true };
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
...item,
|
|
|
|
|
children: _.map(item.children, child => {
|
|
|
|
|
return {
|
|
|
|
|
...child,
|
|
|
|
|
...child, ellipsis: true,
|
|
|
|
|
render: (text: string, record: any) => {
|
|
|
|
|
return <Button type="link" onClick={() => {
|
|
|
|
|
return <Button type="link" block onClick={() => {
|
|
|
|
|
window.parent.postMessage(
|
|
|
|
|
{
|
|
|
|
|
type: "turn",
|
|
|
|
|