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
08804872
Commit
08804872
authored
Mar 30, 2023
by
武广
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改切换门店分组不刷新的问题
parent
dacc0956
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
GoodsGroup.jsx
src/pages/GoodsManage/Takeaway/components/GoodsGroup.jsx
+5
-0
index.jsx
src/pages/GoodsManage/Takeaway/index.jsx
+2
-0
No files found.
src/pages/GoodsManage/Takeaway/components/GoodsGroup.jsx
View file @
08804872
...
@@ -28,6 +28,8 @@ const GoodsGroup = options => {
...
@@ -28,6 +28,8 @@ const GoodsGroup = options => {
})),
})),
);
);
options
.
changeShop
(
+
res
.
data
[
0
].
id
);
options
.
changeShop
(
+
res
.
data
[
0
].
id
);
}
else
{
options
.
changeShop
(
0
);
}
}
};
};
...
@@ -44,6 +46,9 @@ const GoodsGroup = options => {
...
@@ -44,6 +46,9 @@ const GoodsGroup = options => {
}));
}));
setTags
(
arr
);
setTags
(
arr
);
setSelected
(
res
.
data
[
0
].
rackId
);
setSelected
(
res
.
data
[
0
].
rackId
);
}
else
{
setTags
([]);
setSelected
(
0
);
}
}
};
};
...
...
src/pages/GoodsManage/Takeaway/index.jsx
View file @
08804872
...
@@ -148,6 +148,8 @@ const Takeaway = options => {
...
@@ -148,6 +148,8 @@ const Takeaway = options => {
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
groupId
)
{
if
(
groupId
)
{
getDataList
();
getDataList
();
}
else
{
setTableData
([]);
}
}
},
[
groupId
,
options
.
refresh
]);
},
[
groupId
,
options
.
refresh
]);
...
...
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