Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
4bd45beb
Commit
4bd45beb
authored
May 09, 2025
by
靳野
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fix:修复商品价格与库存切换数据情况问题"
This reverts commit
48a96bb2
.
parent
48a96bb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
EditFormTable.jsx
src/pages/ServiceGoods/components/EditFormTable.jsx
+6
-8
No files found.
src/pages/ServiceGoods/components/EditFormTable.jsx
View file @
4bd45beb
...
@@ -56,10 +56,9 @@ const EditFormTable = forwardRef((props, ref) => {
...
@@ -56,10 +56,9 @@ const EditFormTable = forwardRef((props, ref) => {
});
});
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
useEffect
(()
=>
{
useEffect
(()
=>
{
// form.setFieldsValue({
form
.
setFieldsValue
({
// tableList: initData,
tableList
:
initData
,
// });
});
console
.
log
(
'
=================>生成的表格数据
'
,
initData
);
setDataSource
([...
initData
]);
setDataSource
([...
initData
]);
},
[
initData
]);
},
[
initData
]);
...
@@ -106,10 +105,9 @@ const EditFormTable = forwardRef((props, ref) => {
...
@@ -106,10 +105,9 @@ const EditFormTable = forwardRef((props, ref) => {
const
newDataSource
=
[...
dataSource
];
const
newDataSource
=
[...
dataSource
];
newDataSource
[
skuItem
.
rowIndex
].
name
=
skuItem
.
skuName
;
newDataSource
[
skuItem
.
rowIndex
].
name
=
skuItem
.
skuName
;
setDataSource
(
newDataSource
);
setDataSource
(
newDataSource
);
// form.setFieldsValue({
form
.
setFieldsValue
({
// tableList: newDataSource,
tableList
:
newDataSource
,
// });
});
form
.
resetFields
();
};
};
const
onClickEvent
=
(
type
,
row
)
=>
{
const
onClickEvent
=
(
type
,
row
)
=>
{
// 点击拉取京东图片功能
// 点击拉取京东图片功能
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment