|
|
|
@ -19,6 +19,7 @@ const RankMapTable: React.FC = () => {
|
|
|
|
|
...item,
|
|
|
|
|
align: "center",
|
|
|
|
|
className: colsIndex === "1" ? "bg_1_Cols" : colsIndex === "2" ? "bg_2_Cols" : "",
|
|
|
|
|
width: colsIndex === "1" && "60px",
|
|
|
|
|
render: (text: string, _: any) => {
|
|
|
|
|
return {
|
|
|
|
|
children: <span>{text}</span>,
|
|
|
|
@ -63,6 +64,7 @@ const RankMapTable: React.FC = () => {
|
|
|
|
|
_.forEach(_.reduce(columns, (pre: any, cur: any) => ([...pre, cur["dataIndex"]]), []), item => {
|
|
|
|
|
tmpV = changeData(list, item);
|
|
|
|
|
});
|
|
|
|
|
console.log(columns);
|
|
|
|
|
setCols(columns);
|
|
|
|
|
setDataSource(tmpV);
|
|
|
|
|
}
|
|
|
|
|