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

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

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