feature/2.9.42310.02-社保福利档案页面重构
This commit is contained in:
parent
e01b5bf1c9
commit
f113cb437f
|
|
@ -195,13 +195,17 @@ class Index extends Component {
|
|||
});
|
||||
renderTitle = () => {
|
||||
const { loading } = this.state;
|
||||
const { runStatuses } = this.props;
|
||||
return <div className="titleDialog">
|
||||
<div className="titleCol titleLeftBox">
|
||||
<div className="titleIcon"><i className="icon-coms-fa"/></div>
|
||||
<div className="title">{getLabel(543191, "员工福利档案")}</div>
|
||||
</div>
|
||||
<div className="titleCol titleRightBox">
|
||||
<Button type="primary" onClick={this.save} loading={loading}>{getLabel(537558, "保存")}</Button>
|
||||
{
|
||||
runStatuses !== "4,5" &&
|
||||
<Button type="primary" onClick={this.save} loading={loading}>{getLabel(537558, "保存")}</Button>
|
||||
}
|
||||
</div>
|
||||
</div>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -59,7 +59,8 @@ class Index extends Component {
|
|||
}
|
||||
if ((nextProps.runStatuses !== this.props.runStatuses)) {
|
||||
this.setState({
|
||||
dataSource: [], columns: [], loading: false, selectedRowKeys: []
|
||||
dataSource: [], columns: [], loading: false, selectedRowKeys: [],
|
||||
welfareEditSlide: { ...this.state.welfareEditSlide, visible: false }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -70,6 +71,7 @@ class Index extends Component {
|
|||
this.getWelfareList(this.props);
|
||||
} else if (type === "turn") {
|
||||
const { record: { baseInfo, employeeId, paymentOrganization } = {}, interfaceParams = {} } = params;
|
||||
const { runStatuses } = this.props;
|
||||
switch (id) {
|
||||
case "PAGEINFO":
|
||||
this.setState({
|
||||
|
|
@ -90,7 +92,7 @@ class Index extends Component {
|
|||
]);
|
||||
this.setState({
|
||||
welfareEditSlide: {
|
||||
...this.state.welfareEditSlide, employeeId, paymentOrganization,
|
||||
...this.state.welfareEditSlide, employeeId, paymentOrganization, runStatuses,
|
||||
socialItems: socialItems.data.items[0].items,
|
||||
socialBaseData: {
|
||||
SOCIAL_SECURITY: { ...socialItems.data.data, socialUnderTake: socialItems.data.data.underTake }
|
||||
|
|
@ -268,8 +270,8 @@ class Index extends Component {
|
|||
<Spin spinning={loading}>
|
||||
<iframe
|
||||
style={{ border: 0, width: "100%", height: "100%" }}
|
||||
src="http://localhost:7607/#/welfareArchiveTable"
|
||||
// src="/spa/hrmSalary/hrmSalaryCalculateDetail/index.html#/welfareArchiveTable"
|
||||
// src="http://localhost:7607/#/welfareArchiveTable"
|
||||
src="/spa/hrmSalary/hrmSalaryCalculateDetail/index.html#/welfareArchiveTable"
|
||||
id="atdTable"
|
||||
/>
|
||||
</Spin>
|
||||
|
|
|
|||
Loading…
Reference in New Issue