From 3c57000afcb324ad20494e4ac35deb7ab80ce7fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Thu, 1 Feb 2024 14:04:55 +0800
Subject: [PATCH] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../hrmSalary/pages/mySalaryBenefits/index.js | 26 ++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js b/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js
index 89d25e4d..3a221393 100644
--- a/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js
+++ b/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js
@@ -11,6 +11,7 @@ import SalaryAdjustmentRecords from "./components/SalaryAdjustmentRecords";
import { MonthRangePicker } from "../reportView/components/statisticalMicroSettingsSlide";
import moment from "moment";
import "./index.less";
+import LogDialog from "../../components/logViewModal";
const getLabel = WeaLocaleProvider.getLabel;
@@ -18,9 +19,9 @@ class Index extends Component {
constructor(props) {
super(props);
this.state = {
- selectedKey: "1",
+ selectedKey: "1", logDialogVisible: false,
salaryYearMonth: [
- moment().subtract(1, 'year').startOf("year").format("YYYY-MM"),
+ moment().subtract(1, "year").startOf("year").format("YYYY-MM"),
moment().endOf("year").format("YYYY-MM")
]
};
@@ -41,9 +42,18 @@ class Index extends Component {
}
return Dom;
};
+ onDropMenuClick = (key) => {
+ switch (key) {
+ case "log":
+ this.setState({ logDialogVisible: true });
+ break;
+ default:
+ break;
+ }
+ };
render() {
- const { selectedKey, salaryYearMonth } = this.state;
+ const { selectedKey, salaryYearMonth, logDialogVisible } = this.state;
const tabs = [
{ key: "1", title: getLabel(111, "工资单") },
{ key: "2", title: getLabel(543150, "调薪记录") }
@@ -61,8 +71,18 @@ class Index extends Component {
iconBgcolor="#F14A2D" tabDatas={tabs} className="mySalary_wrapper"
buttons={selectedKey === "1" ? btns : []} buttonSpace={10} selectedKey={selectedKey}
onChange={selectedKey => this.setState({ selectedKey })}
+ showDropIcon onDropMenuClick={this.onDropMenuClick}
+ dropMenuDatas={[
+ {
+ key: "log", icon: ,
+ content: getLabel(545781, "操作日志")
+ }
+ ]}
>
{this.renderContent()}
+ {/*操作日志*/}
+ this.setState({ logDialogVisible: false })}/>
);
}