张延森 2 年 前
コミット
f1ce014464
共有1 個のファイルを変更した8 個の追加6 個の削除を含む
  1. 8
    6
      src/pages/broker/agentRule/index.jsx

+ 8
- 6
src/pages/broker/agentRule/index.jsx ファイルの表示

@@ -1,5 +1,5 @@
1 1
 import React, { useEffect, useState } from 'react'
2
-import { Spin, Card, Form, Select, InputNumber, Button, notification } from 'antd'
2
+import { Spin, Card, Form, Select, Input, Button, notification } from 'antd'
3 3
 import Wangedit from '@/components/Wangedit/Wangedit';
4 4
 import ImageUpload from '@/components/XForm/ImageUpload'
5 5
 import { fetch, apis } from '@/utils/request';
@@ -91,12 +91,14 @@ const AgentRule = React.forwardRef((props, ref) => {
91 91
           <FormItem label="推荐金额" help="推荐经纪人奖励">
92 92
             {
93 93
               getFieldDecorator('referralFee')(
94
-                <InputNumber
95
-                  defaultValue={0}
96
-                  min={0}
94
+                <Input
95
+                  defaultValue={0.00}
96
+                  min={0.00}
97
+                  step={0.01}
97 98
                   style={{ width: '100%' }}
98
-                  formatter={value => `¥ ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')}
99
-                  parser={value => value.replace(/\¥\s?|(,*)/g, '')}
99
+                  type="number"
100
+                  addonBefore="¥"
101
+                  addonAfter="元"
100 102
                 />
101 103
               )
102 104
             }