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) })}/>