|
@@ -33,7 +33,7 @@ export default React.forwardRef((props, ref) => {
|
33
|
33
|
|
34
|
34
|
const handleClick = (buildingType) => () => {
|
35
|
35
|
const current = (value || []).filter((it) => it.buildingTypeId === buildingType.buildingTypeId)[0] || {buildingTypeId: buildingType.buildingTypeId}
|
36
|
|
-
|
|
36
|
+ console.log('-------------->', current)
|
37
|
37
|
setCurRow(current)
|
38
|
38
|
setBuildingType(buildingType)
|
39
|
39
|
setShowDrawer(true)
|
|
@@ -84,9 +84,8 @@ export default React.forwardRef((props, ref) => {
|
84
|
84
|
<Checkbox
|
85
|
85
|
checked={checked}
|
86
|
86
|
onChange={handleChange(it)}
|
87
|
|
- >
|
88
|
|
- {it.buildingTypeName}
|
89
|
|
- </Checkbox>
|
|
87
|
+ />
|
|
88
|
+ <span style={{display: 'inline-block', margin: '0 .5em'}}>{it.buildingTypeName}</span>
|
90
|
89
|
{checked && <a href="#" onClick={handleClick(it)}><Icon type="edit" /></a>}
|
91
|
90
|
</Card.Grid>
|
92
|
91
|
)
|