Commit 48a96bb2 authored by 靳野's avatar 靳野

fix:修复商品价格与库存切换数据情况问题

parent 9a51fc97
......@@ -56,9 +56,10 @@ const EditFormTable = forwardRef((props, ref) => {
});
const [form] = Form.useForm();
useEffect(() => {
form.setFieldsValue({
tableList: initData,
});
// form.setFieldsValue({
// tableList: initData,
// });
console.log('=================>生成的表格数据', initData);
setDataSource([...initData]);
}, [initData]);
......@@ -105,9 +106,10 @@ const EditFormTable = forwardRef((props, ref) => {
const newDataSource = [...dataSource];
newDataSource[skuItem.rowIndex].name = skuItem.skuName;
setDataSource(newDataSource);
form.setFieldsValue({
tableList: newDataSource,
});
// form.setFieldsValue({
// tableList: newDataSource,
// });
form.resetFields();
};
const onClickEvent = (type, row) => {
// 点击拉取京东图片功能
......
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