From a3a1c0852781d63b9631a48327b0a3a589367dd3 Mon Sep 17 00:00:00 2001 From: lzhizhao <790086754@qq.com> Date: Mon, 16 Jun 2025 10:21:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=AF=E5=88=86=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=81=E4=BC=9A=E5=91=98=E7=AD=89=E7=BA=A7?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../marketing/level/popup/add-or-update.vue | 42 +- .../modules/marketing/points-order/index.vue | 548 +++++++----------- .../points-order/popup/view-details.vue | 321 ++++++++++ 3 files changed, 559 insertions(+), 352 deletions(-) create mode 100644 src/views/modules/marketing/points-order/popup/view-details.vue diff --git a/src/views/modules/marketing/level/popup/add-or-update.vue b/src/views/modules/marketing/level/popup/add-or-update.vue index 9dab80c..4e04d7a 100644 --- a/src/views/modules/marketing/level/popup/add-or-update.vue +++ b/src/views/modules/marketing/level/popup/add-or-update.vue @@ -78,24 +78,28 @@ export default { }, methods: { queryTableData(pageNo, pageSize) { - setTimeout(() => { - setTimeout(() => { - this.$refs.oTableThree.complete([ - { - levelName: "", - requiredGrowthValue: 0, - growthValueUpperLimit: 999999999, - enableMemberDiscount: false, - enablePointsRedemption: false, - enableBirthdayCoupons: false, - enableBirthdayReward: false, - discountRate: "", - rewardEffectiveTimeType: "", - memberLevelCouponsList: [], - }, - ]); - }); - }, 10); + this.$api.marketing.marketingLevelPage(this.modalData).then((res) => { + let list = res.data.data ? res.data.data : []; + this.$refs.oTableThree.complete(list) + }); + // setTimeout(() => { + // setTimeout(() => { + // this.$refs.oTableThree.complete([ + // { + // levelName: "", + // requiredGrowthValue: 0, + // growthValueUpperLimit: 999999999, + // enableMemberDiscount: false, + // enablePointsRedemption: false, + // enableBirthdayCoupons: false, + // enableBirthdayReward: false, + // discountRate: "", + // rewardEffectiveTimeType: "", + // memberLevelCouponsList: [], + // }, + // ]); + // }); + // }, 10); }, toggle(e) { if (this.modalConfig.show == false) { @@ -515,4 +519,4 @@ export default { }, asyncComputed: {}, }; - \ No newline at end of file + diff --git a/src/views/modules/marketing/points-order/index.vue b/src/views/modules/marketing/points-order/index.vue index d150b36..0cc8b59 100644 --- a/src/views/modules/marketing/points-order/index.vue +++ b/src/views/modules/marketing/points-order/index.vue @@ -1,375 +1,257 @@