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
48a96bb2
Commit
48a96bb2
authored
May 09, 2025
by
靳野
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复商品价格与库存切换数据情况问题
parent
9a51fc97
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
EditFormTable.jsx
src/pages/ServiceGoods/components/EditFormTable.jsx
+8
-6
No files found.
src/pages/ServiceGoods/components/EditFormTable.jsx
View file @
48a96bb2
...
@@ -56,9 +56,10 @@ const EditFormTable = forwardRef((props, ref) => {
...
@@ -56,9 +56,10 @@ 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
]);
...
@@ -105,9 +106,10 @@ const EditFormTable = forwardRef((props, ref) => {
...
@@ -105,9 +106,10 @@ 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
)
=>
{
// 点击拉取京东图片功能
// 点击拉取京东图片功能
...
...
靳野
@ye.jin
mentioned in commit
4bd45beb
·
May 12, 2025
mentioned in commit
4bd45beb
mentioned in commit 4bd45beb96f76e16fd0b75787e956197d7c8db34
Toggle commit list
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