根据权限禁用新增立减金按钮
This commit is contained in:
parent
f4beb25607
commit
80712660b5
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue