From 01eeccaecfafad2257a4b1e18bdc56f5e9c6dd38 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Fri, 25 Oct 2024 09:55:57 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components copy/wine/addModal.vue | 388 ++++++++++++++++++ .../components copy/wine/record.vue | 145 +++++++ .../components copy/winestorage/addModal.vue | 188 +++++++++ .../winestorage/historyModal.vue | 38 ++ .../components copy/winestorage/record.vue | 166 ++++++++ .../components copy/winetotal/winetotal.vue | 82 ++++ .../addCoupon.vue => add_coupon.vue} | 255 +++++++----- .../components/coupon_details.vue | 204 +++++++++ src/views/coupon_manage/couponEnum.js | 25 +- src/views/coupon_manage/coupon_list.vue | 51 +-- 10 files changed, 1413 insertions(+), 129 deletions(-) create mode 100644 src/views/application/components copy/wine/addModal.vue create mode 100644 src/views/application/components copy/wine/record.vue create mode 100644 src/views/application/components copy/winestorage/addModal.vue create mode 100644 src/views/application/components copy/winestorage/historyModal.vue create mode 100644 src/views/application/components copy/winestorage/record.vue create mode 100644 src/views/application/components copy/winetotal/winetotal.vue rename src/views/coupon_manage/{components/addCoupon.vue => add_coupon.vue} (53%) create mode 100644 src/views/coupon_manage/components/coupon_details.vue diff --git a/src/views/application/components copy/wine/addModal.vue b/src/views/application/components copy/wine/addModal.vue new file mode 100644 index 0000000..a52be43 --- /dev/null +++ b/src/views/application/components copy/wine/addModal.vue @@ -0,0 +1,388 @@ + + + + + \ No newline at end of file diff --git a/src/views/application/components copy/wine/record.vue b/src/views/application/components copy/wine/record.vue new file mode 100644 index 0000000..7e4ada5 --- /dev/null +++ b/src/views/application/components copy/wine/record.vue @@ -0,0 +1,145 @@ + + + \ No newline at end of file diff --git a/src/views/application/components copy/winestorage/addModal.vue b/src/views/application/components copy/winestorage/addModal.vue new file mode 100644 index 0000000..c7c0b84 --- /dev/null +++ b/src/views/application/components copy/winestorage/addModal.vue @@ -0,0 +1,188 @@ + + + + + \ No newline at end of file diff --git a/src/views/application/components copy/winestorage/historyModal.vue b/src/views/application/components copy/winestorage/historyModal.vue new file mode 100644 index 0000000..41961be --- /dev/null +++ b/src/views/application/components copy/winestorage/historyModal.vue @@ -0,0 +1,38 @@ + + + \ No newline at end of file diff --git a/src/views/application/components copy/winestorage/record.vue b/src/views/application/components copy/winestorage/record.vue new file mode 100644 index 0000000..4837e0b --- /dev/null +++ b/src/views/application/components copy/winestorage/record.vue @@ -0,0 +1,166 @@ + + + \ No newline at end of file diff --git a/src/views/application/components copy/winetotal/winetotal.vue b/src/views/application/components copy/winetotal/winetotal.vue new file mode 100644 index 0000000..5a57a65 --- /dev/null +++ b/src/views/application/components copy/winetotal/winetotal.vue @@ -0,0 +1,82 @@ + + + + + \ No newline at end of file diff --git a/src/views/coupon_manage/components/addCoupon.vue b/src/views/coupon_manage/add_coupon.vue similarity index 53% rename from src/views/coupon_manage/components/addCoupon.vue rename to src/views/coupon_manage/add_coupon.vue index fa12b7a..25d5dea 100644 --- a/src/views/coupon_manage/components/addCoupon.vue +++ b/src/views/coupon_manage/add_coupon.vue @@ -1,83 +1,111 @@ \ No newline at end of file diff --git a/src/views/coupon_manage/components/coupon_details.vue b/src/views/coupon_manage/components/coupon_details.vue new file mode 100644 index 0000000..b0fb115 --- /dev/null +++ b/src/views/coupon_manage/components/coupon_details.vue @@ -0,0 +1,204 @@ + + + + + diff --git a/src/views/coupon_manage/couponEnum.js b/src/views/coupon_manage/couponEnum.js index 9bf81ab..94a6b6e 100644 --- a/src/views/coupon_manage/couponEnum.js +++ b/src/views/coupon_manage/couponEnum.js @@ -19,14 +19,33 @@ export default { label: '折扣' } ], - effectType: [ + cycle: [ + { label: '周一'}, + { label: '周二'}, + { label: '周三'}, + { label: '周四'}, + { label: '周五'}, + { label: '周六'}, + { label: '周七'}, + ], + validityType: [ { value: '0', - label: '一直有效' + label: '领券后有效期内可用' }, { value: '1', - label: '时限有效' + label: '固定有效期范围内可用' + } + ], + effectType: [ + { + value: '0', + label: '全时段可用' + }, + { + value: '1', + label: '指定时间段' } ] } \ No newline at end of file diff --git a/src/views/coupon_manage/coupon_list.vue b/src/views/coupon_manage/coupon_list.vue index 9c9b65a..ec307f0 100644 --- a/src/views/coupon_manage/coupon_list.vue +++ b/src/views/coupon_manage/coupon_list.vue @@ -1,42 +1,43 @@ \ No newline at end of file + From f68cf9fab0e8d43479e9b33fbfb870fd315b9d0b Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Thu, 31 Oct 2024 09:30:18 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/coupon_details.vue | 36 ++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/src/views/coupon_manage/components/coupon_details.vue b/src/views/coupon_manage/components/coupon_details.vue index 1e7f88b..e36e8ba 100644 --- a/src/views/coupon_manage/components/coupon_details.vue +++ b/src/views/coupon_manage/components/coupon_details.vue @@ -38,8 +38,8 @@ -
- +
+ @@ -71,6 +71,16 @@
+
+ +
@@ -101,7 +111,13 @@ export default { size: 10 }, resetQuery: null, - tableData: null + tableData: { + data: [], + page: 0, + size: 10, + loading: false, + total: 0 + } } }, mounted() { @@ -126,6 +142,9 @@ export default { page: this.query.page, size: this.query.size }) + this.tableData.loading = false + this.tableData.data = res.content + this.tableData.total = res.totalElements }, /** @@ -157,7 +176,16 @@ export default { this.query.couponId = obj.id this.getTableData() }, - + // 分页大小改变 + sizeChange(e) { + this.tableData.size = e + this.getTableData() + }, + // 分页回调 + paginationChange(e) { + this.tableData.page = e - 1 + this.getTableData() + }, /** * 关闭详情 */