review:【antd】【mall】营销活动的商品选择
This commit is contained in:
@@ -133,6 +133,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
placeholder: '请输入最大砍价金额',
|
||||
},
|
||||
},
|
||||
// TODO @puhui999:这里交互不太对,可以对比下 element-plus 版本呢
|
||||
{
|
||||
fieldName: 'spuId',
|
||||
label: '砍价商品',
|
||||
|
||||
@@ -105,6 +105,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
options: getDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING, 'boolean'),
|
||||
},
|
||||
},
|
||||
// TODO @puhui999:这里交互不太对,可以对比下 element-plus 版本呢
|
||||
{
|
||||
fieldName: 'spuId',
|
||||
label: '拼团商品',
|
||||
|
||||
@@ -78,7 +78,6 @@ const [Modal, modalApi] = useVbenModal({
|
||||
switch (data.productScope) {
|
||||
case PromotionProductScopeEnum.CATEGORY.scope: {
|
||||
const categoryIds = data.productCategoryIds;
|
||||
|
||||
data.productScopeValues = Array.isArray(categoryIds)
|
||||
? categoryIds
|
||||
: categoryIds
|
||||
|
||||
Reference in New Issue
Block a user