|
@@ -9,7 +9,7 @@ el-table__row<template>
|
|
|
</div>
|
|
</div>
|
|
|
</el-radio-button>
|
|
</el-radio-button>
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
- <div class="border" style="margin-top: 30px"></div>
|
|
|
|
|
|
|
+ <div class="border" style="margin-top: 30px;"></div>
|
|
|
<div class="search-list" v-if="select !== '2'">
|
|
<div class="search-list" v-if="select !== '2'">
|
|
|
<el-input
|
|
<el-input
|
|
|
class="search"
|
|
class="search"
|
|
@@ -20,7 +20,7 @@ el-table__row<template>
|
|
|
@change="onSearch"
|
|
@change="onSearch"
|
|
|
>
|
|
>
|
|
|
</el-input>
|
|
</el-input>
|
|
|
- <el-select class="select" style="margin-top: 30px" v-model="sortStr" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select class="select" style="margin-top: 30px;" v-model="sortStr" placeholder="请选择">
|
|
|
<el-option v-for="item in sortList" :key="item.value" :label="item.label" :value="item.value">
|
|
<el-option v-for="item in sortList" :key="item.value" :label="item.label" :value="item.value">
|
|
|
</el-option>
|
|
</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
@@ -116,7 +116,12 @@ export default {
|
|
|
this.url = '/userCoupon/all';
|
|
this.url = '/userCoupon/all';
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
- this.getData();
|
|
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.page = 1;
|
|
|
|
|
+ this.sortStr = 'createdAt,desc';
|
|
|
|
|
+ this.search = '';
|
|
|
|
|
+ this.getData();
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -134,26 +139,28 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
beforeGetData() {
|
|
beforeGetData() {
|
|
|
|
|
+ console.log(this.select);
|
|
|
if (this.select === '1') {
|
|
if (this.select === '1') {
|
|
|
return {
|
|
return {
|
|
|
search: this.search,
|
|
search: this.search,
|
|
|
query: {
|
|
query: {
|
|
|
userId: this.$store.state.userInfo.id,
|
|
userId: this.$store.state.userInfo.id,
|
|
|
- // status: 'TRANSFERRED',
|
|
|
|
|
- consignment: true
|
|
|
|
|
|
|
+ status: 'TRANSFERRED'
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
} else if (this.select === '0') {
|
|
} else if (this.select === '0') {
|
|
|
return {
|
|
return {
|
|
|
search: this.search,
|
|
search: this.search,
|
|
|
query: {
|
|
query: {
|
|
|
- userId: this.$store.state.userInfo.id
|
|
|
|
|
|
|
+ userId: this.$store.state.userInfo.id,
|
|
|
|
|
+ status: 'NORMAL,TRADING,GIFTING'
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
} else if (this.select === '2') {
|
|
} else if (this.select === '2') {
|
|
|
return {
|
|
return {
|
|
|
query: {
|
|
query: {
|
|
|
- userId: this.$store.state.userInfo.id
|
|
|
|
|
|
|
+ userId: this.$store.state.userInfo.id,
|
|
|
|
|
+ used: false
|
|
|
// status: 'creator'
|
|
// status: 'creator'
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|