From fd332031a6174c80acb6b7979bf8626175ca29e0 Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Wed, 23 Apr 2025 10:52:06 +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/attendanceDataViewSlide.js | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js index be64c8e8..86951bf0 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js @@ -41,7 +41,13 @@ class AttendanceDataViewSlide extends Component { const { columns, list: dataSource, pageNum: current, pageSize, total } = data.pageInfo; this.setState({ pageInfo: { ...pageInfo, current, pageSize, total }, dataSource, - columns: _.map(columns, (o, i) => ({ ...o, width: 150, fixed: i === 0 ? "left" : null })) + columns: [ + ..._.map(columns, (o, i) => ({ ...o, width: 150, fixed: i === 0 ? "left" : null })), + { + title: getLabel(111, "操作"), dataIndex: "operate", width: 80, + render: () => ({getLabel(111, "编辑")}) + } + ] }); } }).catch(() => this.setState({ loading: { ...loading, query: false } })); @@ -87,13 +93,12 @@ class AttendanceDataViewSlide extends Component { /> ]; return ( - } - iconBgcolor="#F14A2D" - buttons={showOperateBtn ? btns : btns.slice(1)}/> - } + } + iconBgcolor="#F14A2D" + buttons={showOperateBtn ? btns : btns.slice(1)}/> + } content={