zlisen 3 vuotta sitten
vanhempi
commit
ff69178317
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      src/pages/building/Edit/components/BuildingTypeDetail.jsx

+ 2
- 2
src/pages/building/Edit/components/BuildingTypeDetail.jsx Näytä tiedosto

@@ -20,7 +20,7 @@ const noBorderInput = {
20 20
 
21 21
 const BuildingTypeDetail = (props) => {
22 22
   const { title, dataset, form, visible, onClose, onSubmit } = props
23
-  const { getFieldDecorator, validateFieldsAndScroll } = form
23
+  const { getFieldDecorator, validateFieldsAndScroll,getFieldValue } = form
24 24
   const [priceType, setPriceType] = useState()
25 25
 
26 26
   const handleSubmit = () => {
@@ -78,7 +78,7 @@ const BuildingTypeDetail = (props) => {
78 78
             {getFieldDecorator('endPrice')(
79 79
               <Input placeholder="最高价" style={{width: 'calc(50% - 60px)', borderLeft: 0, borderRight: 0}} />
80 80
               )}
81
-            {<Input style={{...noBorderInput, width: '80px', textAlign: 'right'}} placeholder={priceUnit[priceType]} disabled suffix='万/套' />}
81
+            {<Input style={{...noBorderInput, width: '80px', textAlign: 'right'}} placeholder={priceUnit[getFieldValue('priceType')]} disabled  />}
82 82
           </Input.Group>
83 83
         </Item>
84 84
         <Item label="销售状态" {...formItemLayout}>