Commit 111dc7e4 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏
parents 4f3d69aa 41c48478
......@@ -129,7 +129,10 @@ const MixDrawer: React.FC<MixDrawerProps> = (props: MixDrawerProps) => {
_params.name = keyWord
}
_params.shopId = shopId
_params.idNotInList = selectId
if (selectId && Array.isArray(selectId) && selectId.length > 0) {
_params.idNotInList = selectId.join(',')
}
_fetch = PublicApi.getSearchCommodityTemplateGetBrandList;
break;
}
......
......@@ -155,17 +155,19 @@ const OwnMallTempleteEdit: React.FC<ShopPreviewPropsType> = props => {
};
const getBrandList = async (ids: number[]) => {
if (ids && ids.length > 0) {
const param: any = {
current: 1,
pageSize: 20,
shopId,
idInList: ids
idInList: ids.join(',')
};
const res = await PublicApi.getSearchCommodityTemplateGetBrandList(param);
message.destroy()
if (res.code === 1000 && res.data.data) {
return res.data.data
}
}
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