feature/2.15.1.2407.01-权
This commit is contained in:
parent
7821a990e9
commit
32940c9bcf
|
|
@ -130,9 +130,15 @@ class Index extends Component {
|
|||
<WeaTableEdit
|
||||
ref={el => this.tableEdit = el} showCopy={false} deleteConfirm
|
||||
showAdd={!pzlxEnum.includes(pzlx)} showDelete={!pzlxEnum.includes(pzlx)}
|
||||
columns={columns} datas={datas} onChange={datas => this.setState({ datas })}
|
||||
columns={columns} datas={datas} tableProps={{ scroll: { y: `calc(100vh - 190.58px)` } }}
|
||||
getRowSelection={rowSelection => !pzlxEnum.includes(pzlx) ? rowSelection : false}
|
||||
tableProps={{ scroll: { y: `calc(100vh - 190.58px)` } }}
|
||||
onChange={datas => this.setState({ datas }, () => this.setState({
|
||||
totalData: _.map(this.state.totalData, o => ({
|
||||
...o,
|
||||
jfValue: _.reduce(this.state.datas, (pre, cur) => pre + parseFloat(cur.jfValue || 0), 0).toFixed(2),
|
||||
dfValue: _.reduce(this.state.datas, (pre, cur) => pre + parseFloat(cur.dfValue || 0), 0).toFixed(2)
|
||||
}))
|
||||
}))}
|
||||
/>
|
||||
<div className="fixed-total-table">
|
||||
<WeaTableEdit showCopy={false} showAdd={false} showDelete={false}
|
||||
|
|
|
|||
Loading…
Reference in New Issue