|
@@ -3,6 +3,7 @@ import { Button, Modal, Input, Row, Col, message } from 'antd';
|
3
|
3
|
import router from 'umi/router';
|
4
|
4
|
import moment from 'moment';
|
5
|
5
|
import Navigate from '@/components/Navigate';
|
|
6
|
+import AuthButton from '@/components/AuthButton';
|
6
|
7
|
import apis from '../../../../services/apis';
|
7
|
8
|
import request from '../../../../utils/request';
|
8
|
9
|
import Styles from './styles.less';
|
|
@@ -146,8 +147,12 @@ function Basic(props) {
|
146
|
147
|
</div>
|
147
|
148
|
</div>
|
148
|
149
|
<div style={{ textAlign: 'center', marginTop: '272px' }}>
|
149
|
|
- <Button className={Styles.btn} type="primary" htmlType="submit" onClick={() => showModal('recharge')}>充值</Button>
|
150
|
|
- <Button className={Styles.btn} style={{ marginLeft: '80px' }} onClick={() => showModal('refund')}>退款</Button>
|
|
150
|
+ <AuthButton name="admin.funds.account.recharge" noRight={null}>
|
|
151
|
+ <Button className={Styles.btn} type="primary" htmlType="submit" onClick={() => showModal('recharge')}>充值</Button>
|
|
152
|
+ </AuthButton>
|
|
153
|
+ <AuthButton name="admin.funds.account.refund" noRight={null}>
|
|
154
|
+ <Button className={Styles.btn} style={{ marginLeft: '80px' }} onClick={() => showModal('refund')}>退款</Button>
|
|
155
|
+ </AuthButton>
|
151
|
156
|
</div>
|
152
|
157
|
|
153
|
158
|
<Modal
|