release/2.15.2.2409.01
This commit is contained in:
parent
ca3c9079a1
commit
bdd4b4e446
|
|
@ -30,6 +30,7 @@ class Layout extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
this.setFontSize();
|
||||||
if (window.e9LibsConfigCustomF && _.some(window.e9LibsConfigCustomF, o => (_.some(o, k => k === "h_hrmSalary")))) {
|
if (window.e9LibsConfigCustomF && _.some(window.e9LibsConfigCustomF, o => (_.some(o, k => k === "h_hrmSalary")))) {
|
||||||
const src = "/spa/hrmSalary/hrmSalaryCalculateDetail/css/iconfont/iconfont.css";
|
const src = "/spa/hrmSalary/hrmSalaryCalculateDetail/css/iconfont/iconfont.css";
|
||||||
const link = document.createElement("link");
|
const link = document.createElement("link");
|
||||||
|
|
@ -48,11 +49,7 @@ class Layout extends Component {
|
||||||
window.removeEventListener("storage", this.setFontSize);
|
window.removeEventListener("storage", this.setFontSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps, prevState, snapshot) {
|
setFontSize = () => {
|
||||||
this.setFontSize();
|
|
||||||
}
|
|
||||||
|
|
||||||
setFontSize = (init = false) => {
|
|
||||||
const { themeFontSize } = JSON.parse(localStorage.getItem("theme-themeInfo")) || { themeFontSize: "12" };
|
const { themeFontSize } = JSON.parse(localStorage.getItem("theme-themeInfo")) || { themeFontSize: "12" };
|
||||||
if (window.location.href.indexOf("/spa/hrmSalary/") !== -1) {
|
if (window.location.href.indexOf("/spa/hrmSalary/") !== -1) {
|
||||||
const href = `/cloudstore/resource/pc/com/font-size/${themeFontSize}px.css`;
|
const href = `/cloudstore/resource/pc/com/font-size/${themeFontSize}px.css`;
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ class Index extends Component {
|
||||||
}
|
}
|
||||||
}, () => {
|
}, () => {
|
||||||
const { selectItems: salaryItems } = this.state.headerFieldsDialog;
|
const { selectItems: salaryItems } = this.state.headerFieldsDialog;
|
||||||
cacheImportField({ salaryItems: salaryItems ? salaryItems.split(",") : [] })
|
cacheImportField({ salaryAcctRecordId, salaryItems: salaryItems ? salaryItems.split(",") : [] })
|
||||||
.then(({ status, errormsg }) => {
|
.then(({ status, errormsg }) => {
|
||||||
if (status) {
|
if (status) {
|
||||||
const payload = {
|
const payload = {
|
||||||
|
|
|
||||||
|
|
@ -125,6 +125,15 @@ class Index extends Component {
|
||||||
case "offlineCompare":
|
case "offlineCompare":
|
||||||
window.open(`/spa/hrmSalary/static/index.html#/main/hrmSalary/calcOc/${salaryAcctRecordId}`, "_blank");
|
window.open(`/spa/hrmSalary/static/index.html#/main/hrmSalary/calcOc/${salaryAcctRecordId}`, "_blank");
|
||||||
break;
|
break;
|
||||||
|
case "LOCK":
|
||||||
|
case "UNLOCK":
|
||||||
|
const { selectedRowKeys } = this.calc.calcTableRef.wrappedInstance.state;
|
||||||
|
if (_.isEmpty(selectedRowKeys)) {
|
||||||
|
message.warning(getLabel(543303, "请选择表格数据!"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.calc.calcTableRef.wrappedInstance.updateEmpLockStatus({ lockStatus: key, acctEmpIds: selectedRowKeys });
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -145,6 +154,8 @@ class Index extends Component {
|
||||||
<Menu.Item key="exportAll">{getLabel(81272, "导出全部")}</Menu.Item>
|
<Menu.Item key="exportAll">{getLabel(81272, "导出全部")}</Menu.Item>
|
||||||
<Menu.Item key="export_custom">{getLabel(544270, "自定义导出")}</Menu.Item>
|
<Menu.Item key="export_custom">{getLabel(544270, "自定义导出")}</Menu.Item>
|
||||||
<Menu.Item key="offlineCompare">{getLabel(543249, "线下对比")}</Menu.Item>
|
<Menu.Item key="offlineCompare">{getLabel(543249, "线下对比")}</Menu.Item>
|
||||||
|
<Menu.Item key="LOCK">{getLabel(111, "批量锁定")}</Menu.Item>
|
||||||
|
<Menu.Item key="UNLOCK">{getLabel(111, "批量解锁")}</Menu.Item>
|
||||||
</Menu>
|
</Menu>
|
||||||
);
|
);
|
||||||
reqBtns = [
|
reqBtns = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue