From 79a3f460e75714a17f68727980df8e182846f7e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Fri, 13 Oct 2023 10:57:47 +0800 Subject: [PATCH] =?UTF-8?q?feature/2.9.42310.01-=E5=B7=A5=E8=B5=84?= =?UTF-8?q?=E5=8D=95=E5=8F=91=E6=94=BE=E9=A1=B5=E9=9D=A2=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/grantTableList/index.js | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) 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, "更新模板")} } >