添加线下对比表格
This commit is contained in:
parent
e4a7b9d7d5
commit
e794d1021f
|
|
@ -47,7 +47,15 @@ const OCTable: FC = (props) => {
|
|||
const showDifference = record[`${item["dataIndex"]}_type`] === "number";
|
||||
const { acctResultValue, excelResultValue } = record[item["dataIndex"]] || {};
|
||||
return <div className={styles["comparison-column-item-container"]}
|
||||
onClick={() => console.log(formulaDesc)}>
|
||||
onClick={() => {
|
||||
window.parent.postMessage(
|
||||
{
|
||||
type: "turn",
|
||||
payload: { id: "FORMULA", params: { formulaDesc } }
|
||||
},
|
||||
"*"
|
||||
);
|
||||
}}>
|
||||
<div className={styles["comparison-single-row"]}>
|
||||
<span>{lanObj["系统值"]}:</span>
|
||||
<span>{acctResultValue}</span>
|
||||
|
|
@ -80,14 +88,18 @@ const OCTable: FC = (props) => {
|
|||
const sizeChange = (pageobj: IPage) => {
|
||||
};
|
||||
const onChange = (pageobj: IPage) => {
|
||||
setPageInfo({ ...pageInfo, ...pageobj });
|
||||
window.parent.postMessage(
|
||||
{
|
||||
type: "turn",
|
||||
payload: { id: "PAGEINFO", params: { ...pageInfo, ...pageobj } }
|
||||
},
|
||||
"*"
|
||||
);
|
||||
const { pageNum, size: pageSize } = pageobj;
|
||||
setPageInfo((prevState) => {
|
||||
const { size } = prevState;
|
||||
window.parent.postMessage(
|
||||
{
|
||||
type: "turn",
|
||||
payload: { id: "PAGEINFO", params: { ...pageInfo, pageNum: size === pageSize ? pageNum : 1, size: pageSize } }
|
||||
},
|
||||
"*"
|
||||
);
|
||||
return { ...pageInfo, current: size === pageSize ? pageNum : 1, size: pageSize };
|
||||
});
|
||||
};
|
||||
return <Table
|
||||
rowKey="id" className={styles.tableWrapper}
|
||||
|
|
|
|||
Loading…
Reference in New Issue