薪资账套页面重构
This commit is contained in:
parent
a7028943ed
commit
2de636febc
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Author: 黎永顺
|
||||
* name: 调薪计薪规则
|
||||
* Description:
|
||||
* Date: 2022/12/12
|
||||
*/
|
||||
import React, { Component } from "react";
|
||||
import { WeaButtonIcon, WeaInputSearch, WeaTab } from "ecCom";
|
||||
|
||||
class LedgerSalaryAdjustmentRules extends Component {
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<WeaTab
|
||||
datas={[]}
|
||||
keyParam="viewcondition" //主键
|
||||
selectedKey={selectedKey}
|
||||
buttons={btns}
|
||||
onChange={selectedKey => this.setState({ selectedKey })}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default LedgerSalaryAdjustmentRules;
|
||||
|
|
@ -11,6 +11,7 @@ import { Button, message, Modal } from "antd";
|
|||
import SlideModalTitle from "../../../components/slideModalTitle";
|
||||
import LedgerBaseSetting from "./ledgerBaseSetting";
|
||||
import LedgerAssociatedPersonnel from "./ledgerAssociatedPersonnel";
|
||||
import LedgerSalaryAdjustmentRules from "./ledgerSalaryAdjustmentRules";
|
||||
import { saveLedgerBasic } from "../../../apis/ledger";
|
||||
import "./index.less";
|
||||
|
||||
|
|
@ -85,6 +86,9 @@ class LedgerSlide extends Component {
|
|||
case 1:
|
||||
CurrentDom = <LedgerAssociatedPersonnel {...this.props}/>;
|
||||
break;
|
||||
case 4:
|
||||
CurrentDom = <LedgerSalaryAdjustmentRules {...this.props}/>;
|
||||
break;
|
||||
default:
|
||||
CurrentDom = null;
|
||||
break;
|
||||
|
|
@ -133,7 +137,9 @@ class LedgerSlide extends Component {
|
|||
[
|
||||
<Button type="ghost" onClick={() => this.setState({ current: current - 1 })}>上一步</Button>,
|
||||
<Button type="primary">完成</Button>
|
||||
] : [];
|
||||
] : [
|
||||
<Button type="primary" loading={loading} onClick={this.saveLedgerBasic}>保存</Button>
|
||||
];
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue