code review:优惠劵逻辑

This commit is contained in:
YunaiV 2023-09-02 00:34:45 +08:00
parent 9aa7ba3578
commit d10530c9f5
3 changed files with 5 additions and 5 deletions

View File

@ -213,15 +213,15 @@ export const CouponTemplateValidityTypeEnum = {
* *
*/ */
export const CouponTemplateTakeTypeEnum = { export const CouponTemplateTakeTypeEnum = {
BY_USER: { USER: {
type: 1, type: 1,
name: '直接领取' name: '直接领取'
}, },
BY_ADMIN: { ADMIN: {
type: 2, type: 2,
name: '指定发放' name: '指定发放'
}, },
BY_REGISTER: { REGISTER: {
type: 3, type: 3,
name: '新人券' name: '新人券'
} }

View File

@ -210,7 +210,7 @@ const emits = defineEmits<{
/** 全选 */ /** 全选 */
const handleCheckAll = (checked: boolean) => { const handleCheckAll = (checked: boolean) => {
//todo debugger
console.log('checkAll', checked) console.log('checkAll', checked)
allChecked.value = checked allChecked.value = checked
const index = checkedPageNos.value.indexOf(queryParams.value.pageNo) const index = checkedPageNos.value.indexOf(queryParams.value.pageNo)

View File

@ -107,7 +107,7 @@ const queryParams = ref({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
name: null, name: null,
canTakeTypes: [CouponTemplateTakeTypeEnum.BY_ADMIN.type] canTakeTypes: [CouponTemplateTakeTypeEnum.ADMIN.type]
}) // }) //
const queryFormRef = ref() // const queryFormRef = ref() //
// //