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,14 +210,16 @@ const FormRuleVPictures = forwardRef((props, ref) => { ...@@ -211,14 +210,16 @@ const FormRuleVPictures = forwardRef((props, ref) => {
setPictureList={list => onPictureSuccessEvent(list, key)} setPictureList={list => onPictureSuccessEvent(list, key)}
/> />
</Form.Item> </Form.Item>
<Button {!imageList[key]?.length && (
disabled={imageList[key]?.length} <Button
className={commonStyle.pullImage} disabled={imageList[key]?.length}
onClick={() => onPullCommonImg(key)} className={commonStyle.pullImage}
type="primary" onClick={() => onPullCommonImg(key)}
> type="primary"
拉取公共图 >
</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