Commit 7b10a4cf authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:

parent af3f36ae
...@@ -21,7 +21,7 @@ const CustomInputSearch = props => { ...@@ -21,7 +21,7 @@ const CustomInputSearch = props => {
const [brandValue, setBrandValue] = useState(undefined) const [brandValue, setBrandValue] = useState(undefined)
const handleBrandSearch = (value: any) => { // end value const handleBrandSearch = (value: any) => { // end value
console.log(value, 'handleBrandSearch') console.log(value, '搜索值')
if (value) { if (value) {
PublicApi.getProductSelectGetSelectBrand({ name: value }).then(res => { PublicApi.getProductSelectGetSelectBrand({ name: value }).then(res => {
if (res.code === 1000) if (res.code === 1000)
...@@ -37,7 +37,7 @@ const CustomInputSearch = props => { ...@@ -37,7 +37,7 @@ const CustomInputSearch = props => {
return ( return (
<Space size={20} style={{ justifyContent: justifyAlign, width: '100%' }}> <Space size={20} style={{ justifyContent: justifyAlign, width: '100%' }}>
<Select <Select
value={brandValue} // value={brandValue}
onSearch={value => handleBrandSearch(value)} onSearch={value => handleBrandSearch(value)}
onChange={v => props.mutators.change(v)} onChange={v => props.mutators.change(v)}
{...props.props['x-component-props']} {...props.props['x-component-props']}
......
...@@ -319,11 +319,9 @@ const DirectChannel: React.FC<{}> = () => { ...@@ -319,11 +319,9 @@ const DirectChannel: React.FC<{}> = () => {
actions, actions,
'name', 'name',
FORM_FILTER_PATH, FORM_FILTER_PATH,
); )
FormEffectHooks.onFieldChange$('brandId').subscribe(state => { FormEffectHooks.onFieldInputChange$('brandId').subscribe(state => {
actions.setFieldState('brandId', state => { console.log(state, 'state')
console.log(state)
})
}) })
// useAsyncInitSelect( // useAsyncInitSelect(
// ['memberType', 'roleId', 'level', 'source'], // ['memberType', 'roleId', 'level', 'source'],
......
...@@ -61,6 +61,7 @@ export const channelSchema: ISchema = { ...@@ -61,6 +61,7 @@ export const channelSchema: ISchema = {
filterOption: false, filterOption: false,
notFoundContent: null, notFoundContent: null,
style: { width: '174px', lineHeight: '32px' }, style: { width: '174px', lineHeight: '32px' },
value: null,
}, },
}, },
customerCategoryId: { customerCategoryId: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment