Commit 111dc7e4 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏
parents 4f3d69aa 41c48478
...@@ -129,7 +129,10 @@ const MixDrawer: React.FC<MixDrawerProps> = (props: MixDrawerProps) => { ...@@ -129,7 +129,10 @@ const MixDrawer: React.FC<MixDrawerProps> = (props: MixDrawerProps) => {
_params.name = keyWord _params.name = keyWord
} }
_params.shopId = shopId _params.shopId = shopId
_params.idNotInList = selectId if (selectId && Array.isArray(selectId) && selectId.length > 0) {
_params.idNotInList = selectId.join(',')
}
_fetch = PublicApi.getSearchCommodityTemplateGetBrandList; _fetch = PublicApi.getSearchCommodityTemplateGetBrandList;
break; break;
} }
......
...@@ -155,16 +155,18 @@ const OwnMallTempleteEdit: React.FC<ShopPreviewPropsType> = props => { ...@@ -155,16 +155,18 @@ const OwnMallTempleteEdit: React.FC<ShopPreviewPropsType> = props => {
}; };
const getBrandList = async (ids: number[]) => { const getBrandList = async (ids: number[]) => {
const param: any = { if (ids && ids.length > 0) {
current: 1, const param: any = {
pageSize: 20, current: 1,
shopId, pageSize: 20,
idInList: ids shopId,
}; idInList: ids.join(',')
const res = await PublicApi.getSearchCommodityTemplateGetBrandList(param); };
message.destroy() const res = await PublicApi.getSearchCommodityTemplateGetBrandList(param);
if (res.code === 1000 && res.data.data) { message.destroy()
return res.data.data if (res.code === 1000 && res.data.data) {
return res.data.data
}
} }
return []; return [];
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment