From 732f3e16077eee6ee2927d8faedbe64617000fe3 Mon Sep 17 00:00:00 2001 From: liyongshun <971387674@qq.com> Date: Thu, 30 Jun 2022 14:21:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AE=E6=9D=83?= =?UTF-8?q?=E9=99=90=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/dataAcquisition/attendance/index.js | 64 ++++++++++--------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js index 99cb4514..183cde75 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js @@ -203,7 +203,10 @@ export default class Attendance extends React.Component { // 考情引用的列 getColumns(columns) { - const { attendanceStore: { deleteAttendance, doInit } } = this.props; + const { + attendanceStore: { deleteAttendance, doInit }, + taxAgentStore: { showOperateBtn } + } = this.props; let result = [...columns]; result.push({ title: "操作", @@ -212,35 +215,36 @@ export default class Attendance extends React.Component { return (
this.handleViewAttendance(record)}>查看 - { - Modal.confirm({ - title: "信息确认", - content: "确认删除", - onOk: () => { - deleteAttendance([ - record.id - ]).then(({ status, errormsg }) => { - if (status) { - message.success("删除成功"); - doInit({}); - } else { - message.error(errormsg || "删除失败"); - } - }); - }, - onCancel: () => {} - }); - }}> - 删除 - - }> - - - - + {showOperateBtn && + { + Modal.confirm({ + title: "信息确认", + content: "确认删除", + onOk: () => { + deleteAttendance([ + record.id + ]).then(({ status, errormsg }) => { + if (status) { + message.success("删除成功"); + doInit({}); + } else { + message.error(errormsg || "删除失败"); + } + }); + }, + onCancel: () => {} + }); + }}> + 删除 + + }> + + + + }
); }