From b23662c09eb82229403c2d2318bba7892bdd3872 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Wed, 9 Oct 2024 11:10:21 +0800
Subject: [PATCH] =?UTF-8?q?feature/2.15.1.2407.01-=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/salary/components/personalScope.js | 5 +-
.../pages/salary/components/taxAgentSlide.js | 63 ++-----------------
2 files changed, 7 insertions(+), 61 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/salary/components/personalScope.js b/pc4mobx/hrmSalary/pages/salary/components/personalScope.js
index 37356d3d..fa392444 100644
--- a/pc4mobx/hrmSalary/pages/salary/components/personalScope.js
+++ b/pc4mobx/hrmSalary/pages/salary/components/personalScope.js
@@ -157,7 +157,8 @@ class PersonalScope extends Component {
selectedKey, searchValue, rowKeys, personalAddModal,
importParams, previewDataSource, extEmpsWitch, loading
} = this.state;
- const { taxAgentStore: { hideIconInTax, showSalaryItemBtn }, taxAgentId } = this.props;
+ const { taxAgentStore: { PageAndOptAuth }, taxAgentId } = this.props;
+ const showOperateBtn = PageAndOptAuth.opts.includes("admin");
const topTab = [
{
title: "管理范围",
@@ -172,7 +173,7 @@ class PersonalScope extends Component {
viewcondition: "listExt"
}
];
- const btns = (hideIconInTax || showSalaryItemBtn) ? [
+ const btns = showOperateBtn ? [
],
editBtns: [],
children:
@@ -311,7 +255,8 @@ class TaxAgentSlide extends Component {
current === o.key).createBtns}/> :
+ !this.props.taxAgentId ?
+ current === o.key).createBtns}/> :
current === o.key).editBtns : []}
tabDatas={tabs} selectedKey={String(current)} title={title}
onChange={cur => this.setState({ current: parseInt(cur) })}/>