魏超 5 years ago
parent
commit
15b694eab0

+ 7
- 2
src/pages/funds/accountfunds/components/Basic.jsx View File

@@ -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

+ 3
- 1
src/pages/funds/accountfunds/components/ConsumerOrder.jsx View File

@@ -196,7 +196,9 @@ function RechargeOrder(props) {
196 196
                 </Form.Item>
197 197
             </Form>
198 198
             <div style={{ marginTop: '20px' }}>
199
-                <Button type="primary" onClick={() => exportReport()} style={{ float: 'right', marginBottom: '20px', zIndex: 1 }} >导出</Button>
199
+                <AuthButton name="admin.funds.account.recharge" noRight={null}>
200
+                    <Button type="primary" onClick={() => exportReport()} style={{ float: 'right', marginBottom: '20px', zIndex: 1 }} >导出</Button>
201
+                </AuthButton>
200 202
             </div>
201 203
             <Table dataSource={data.records} columns={columns} pagination={false} style={{ marginTop: '20px' }} />
202 204
             <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>

+ 4
- 1
src/pages/funds/accountfunds/components/RechargeOrder.jsx View File

@@ -5,6 +5,7 @@ import moment from 'moment';
5 5
 import Navigate from '@/components/Navigate'
6 6
 import apis from '../../../../services/apis';
7 7
 import request from '../../../../utils/request';
8
+import AuthButton from '@/components/AuthButton';
8 9
 import ShowVoucher from './ShowVoucher';
9 10
 
10 11
 
@@ -217,7 +218,9 @@ function RechargeOrder(props) {
217 218
                 </Form.Item>
218 219
             </Form>
219 220
             <div style={{ marginTop: '20px' }}>
220
-                <Button type="primary" onClick={() => exportReport()} style={{ float: 'right', marginBottom: '20px', zIndex: 1 }} >导出</Button>
221
+                <AuthButton name="admin.funds.account.export" noRight={null}>
222
+                    <Button type="primary" onClick={() => exportReport()} style={{ float: 'right', marginBottom: '20px', zIndex: 1 }} >导出</Button>
223
+                </AuthButton>
221 224
             </div>
222 225
             <Table dataSource={data.records} columns={columns} pagination={false} style={{ marginTop: '20px' }} />
223 226
             <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>

+ 4
- 1
src/pages/funds/accountfunds/components/RefundOrder.jsx View File

@@ -5,6 +5,7 @@ import moment from 'moment';
5 5
 import withActions from '@/components/ActionList';
6 6
 import EditIcon from '@/components/EditIcon';
7 7
 import apis from '../../../../services/apis';
8
+import AuthButton from '@/components/AuthButton';
8 9
 import request from '../../../../utils/request';
9 10
 import Navigate from '@/components/Navigate'
10 11
 import ShowVoucher from './ShowVoucher';
@@ -205,7 +206,9 @@ function RechargeOrder(props) {
205 206
                 </Form.Item>
206 207
             </Form>
207 208
             <div style={{ marginTop: '20px' }}>
208
-                <Button type="primary" onClick={() => exportReport()} style={{ float: 'right', marginBottom: '20px', zIndex: 1 }} >导出</Button>
209
+                <AuthButton name="admin.funds.account.export" noRight={null}>
210
+                    <Button type="primary" onClick={() => exportReport()} style={{ float: 'right', marginBottom: '20px', zIndex: 1 }} >导出</Button>
211
+                </AuthButton>
209 212
             </div>
210 213
             <Table dataSource={data.records} columns={columns} pagination={false} style={{ marginTop: '20px' }} />
211 214
             <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>