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
268bda1c
Commit
268bda1c
authored
Jul 07, 2023
by
武广
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 解决参数多传问题
parent
d1c26369
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
index.jsx
src/components/CustomTree/index.jsx
+3
-3
FormTakeaway.jsx
src/pages/ServiceGoods/components/FormTakeaway.jsx
+1
-1
index.jsx
src/pages/ServiceGoods/index.jsx
+1
-1
No files found.
src/components/CustomTree/index.jsx
View file @
268bda1c
...
...
@@ -24,7 +24,7 @@ const CustomTree = forwardRef(props => {
const
findArr
=
childrens
=>
{
childrens
.
forEach
(
node
=>
{
if
(
node
.
children
&&
node
.
children
.
length
)
{
node
.
visibleChildren
&&
arr
.
push
(
initChildrenStatus
(
node
.
children
,
node
.
checked
));
node
.
visibleChildren
&&
arr
.
push
(
initChildrenStatus
(
node
.
children
));
findArr
(
node
.
children
);
}
});
...
...
@@ -69,7 +69,7 @@ const CustomTree = forwardRef(props => {
}
});
};
props
.
value
&&
props
.
value
.
length
&&
checkfn
(
props
.
value
,
json
);
props
.
value
&&
props
.
value
.
length
&&
checkfn
(
props
.
value
);
};
// 格式化数据
const
filterData
=
(
arr
,
parentChecked
)
=>
{
...
...
@@ -247,7 +247,7 @@ const CustomTree = forwardRef(props => {
await
getSyncLoadChildrens
(
datas
,
ckey
,
isChecked
);
}
changeChecked
(
datas
,
ckey
,
isChecked
);
const
values
=
getCheckTreeValue
(
datas
,
isChecked
);
const
values
=
getCheckTreeValue
(
datas
);
if
(
level
===
1
)
{
onVisibleChildren
(
''
,
false
);
}
...
...
src/pages/ServiceGoods/components/FormTakeaway.jsx
View file @
268bda1c
...
...
@@ -989,7 +989,7 @@ const TakeawayGoodsInfo = forwardRef((props, ref) => {
singularSpu[0]?.specs[0]?.unit &&
singularSpu.map((item, index) => (
<div className={styles.specsSingularBetween}>
<Form.Item label={calcLabelName(item
, 'singular'
)}>
<Form.Item label={calcLabelName(item)}>
<div className={styles.specsSingularBetween}>
<span className={styles.repertoryLimit}>
{item?.specs[0]?.productStock}/{item?.specs[0]?.maxStock}
...
...
src/pages/ServiceGoods/index.jsx
View file @
268bda1c
...
...
@@ -355,7 +355,7 @@ const ServiceGoods = options => {
setIsUseCache
(
true
);
setVisibleCacheEdit
(
false
);
onSetData
(
SourceData
);
onValuesChange
(
SourceData
,
!
0
);
onValuesChange
(
SourceData
);
// 外卖类型---
if
(
SourceData
&&
SourceData
?.
type
===
5
)
{
setTakeawayEditData
(
SourceData
);
...
...
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