41 lines
884 B
JavaScript
41 lines
884 B
JavaScript
import {
|
|
inject,
|
|
observer
|
|
} from 'mobx-react'
|
|
import {
|
|
WeaTableNew
|
|
} from 'comsMobx'
|
|
const WeaTable = WeaTableNew.WeaTable;
|
|
|
|
@inject('hrmTimeWageSummary') //todo
|
|
@observer
|
|
export default class Table extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
}
|
|
|
|
componentWillUnmount() {
|
|
this.props.hrmTimeWageSummary.resetTable();
|
|
}
|
|
|
|
render() {
|
|
const {
|
|
hrmTimeWageSummary,
|
|
} = this.props, {
|
|
table,
|
|
} = hrmTimeWageSummary, {
|
|
tableStore,
|
|
colNum,
|
|
} = table;
|
|
|
|
return (
|
|
<WeaTable ecId={`${this && this.props && this.props.ecId || ''}_WeaTable@rqzumu`}
|
|
comsWeaTableStore={tableStore}
|
|
hasOrder={true}
|
|
needScroll={true}
|
|
scroll={{x: colNum*100}}
|
|
/>
|
|
)
|
|
|
|
}
|
|
} |