Commit 3f70bc08 authored by 武广's avatar 武广

fix: 修改商品提交不带京东商品问题

parent b139579e
...@@ -70,6 +70,7 @@ const FormRuleVPictures = forwardRef((props, ref) => { ...@@ -70,6 +70,7 @@ const FormRuleVPictures = forwardRef((props, ref) => {
setFieldsValue: obj => { setFieldsValue: obj => {
setDetailImageList(obj.detailImageList || []); setDetailImageList(obj.detailImageList || []);
setImageList(obj.imageList || {}); setImageList(obj.imageList || {});
form.setFieldsValue(obj);
}, },
getFieldsValue: form.getFieldsValue, getFieldsValue: form.getFieldsValue,
reset: () => { reset: () => {
...@@ -123,8 +124,6 @@ const FormRuleVPictures = forwardRef((props, ref) => { ...@@ -123,8 +124,6 @@ const FormRuleVPictures = forwardRef((props, ref) => {
form={form} form={form}
labelCol={{ flex: '110px' }} labelCol={{ flex: '110px' }}
labelAlign="right" labelAlign="right"
labelWrap
wrapperCol={{ flex: 1 }}
colon colon
initialValues={{ initialValues={{
commonImageList: [], commonImageList: [],
...@@ -211,6 +210,7 @@ const FormRuleVPictures = forwardRef((props, ref) => { ...@@ -211,6 +210,7 @@ const FormRuleVPictures = forwardRef((props, ref) => {
setPictureList={list => onPictureSuccessEvent(list, key)} setPictureList={list => onPictureSuccessEvent(list, key)}
/> />
</Form.Item> </Form.Item>
{!imageList[key]?.length && (
<Button <Button
disabled={imageList[key]?.length} disabled={imageList[key]?.length}
className={commonStyle.pullImage} className={commonStyle.pullImage}
...@@ -219,6 +219,7 @@ const FormRuleVPictures = forwardRef((props, ref) => { ...@@ -219,6 +219,7 @@ const FormRuleVPictures = forwardRef((props, ref) => {
> >
拉取公共图 拉取公共图
</Button> </Button>
)}
</div> </div>
))} ))}
<Form.Item <Form.Item
......
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