diff --git a/src/views/coupon/components/CouponDetail.vue b/src/views/coupon/components/CouponDetail.vue index ae16056..f068c42 100644 --- a/src/views/coupon/components/CouponDetail.vue +++ b/src/views/coupon/components/CouponDetail.vue @@ -101,6 +101,7 @@ 提交 重置 + 关闭 @@ -186,7 +187,11 @@ isEdit: { type: Boolean, default: false - } + }, + dataId: { + type: Number, + default: 0 + } }, data() { return { @@ -234,15 +239,19 @@ }, created() { if (this.isEdit) { - getCoupon(this.$route.query.id).then(response => { + var dataId=this.dataId + alert(this.dataId); + getCoupon(dataId).then(response => { this.coupon = response.data; }); } this.getProductCateList(); }, methods: { + handleReturn() { + this.$router.back(); + }, dateChange(val) { - console.log("val", val) }, UpNumber(val, limit = 2) { diff --git a/src/views/coupon/history.vue b/src/views/coupon/history.vue index 247b3ba..6cec66e 100644 --- a/src/views/coupon/history.vue +++ b/src/views/coupon/history.vue @@ -1,5 +1,9 @@ - -