From de7180882d6afe67a17968be1b5e3e4ae126115a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Mon, 27 Feb 2023 13:23:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=96=AA=E8=B5=84=E9=A1=B9=E7=9B=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=8C=89=E9=92=AE=E6=9D=83=E9=99=90=E7=9A=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/fieldManagement/components/fieldTable.js | 6 +++--- pc4mobx/hrmSalary/pages/fieldManagement/index.js | 4 ++-- pc4mobx/hrmSalary/pages/salaryItem/index.js | 14 +++++++------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js b/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js index a8493d61..3d68c4b9 100644 --- a/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js +++ b/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js @@ -55,7 +55,7 @@ class FieldTable extends Component { getColumns = () => { const { columns } = this.state; const { taxAgentStore, onEditLedger, onDeleteLedger } = this.props; - const { showSalaryItemBtn } = taxAgentStore; + const { showSalaryItemBtn, showOperateBtn } = taxAgentStore; return _.map([...columns, { dataIndex: "operate", display: true, @@ -70,9 +70,9 @@ class FieldTable extends Component { item.render = (text, record) => { return
onEditLedger(record)}>{showSalaryItemBtn ? "编辑" : "查看"} + onClick={() => onEditLedger(record)}>{(showSalaryItemBtn || showOperateBtn) ? "编辑" : "查看"} { - record.canDelete && showSalaryItemBtn && + record.canDelete && (showSalaryItemBtn || showOperateBtn) && onDeleteLedger(record)}>删除 }
; diff --git a/pc4mobx/hrmSalary/pages/fieldManagement/index.js b/pc4mobx/hrmSalary/pages/fieldManagement/index.js index ae337488..0e6564d9 100644 --- a/pc4mobx/hrmSalary/pages/fieldManagement/index.js +++ b/pc4mobx/hrmSalary/pages/fieldManagement/index.js @@ -71,7 +71,7 @@ class FieldManagement extends Component { render() { const { searchVal, doSearch, slideparams } = this.state; const { taxAgentStore } = this.props; - const { showSalaryItemBtn } = taxAgentStore; + const { showSalaryItemBtn, showOperateBtn } = taxAgentStore; const btns = [