Commit 1c2006cd authored by 武广's avatar 武广

fix: 修复拉取jd图片失败问题

parent 9a5a3a8b
...@@ -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,
......
...@@ -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"
......
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