From 80712660b5c49aed125b758f08b8e68c44250584 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Tue, 12 Jul 2022 22:26:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=9D=83=E9=99=90=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E6=96=B0=E5=A2=9E=E7=AB=8B=E5=87=8F=E9=87=91=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/add/add.js | 7 ++++++- src/pages/exchangecode/edit/edit.js | 5 ++++- src/pages/plan/add/step2.js | 7 ++++++- src/pages/plan/key/edit.js | 7 ++++++- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index f8b7f984..8107c08d 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -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') + ) + }> 新建立减金 diff --git a/src/pages/exchangecode/edit/edit.js b/src/pages/exchangecode/edit/edit.js index ed27fb30..bf313664 100644 --- a/src/pages/exchangecode/edit/edit.js +++ b/src/pages/exchangecode/edit/edit.js @@ -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')) + }> 新建立减金 diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index b48d6199..544bb89e 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -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') + ) + }> 新建立减金 diff --git a/src/pages/plan/key/edit.js b/src/pages/plan/key/edit.js index 81033344..bec362c4 100644 --- a/src/pages/plan/key/edit.js +++ b/src/pages/plan/key/edit.js @@ -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') + ) + }> 新建立减金