优化薪资档案

This commit is contained in:
黎永顺 2022-12-16 17:00:24 +08:00
parent 26457c01e6
commit 5b66b538b8
1 changed files with 15 additions and 6 deletions

View File

@ -14,13 +14,13 @@ import {
WeaFormItem,
WeaHelpfulTip,
WeaInput,
WeaPopoverHrm,
WeaSearchGroup,
WeaSelect,
WeaSlideModal,
WeaTab,
WeaTable,
WeaTop,
WeaPopoverHrm
WeaTop
} from "ecCom";
import { WeaTableNew } from "comsMobx";
import { Button, Dropdown, Menu, message, Modal, Popover } from "antd";
@ -148,8 +148,8 @@ class Index extends Component {
const { taxAgentStore } = this.props;
const { getTaxAgentSelectListAsAdmin } = taxAgentStore;
getTaxAgentSelectListAsAdmin();
const init = this.init();
this.queryList("/api/bs/hrmsalary/salaryArchive/pendingList");
const init = this.init();
}
init = async () => {
@ -192,7 +192,16 @@ class Index extends Component {
const { loading, pageInfo, searchItemsValue } = this.state;
const { payrollFilesStore: { tableStore, queryList } } = this.props;
const payload = { ...pageInfo };
this.setState({ loading: { ...loading, query: true } });
this.setState({
loading: { ...loading, query: true },
dataSource: [],
tabCount: {
SUSPEND: 0,
STOP: 0,
FIXED: 0,
PENDING: 0
}
});
queryList(payload, searchItemsValue, url).then(({ data, status }) => {
this.setState({ loading: { ...loading, query: false } });
if (status) {
@ -427,7 +436,7 @@ class Index extends Component {
</a>;
}
};
}else if (item.dataIndex === "operate") {
} else if (item.dataIndex === "operate") {
return {
...item,
fixed: "right",
@ -487,7 +496,7 @@ class Index extends Component {
...item,
width: item.oldWidth,
render: (text) => {
return <span className='tdEllipsis' title={text}>{text}</span>
return <span className="tdEllipsis" title={text}>{text}</span>;
}
};
});