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: () => {} + }); + }}> + 删除 + + }> + + + + }
); }