From d10530c9f5d731d3419e9adee60c4a7b3cb4213c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 2 Sep 2023 00:34:45 +0800 Subject: [PATCH] =?UTF-8?q?code=20review=EF=BC=9A=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=8A=B5=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/constants.ts | 6 +++--- src/views/mall/product/spu/components/SpuTableSelect.vue | 2 +- .../mall/promotion/coupon/components/CouponSendForm.vue | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 47257f4f..8d783635 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -213,15 +213,15 @@ export const CouponTemplateValidityTypeEnum = { * 优惠劵模板的领取方式的枚举 */ export const CouponTemplateTakeTypeEnum = { - BY_USER: { + USER: { type: 1, name: '直接领取' }, - BY_ADMIN: { + ADMIN: { type: 2, name: '指定发放' }, - BY_REGISTER: { + REGISTER: { type: 3, name: '新人券' } diff --git a/src/views/mall/product/spu/components/SpuTableSelect.vue b/src/views/mall/product/spu/components/SpuTableSelect.vue index d7d15439..9e193257 100644 --- a/src/views/mall/product/spu/components/SpuTableSelect.vue +++ b/src/views/mall/product/spu/components/SpuTableSelect.vue @@ -210,7 +210,7 @@ const emits = defineEmits<{ /** 全选 */ const handleCheckAll = (checked: boolean) => { - //todo 不触发? + debugger console.log('checkAll', checked) allChecked.value = checked const index = checkedPageNos.value.indexOf(queryParams.value.pageNo) diff --git a/src/views/mall/promotion/coupon/components/CouponSendForm.vue b/src/views/mall/promotion/coupon/components/CouponSendForm.vue index a4a90f43..15c32ecf 100644 --- a/src/views/mall/promotion/coupon/components/CouponSendForm.vue +++ b/src/views/mall/promotion/coupon/components/CouponSendForm.vue @@ -107,7 +107,7 @@ const queryParams = ref({ pageNo: 1, pageSize: 10, name: null, - canTakeTypes: [CouponTemplateTakeTypeEnum.BY_ADMIN.type] + canTakeTypes: [CouponTemplateTakeTypeEnum.ADMIN.type] }) // 查询参数 const queryFormRef = ref() // 搜索的表单 // 领取人的编号列表