From 4eb957cb177ce3330af80f9814e5a6509713c88f Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Wed, 23 Apr 2025 18:15:24 +0800
Subject: [PATCH] =?UTF-8?q?custom/=E4=B8=87=E5=90=9B=E7=AD=91=E5=A4=A9?=
=?UTF-8?q?=E7=A7=91=E6=8A=80-=E5=90=88=E5=B9=B6=E4=B8=9A=E5=8A=A1?=
=?UTF-8?q?=E7=BA=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/attendanceDataEditSlide.js | 44 +++++++++++++++++++
.../components/attendanceDataViewSlide.js | 11 +++--
2 files changed, 51 insertions(+), 4 deletions(-)
create mode 100644 pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataEditSlide.js
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataEditSlide.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataEditSlide.js
new file mode 100644
index 00000000..f339f298
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataEditSlide.js
@@ -0,0 +1,44 @@
+/*
+ * 考勤引用数据编辑
+ * @Author: 黎永顺
+ * @Date: 2025/4/23
+ * @Wechat:
+ * @Email: 971387674@qq.com
+ * @description:
+*/
+import React, { Component } from "react";
+import { WeaLocaleProvider, WeaSlideModal } from "ecCom";
+import { Button } from "antd";
+import "./index.less";
+
+const { getLabel } = WeaLocaleProvider;
+
+class AttendanceDataEditSlide extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {};
+ }
+
+ componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.visible !== this.props.visible && nextProps.visible) {
+ document.querySelector(".attendanceRefWrapper").classList.add("zIndex0-attendance");
+ } else if (nextProps.visible !== this.props.visible && !nextProps.visible) {
+ document.querySelector(".attendanceRefWrapper").classList.remove("zIndex0-attendance");
+ }
+ }
+
+ render() {
+ const btns = [
+
+ ];
+ return (
+ }
+ />
+ );
+ }
+}
+
+export default AttendanceDataEditSlide;
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js
index 86951bf0..0264cbf2 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js
@@ -6,8 +6,9 @@
*/
import React, { Component } from "react";
import { WeaInputSearch, WeaLocaleProvider, WeaSlideModal, WeaTable, WeaTop } from "ecCom";
-import { Button } from "antd";
import { viewAttendQuote } from "../../../../apis/attendance";
+import AttendanceDataEditSlide from "./attendanceDataEditSlide";
+import { Button } from "antd";
import "./index.less";
const { getLabel } = WeaLocaleProvider;
@@ -17,7 +18,7 @@ class AttendanceDataViewSlide extends Component {
super(props);
this.state = {
loading: { query: false }, keyword: "", dataSource: [], columns: [],
- pageInfo: { current: 1, pageSize: 10, total: 0 }
+ pageInfo: { current: 1, pageSize: 10, total: 0 }, visible: false
};
}
@@ -45,7 +46,8 @@ class AttendanceDataViewSlide extends Component {
..._.map(columns, (o, i) => ({ ...o, width: 150, fixed: i === 0 ? "left" : null })),
{
title: getLabel(111, "操作"), dataIndex: "operate", width: 80,
- render: () => ({getLabel(111, "编辑")})
+ render: () => ( this.setState({ visible: true })}>{getLabel(111, "编辑")})
}
]
});
@@ -66,7 +68,7 @@ class AttendanceDataViewSlide extends Component {
render() {
const { showOperateBtn, salaryYearMonth, ...extra } = this.props;
- const { columns, dataSource, loading, pageInfo, keyword } = this.state;
+ const { columns, dataSource, loading, pageInfo, keyword, visible } = this.state;
const pagination = {
...pageInfo,
showTotal: (total) => `共 ${total} 条`,
@@ -108,6 +110,7 @@ class AttendanceDataViewSlide extends Component {
+ this.setState({ visible: false })}/>
}
/>