Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
1c2006cd
Commit
1c2006cd
authored
Nov 23, 2022
by
武广
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复拉取jd图片失败问题
parent
9a5a3a8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
EditFormTable.jsx
src/pages/ServiceGoods/components/EditFormTable.jsx
+12
-1
FormRuleVPictures.jsx
src/pages/ServiceGoods/components/FormRuleVPictures.jsx
+5
-1
No files found.
src/pages/ServiceGoods/components/EditFormTable.jsx
View file @
1c2006cd
...
@@ -115,7 +115,18 @@ const EditFormTable = forwardRef((props, ref) => {
...
@@ -115,7 +115,18 @@ const EditFormTable = forwardRef((props, ref) => {
tableList
:
newDataSource
,
tableList
:
newDataSource
,
});
});
};
};
const
onClickEvent
=
()
=>
{};
const
onClickEvent
=
(
type
,
row
)
=>
{
// 点击拉取京东图片功能
if
(
type
===
'
cloneImg
'
)
{
customer
.
onEventBus
(
type
,
row
);
return
;
}
// 修改sku名称
if
(
type
===
'
updateName
'
)
{
rowOnClickEvent
(
row
);
}
};
useImperativeHandle
(
ref
,
()
=>
({
useImperativeHandle
(
ref
,
()
=>
({
onCheck
,
onCheck
,
...
...
src/pages/ServiceGoods/components/FormRuleVPictures.jsx
View file @
1c2006cd
...
@@ -67,7 +67,10 @@ const FormRuleVPictures = forwardRef((props, ref) => {
...
@@ -67,7 +67,10 @@ const FormRuleVPictures = forwardRef((props, ref) => {
useImperativeHandle
(
ref
,
()
=>
({
useImperativeHandle
(
ref
,
()
=>
({
onCheck
,
onCheck
,
setFieldsValue
:
form
.
setFieldsValue
,
setFieldsValue
:
obj
=>
{
setDetailImageList
(
obj
.
detailImageList
||
[]);
setImageList
(
obj
.
imageList
||
{});
},
getFieldsValue
:
form
.
getFieldsValue
,
getFieldsValue
:
form
.
getFieldsValue
,
reset
:
()
=>
{
reset
:
()
=>
{
form
.
resetFields
();
form
.
resetFields
();
...
@@ -203,6 +206,7 @@ const FormRuleVPictures = forwardRef((props, ref) => {
...
@@ -203,6 +206,7 @@ const FormRuleVPictures = forwardRef((props, ref) => {
/>
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Button
<
Button
disabled=
{
imageList
[
key
]?.
length
}
className=
{
commonStyle
.
pullImage
}
className=
{
commonStyle
.
pullImage
}
onClick=
{
()
=>
onPullCommonImg
(
key
)
}
onClick=
{
()
=>
onPullCommonImg
(
key
)
}
type=
"primary"
type=
"primary"
...
...
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