Skip to content

Commit 823530b

Browse files
YunaiVgitee-org
authored andcommitted
!547 【代码优化】商城: 满减活动范围支持分类多选
Merge pull request !547 from puhui999/dev-crm
2 parents cb6e716 + 1a0ff02 commit 823530b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/mall/promotion/rewardActivity/RewardForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
label="分类"
5757
prop="productCategoryIds"
5858
>
59-
<ProductCategorySelect v-model="formData.productCategoryIds" />
59+
<ProductCategorySelect v-model="formData.productCategoryIds" :multiple="true" />
6060
</el-form-item>
6161
<el-form-item label="备注" prop="remark">
6262
<el-input v-model="formData.remark" placeholder="请输入备注" />
@@ -188,7 +188,7 @@ const getProductScope = async () => {
188188
case PromotionProductScopeEnum.CATEGORY.scope:
189189
await nextTick()
190190
let productCategoryIds = formData.value.productScopeValues as any
191-
if (Array.isArray(productCategoryIds) && productCategoryIds.length > 0) {
191+
if (Array.isArray(productCategoryIds) && productCategoryIds.length === 1) {
192192
// 单选时使用数组不能反显
193193
productCategoryIds = productCategoryIds[0]
194194
}

0 commit comments

Comments
 (0)