根据权限禁用新增立减金按钮

This commit is contained in:
wangsongsole 2022-07-12 22:26:32 +08:00
parent f4beb25607
commit 80712660b5
4 changed files with 22 additions and 4 deletions

View File

@ -1601,7 +1601,12 @@ export default class acclist extends React.Component {
loading={this.state.newGoldLoading}
onClick={() => {
this.addProduct('addKnockGold')
}}>
}}
disabled={
!JSON.parse(
sessionStorage.getItem('isEarlyWarningMan')
)
}>
新建立减金
</Button>
</div>

View File

@ -1365,7 +1365,10 @@ export default class exchangedit extends React.Component {
loading={this.state.newGoldLoading}
onClick={() => {
this.addProduct('addKnockGold')
}}>
}}
disabled={
!JSON.parse(sessionStorage.getItem('isEarlyWarningMan'))
}>
新建立减金
</Button>
</div>

View File

@ -1433,7 +1433,12 @@ export default class acclist extends React.Component {
loading={this.state.newGoldLoading}
onClick={() => {
this.addProduct('addKnockGold')
}}>
}}
disabled={
!JSON.parse(
sessionStorage.getItem('isEarlyWarningMan')
)
}>
新建立减金
</Button>
</div>

View File

@ -1621,7 +1621,12 @@ export default class acclist extends React.Component {
loading={this.state.newGoldLoading}
onClick={() => {
this.addProduct('addKnockGold')
}}>
}}
disabled={
!JSON.parse(
sessionStorage.getItem('isEarlyWarningMan')
)
}>
新建立减金
</Button>
</div>