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

fix:

parent af3f36ae
......@@ -21,7 +21,7 @@ const CustomInputSearch = props => {
const [brandValue, setBrandValue] = useState(undefined)
const handleBrandSearch = (value: any) => { // end value
console.log(value, 'handleBrandSearch')
console.log(value, '搜索值')
if (value) {
PublicApi.getProductSelectGetSelectBrand({ name: value }).then(res => {
if (res.code === 1000)
......@@ -37,7 +37,7 @@ const CustomInputSearch = props => {
return (
<Space size={20} style={{ justifyContent: justifyAlign, width: '100%' }}>
<Select
value={brandValue}
// value={brandValue}
onSearch={value => handleBrandSearch(value)}
onChange={v => props.mutators.change(v)}
{...props.props['x-component-props']}
......
......@@ -319,11 +319,9 @@ const DirectChannel: React.FC<{}> = () => {
actions,
'name',
FORM_FILTER_PATH,
);
FormEffectHooks.onFieldChange$('brandId').subscribe(state => {
actions.setFieldState('brandId', state => {
console.log(state)
})
)
FormEffectHooks.onFieldInputChange$('brandId').subscribe(state => {
console.log(state, 'state')
})
// useAsyncInitSelect(
// ['memberType', 'roleId', 'level', 'source'],
......
......@@ -61,6 +61,7 @@ export const channelSchema: ISchema = {
filterOption: false,
notFoundContent: null,
style: { width: '174px', lineHeight: '32px' },
value: null,
},
},
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