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
fc75f812
Commit
fc75f812
authored
Sep 23, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 店铺装修选择商品品牌筛选,品牌选择列表问题
parent
41cc5889
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
CustomInputSearch.tsx
src/components/NiceForm/components/CustomInputSearch.tsx
+1
-0
effect.ts
src/pages/editor/components/drawer/commodityDrawer/effect.ts
+1
-1
schema.ts
src/pages/editor/components/drawer/commodityDrawer/schema.ts
+1
-0
No files found.
src/components/NiceForm/components/CustomInputSearch.tsx
View file @
fc75f812
...
...
@@ -23,6 +23,7 @@ const CustomInputSearch = props => {
const
[
dataOption
,
setDataOption
]
=
useState
<
any
>
([])
useEffect
(()
=>
{
console
.
log
(
option
,
'option'
)
setDataOption
(
option
)
},
[
option
])
...
...
src/pages/editor/components/drawer/commodityDrawer/effect.ts
View file @
fc75f812
...
...
@@ -16,7 +16,7 @@ export const searchBrandOptionEffect = (
}).
then
(
res
=>
{
context
.
setFieldState
(
fieldName
,
state
=>
{
state
.
props
[
'x-component-props'
].
dataoption
=
res
.
data
?.
data
?.
map
(
item
=>
{
return
{
label
:
item
.
name
,
value
:
item
.
id
};
return
{
name
:
item
.
name
,
id
:
item
.
id
};
});
});
});
...
...
src/pages/editor/components/drawer/commodityDrawer/schema.ts
View file @
fc75f812
...
...
@@ -53,6 +53,7 @@ const CommoditySchema: ISchema = {
style
:
{
width
:
'174px'
},
searchValue
:
null
,
dataoption
:
[],
fieldNames
:
{
label
:
'title'
,
value
:
'id'
,
children
:
'children'
},
},
},
categoryId
:
{
...
...
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