Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈智峰
jinfa-platform
Commits
7b10a4cf
Commit
7b10a4cf
authored
Aug 18, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
parent
af3f36ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
CustomInputSearch.tsx
src/components/NiceForm/components/CustomInputSearch.tsx
+2
-2
directChannel.tsx
src/pages/commodity/products/directChannel.tsx
+3
-5
channelSchema.tsx
src/pages/commodity/products/schema/channelSchema.tsx
+1
-0
No files found.
src/components/NiceForm/components/CustomInputSearch.tsx
View file @
7b10a4cf
...
...
@@ -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
']}
...
...
src/pages/commodity/products/directChannel.tsx
View file @
7b10a4cf
...
...
@@ -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'],
...
...
src/pages/commodity/products/schema/channelSchema.tsx
View file @
7b10a4cf
...
...
@@ -61,6 +61,7 @@ export const channelSchema: ISchema = {
filterOption
:
false
,
notFoundContent
:
null
,
style
:
{
width
:
'174px'
,
lineHeight
:
'32px'
},
value
:
null
,
},
},
customerCategoryId
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment