优惠券的接口新增字段

v1.4.0
于肖磊 2025-06-20 17:02:07 +08:00
parent a5d610ee3c
commit cc9ab7c34c
2 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
<template>
<div :class="props.direction == 'vertical' ? 'flex-col gap-x-18' : 'w flex-row gap-y-20 jc-e'">
<div :class="props.direction == 'vertical' ? 'flex-col gap-x-18' : 'flex-1 flex-row gap-y-20 jc-e'">
<template v-for="(item, index) in props.filterData" :key="index">
<div v-if="!isEmpty(item.form_name) && !isEmpty(new_dataInterface) && !isEmpty(item.type)" class="filter-style flex-row gap-12 align-c">
<div v-if="!isEmpty(item.title)" :class="['title', props.direction == 'vertical' ? '' : 'horizontal-title']" :style="`width: ${ Number(props.titleWidth) > 0 ? props.titleWidth + 'px;' : '100%' }`">{{ item.title }}</div>

View File

@ -23,14 +23,14 @@
</div>
<div class="filter-style flex-row gap-12">
<div class="title flex-1">重复领取</div>
<el-select v-model="is_repeat_receive_text" multiple collapse-tags filterable placeholder="请选择是否可以重复领取" @change="handle_search">
<el-select v-model="is_repeat_receive_text" filterable clearable placeholder="请选择是否可以重复领取" @change="handle_search">
<el-option label="否" :value="0" />
<el-option label="是" :value="1" />
</el-select>
</div>
<div class="filter-style flex-row gap-12">
<div class="title flex-1">公共显示</div>
<el-select v-model="is_show_text" multiple collapse-tags filterable placeholder="请选择是否公共显示" @change="handle_search">
<el-select v-model="is_show_text" filterable clearable placeholder="请选择是否公共显示" @change="handle_search">
<el-option label="否" :value="0" />
<el-option label="是" :value="1" />
</el-select>
@ -123,8 +123,8 @@ const handle_search = () => {
const type = ref([]);
const expire_type_ids = ref([]);
const use_limit_type_ids = ref([]);
const is_repeat_receive_text = ref([]);
const is_show_text = ref([]);
const is_repeat_receive_text = ref('');
const is_show_text = ref('');
interface couponType {
value: string;
name: string;
@ -147,8 +147,8 @@ const get_list = (new_page: number) => {
type_ids: type.value.length > 0 ? type.value.join(',') : '',
expire_type_ids: expire_type_ids.value.length > 0 ? expire_type_ids.value.join(',') : '',
use_limit_type_ids: use_limit_type_ids.value.length > 0 ? use_limit_type_ids.value.join(',') : '',
is_repeat_receive: is_repeat_receive_text.value.length > 0? is_repeat_receive_text.value.join(',') : '',
is_show: is_show_text.value.length > 0? is_show_text.value.join(',') : '',
is_repeat_receive: is_repeat_receive_text.value,
is_show: is_show_text.value,
page_size: page_size.value,
};
loading.value = true;