Merge branch 'hotfix/2.9.42310.01' into release/2.9.42310.01
This commit is contained in:
commit
5a78344e2f
|
|
@ -18,6 +18,7 @@ import { convertToUrlString, getURLParameters } from "../../../util/url";
|
|||
import { salaryArchiveDelete } from "../../../apis/payrollFiles";
|
||||
import ImportDialog from "../../../components/importDialog";
|
||||
import "./index.less";
|
||||
import { sysinfo } from "../../../apis/ruleconfig";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
const APILIST = {
|
||||
|
|
@ -64,7 +65,8 @@ export default class Archives extends React.Component {
|
|||
visible: false, title: "", nextloading: false,
|
||||
link: "", importResult: {}, imageId: "",
|
||||
previewUrl: "/api/bs/hrmsalary/scheme/preview"
|
||||
}
|
||||
},
|
||||
extEmpsWitch: "1" //非系统人员开关, 1: 开启, 0:关闭
|
||||
};
|
||||
this.record = {};
|
||||
}
|
||||
|
|
@ -73,9 +75,21 @@ export default class Archives extends React.Component {
|
|||
const { archivesStore: { doInit } } = this.props;
|
||||
doInit();
|
||||
this.salaryArchiveDelete();
|
||||
this.getSysinfo();
|
||||
this.queryList({ runStatuses: ["1"] });
|
||||
}
|
||||
|
||||
/*
|
||||
* Author: 黎永顺
|
||||
* Description: 非系统人员开关查询
|
||||
* Params:
|
||||
* Date: 2023/7/14
|
||||
*/
|
||||
getSysinfo = () => {
|
||||
sysinfo().then(({ status, data }) => {
|
||||
if (status) this.setState({ extEmpsWitch: data.extEmpsWitch });
|
||||
});
|
||||
};
|
||||
queryInsuranceTabTotal = () => {
|
||||
API.queryInsuranceTabTotal().then(({ data = {}, status }) => {
|
||||
if (status) {
|
||||
|
|
@ -612,7 +626,8 @@ export default class Archives extends React.Component {
|
|||
pageInfo,
|
||||
tabCount,
|
||||
loading,
|
||||
importDialog
|
||||
importDialog,
|
||||
extEmpsWitch
|
||||
} = this.state;
|
||||
const {
|
||||
form, condition, showSearchAd, setShowSearchAd,
|
||||
|
|
@ -805,7 +820,7 @@ export default class Archives extends React.Component {
|
|||
showDropIcon={false} // 是否显示下拉按钮
|
||||
>
|
||||
<WeaTab
|
||||
datas={tabCondition}
|
||||
datas={(extEmpsWitch === "0" || !extEmpsWitch) ? _.dropRight(tabCondition) : tabCondition}
|
||||
buttons={showOperateBtn ? btns : []}
|
||||
counts={tabCount}
|
||||
countParam="groupid" //数量
|
||||
|
|
|
|||
Loading…
Reference in New Issue