|
@@ -22,7 +22,8 @@ const AddEnterprise = ({
|
|
|
}
|
|
}
|
|
|
const [state, setState] = useState({
|
|
const [state, setState] = useState({
|
|
|
visible: false,
|
|
visible: false,
|
|
|
- list: null
|
|
|
|
|
|
|
+ list: null,
|
|
|
|
|
+ newValue: ''
|
|
|
})
|
|
})
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
@@ -39,7 +40,11 @@ const AddEnterprise = ({
|
|
|
const selectProps = {
|
|
const selectProps = {
|
|
|
mode: 'multiple',
|
|
mode: 'multiple',
|
|
|
style: { width: '100%' },
|
|
style: { width: '100%' },
|
|
|
|
|
+ value: state.newValue,
|
|
|
options: compilationv2.map(item => ({ label: item.name, value: item.ID })),
|
|
options: compilationv2.map(item => ({ label: item.name, value: item.ID })),
|
|
|
|
|
+ onChange: newValue => {
|
|
|
|
|
+ setState({ ...state, newValue })
|
|
|
|
|
+ },
|
|
|
placeholder: '请选择授权定额',
|
|
placeholder: '请选择授权定额',
|
|
|
maxTagCount: 'responsive'
|
|
maxTagCount: 'responsive'
|
|
|
}
|
|
}
|