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 = {
BY_USER: {
USER: {
type: 1,
name: '直接领取'
},
BY_ADMIN: {
ADMIN: {
type: 2,
name: '指定发放'
},
BY_REGISTER: {
REGISTER: {
type: 3,
name: '新人券'
}

View File

@ -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)

View File

@ -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() //
//