|
@@ -17,7 +17,6 @@ export default props => {
|
17
|
17
|
const [visible, setVisible] = useState(false);
|
18
|
18
|
const [group, setGroup] = useState({ groupId: undefined, groupName: '请选择' })
|
19
|
19
|
const getGroupTitle = val => {
|
20
|
|
- console.log(val, (list.filter(x => x.drainageId == val)[0] || {}).name, '========')
|
21
|
20
|
return (list.filter(x => x.drainageId == val)[0] || {}).name || '请选择'
|
22
|
21
|
}
|
23
|
22
|
const updateGroup = val => setGroup({ groupId: val, groupName: getGroupTitle(val) })
|
|
@@ -35,7 +34,6 @@ export default props => {
|
35
|
34
|
},
|
36
|
35
|
}).then(data => {
|
37
|
36
|
const getGroupTitle = val => {
|
38
|
|
- console.log(val, (data.records.filter(x => x.drainageId == val)[0] || {}).name, '========')
|
39
|
37
|
return (data.records.filter(x => x.drainageId == val)[0] || {}).name || '请选择'
|
40
|
38
|
}
|
41
|
39
|
const updateGroup = val => setGroup({ groupId: val, groupName: getGroupTitle(val) })
|