this.handleEdit(record)}>编辑
@@ -90,45 +113,29 @@ export default class SalaryItemChangeList extends React.Component {
}
render() {
- const { salaryFileStore } = this.props;
+ const { salaryFileStore } = this.props, { adjLogRecordDialog } = this.state;
const { singleSalaryItemList } = salaryFileStore;
+ const pageInfo = { current: singleSalaryItemList.pageNum, pageSize: 10, total: singleSalaryItemList.total };
+ const pagination = {
+ ...pageInfo,
+ showTotal: total => `${getLabel(18609, "共")} ${total} ${getLabel(18256, "条")}`,
+ showQuickJumper: true,
+ onChange: current => this.handlePageChange(current)
+ };
return (
- {
- if (item.dataIndex !== "operate") {
- return {
- ...item,
- render: (text) => {
- return {text};
- }
- };
- }
- return { ...item };
- })
- }
- dataSource={singleSalaryItemList.list ? singleSalaryItemList.list : []}
- pagination={{
- onChange: (value) => {
- this.handlePageChange(value);
- },
- total: singleSalaryItemList.total,
- showTotal: (total) => `共 ${total} 条`,
- current: singleSalaryItemList.pageNum
- }}
- xWidth={this.getColumns().length * 100}
+
+ this.setState({
+ adjLogRecordDialog: {
+ adjLogRecordDialog, visible: false, title: "", id: "", salaryArchiveId: ""
+ }
+ })}
/>
- {
- this.state.changeSalaryVisible && {
- this.setState({ changeSalaryVisible: false });
- }}
- />
- }
);
}
diff --git a/pc4mobx/hrmSalary/stores/salaryFile.js b/pc4mobx/hrmSalary/stores/salaryFile.js
index a0e213c7..de262e8f 100644
--- a/pc4mobx/hrmSalary/stores/salaryFile.js
+++ b/pc4mobx/hrmSalary/stores/salaryFile.js
@@ -9,6 +9,9 @@ import { notNull } from "../util/validate";
const { TableStore } = WeaTableNew;
export class salaryFileStore {
+ @observable adjForm = new WeaForm(); // 调薪form
+
+
@observable tableStore = new TableStore(); // new table
@observable form = new WeaForm(); // nrew 一个form
@observable condition = []; // 存储后台得到的form数据
@@ -41,6 +44,8 @@ export class salaryFileStore {
setSalaryIncreaseUrl = data => (this.salaryIncreaseUrl = data);
@action("设置薪资档案项")
setAdjustSalaryItems = data => (this.adjustSalaryItems = data);
+ @action("调薪初始化form")
+ initAdjForm = () => (this.adjForm = new WeaForm());
// ** 设置导入参数 start **
@action
setPreviewDataSource = (previewDataSource) => {
diff --git a/pc4mobx/hrmSalary/util/index.js b/pc4mobx/hrmSalary/util/index.js
index 702a281b..6e864a59 100644
--- a/pc4mobx/hrmSalary/util/index.js
+++ b/pc4mobx/hrmSalary/util/index.js
@@ -106,3 +106,6 @@ export const format_with_regex = (number) => {
});
};
+export const getDomkes = (conditions) => {
+ return _.map(conditions[0].items, it => it.domkey[0]);
+};