From fcf2b8f48c27125248b24452f000e1164d04e2e9 Mon Sep 17 00:00:00 2001 From: "djz236@163.com" Date: Sun, 21 Jan 2024 17:43:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/coupon/components/CouponDetail.vue | 15 +- src/views/coupon/history.vue | 20 +- src/views/coupon/index.vue | 20 +- src/views/coupon/update.vue | 414 ++++++++++++++++++- 4 files changed, 447 insertions(+), 22 deletions(-) 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 @@ - -