diff --git a/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js b/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js index 30af75d9..c173c4fa 100644 --- a/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js +++ b/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js @@ -80,6 +80,16 @@ class Index extends Component { } }).catch(() => this.setState({ loading: false })); }; + handleOpts = ({ key }, record) => { + const { id, templateId } = record; + switch (key) { + case "template": + console.log(templateId); + break; + default: + break; + } + }; render() { const { loading, dataSource, columns, pageInfo } = this.state; @@ -110,23 +120,27 @@ class Index extends Component { { dataIndex: "operate", title: getLabel(30585, "操作"), width: 170, render: (__, record) => { - const { canSeeDetail, sendNum, sendTotal, haveBackCalc, salaryAcctType } = record; + const { canSeeDetail, sendNum, sendTotal, haveBackCalc, salaryAcctType, id, ackFeedbackStatus } = record; //显示更新模板 const showGrant = haveBackCalc === 1 && salaryAcctType === 0; return { showOperateBtn && - {getLabel(542702, "发放")} + {getLabel(542702, "发放")} } { canSeeDetail && - {getLabel(83110, "查看详情")} + {getLabel(83110, "查看详情")} } { sendNum !== sendTotal && !showGrant && - {getLabel(543603, "更新模板")} + overlay={ this.handleOpts(e, record)}> + {getLabel(543603, "更新模板")} } >