+
+
+ 关闭
+
名称
@@ -170,11 +174,7 @@
}
},
created() {
- getCoupon(this.$route.query.id).then(response => {
- this.coupon = response.data;
- });
- this.listQuery.couponId=this.$route.query.id;
- this.getList();
+
},
filters: {
formatType(type) {
@@ -244,6 +244,13 @@
},
},
methods: {
+ showDetail(id){
+ getCoupon(id).then(response => {
+ this.coupon = response.data;
+ });
+ this.listQuery.couponId=id;
+ this.getList();
+ },
getList(){
this.listLoading=true;
fetchCouponHistoryList(this.listQuery).then(response=>{
@@ -268,6 +275,9 @@
handleCurrentChange(val) {
this.listQuery.pageNum = val;
this.getList();
+ },
+ handleReturn() {
+ this.$emit('doback')
}
}
}
diff --git a/src/views/coupon/index.vue b/src/views/coupon/index.vue
index a6e2d37..a47d092 100644
--- a/src/views/coupon/index.vue
+++ b/src/views/coupon/index.vue
@@ -106,12 +106,16 @@