泛微薪资核算iframe表格

custom-人事报表/V2-demo
黎永顺 2 years ago
parent 978a248cf3
commit 7c57f726a1

@ -156,17 +156,24 @@
} }
} }
:global{ :global {
.rankMapWrapper{ .rankMapWrapper {
.ant-table-thead>tr>th{ .ant-table-thead > tr > th {
background: #ED7D31; background: #ED7D31;
} }
} }
.bg_1_Cols { .bg_1_Cols {
background: #ED7D31!important; background: #ED7D31 !important;
} }
th.bg_1_Cols {
height: 48px;
line-height: 48px;
}
.bg_2_Cols { .bg_2_Cols {
background: #DEE0E3!important; background: #DEE0E3 !important;
} }
} }

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

Loading…
Cancel
Save