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
f2b50150
Commit
f2b50150
authored
Jun 15, 2023
by
张子雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/storeManagement' into feature/meal-3.0
* feat/storeManagement: feat: 删除多余接口
parents
fdd8d796
bd575acf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
24 deletions
+1
-24
index.jsx
src/pages/StoreManagement/addModal/index.jsx
+1
-14
service.js
src/pages/StoreManagement/service.js
+0
-10
No files found.
src/pages/StoreManagement/addModal/index.jsx
View file @
f2b50150
import
React
,
{
useState
,
useEffect
,
forwardRef
,
useRef
,
useImperativeHandle
}
from
'
react
'
;
import
React
,
{
useState
,
useEffect
,
forwardRef
,
useRef
,
useImperativeHandle
}
from
'
react
'
;
import
{
Button
,
Modal
,
Select
,
Form
,
notification
}
from
'
antd
'
;
import
{
Button
,
Modal
,
Select
,
Form
,
notification
}
from
'
antd
'
;
import
styles
from
'
../index.less
'
;
import
styles
from
'
../index.less
'
;
import
{
apiSelect
edList
,
apiSelect
List
,
apiShopAdd
}
from
'
../service.js
'
;
import
{
apiSelectList
,
apiShopAdd
}
from
'
../service.js
'
;
const
AddModal
=
props
=>
{
const
AddModal
=
props
=>
{
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
...
@@ -30,18 +30,6 @@ const AddModal = props => {
...
@@ -30,18 +30,6 @@ const AddModal = props => {
handleCancel
(
true
);
handleCancel
(
true
);
}
}
};
};
const
getSelectedList
=
async
()
=>
{
const
res
=
await
apiSelectedList
({
enterpriseId
});
if
(
res
.
businessCode
===
'
0000
'
)
{
const
{
data
}
=
res
;
const
list
=
[];
data
.
forEach
(
item
=>
{
list
.
push
(
item
.
shopId
);
});
form
.
setFieldsValue
({
shopIds
:
list
});
setSelectList
(
list
);
}
};
const
getSelectList
=
async
()
=>
{
const
getSelectList
=
async
()
=>
{
const
res
=
await
apiSelectList
({
enterpriseId
});
const
res
=
await
apiSelectList
({
enterpriseId
});
if
(
res
.
businessCode
===
'
0000
'
)
{
if
(
res
.
businessCode
===
'
0000
'
)
{
...
@@ -50,7 +38,6 @@ const AddModal = props => {
...
@@ -50,7 +38,6 @@ const AddModal = props => {
label
:
item
.
shopName
,
label
:
item
.
shopName
,
}));
}));
setOptions
(
optionData
);
setOptions
(
optionData
);
// getSelectedList();
}
}
};
};
...
...
src/pages/StoreManagement/service.js
View file @
f2b50150
...
@@ -101,13 +101,3 @@ export const apiShopAdd = async params => {
...
@@ -101,13 +101,3 @@ export const apiShopAdd = async params => {
});
});
return
data
;
return
data
;
};
};
// [企业店铺]-企业已选的店铺
// http://yapi.quantgroups.com/project/389/interface/api/65534
export
const
apiSelectedList
=
async
params
=>
{
const
data
=
await
request
.
post
(
`
${
apiPrefix
}
/enterprise/shop/selected/list`
,
{
prefix
:
roleApi
,
data
:
params
,
});
return
data
;
};
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