From 18ea4f2a6ccc41dbb1c2488010e8c152072952a0 Mon Sep 17 00:00:00 2001 From: "@QQNZX" Date: Fri, 1 Mar 2024 11:01:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fuintAdmin/src/App.vue | 2 +- .../api/EventMarketing/activeConsumption.js | 2 +- .../activeConsumption/index.vue | 63 ++++++--- .../EventMarketing/activeNewlyweds/index.vue | 133 +++++++++--------- 4 files changed, 109 insertions(+), 91 deletions(-) diff --git a/fuintAdmin/src/App.vue b/fuintAdmin/src/App.vue index 60c976733..326251846 100644 --- a/fuintAdmin/src/App.vue +++ b/fuintAdmin/src/App.vue @@ -20,7 +20,7 @@ diff --git a/fuintAdmin/src/api/EventMarketing/activeConsumption.js b/fuintAdmin/src/api/EventMarketing/activeConsumption.js index e6f22c120..9d8f1ae2d 100644 --- a/fuintAdmin/src/api/EventMarketing/activeConsumption.js +++ b/fuintAdmin/src/api/EventMarketing/activeConsumption.js @@ -78,7 +78,7 @@ export function updateActiveConsumption(data) { // 删除消费有礼活动 export function delActiveConsumption(id) { return request({ - url: '/business/marketingActivity/activeConsumption/' + id, + url: 'business/marketingActivity/activeConsumption/delById/' + id, method: 'delete' }) } diff --git a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue index 9c5a34e8f..f478f9c63 100644 --- a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue @@ -71,18 +71,24 @@ @@ -98,11 +104,11 @@ - - - + + + + + + @@ -151,7 +165,7 @@ - + { this.form = response.data; - this.form.tableDatas = response.data.activeConsumptionChildList.filter(item => item.activeGift == '1') - this.tableDatas = response.data.activeConsumptionChildList.filter(item => item.activeGift == '2') - this.form.shiwudata = response.data.activeConsumptionChildList.filter(item => item.activeGift == '4') + if(response.data.activeConsumptionChildList&&response.data.activeConsumptionChildList.length >1){ + this.form.tableDatas = response.data.activeConsumptionChildList.filter(item => item.activeGift == '1') + this.tableDatas = response.data.activeConsumptionChildList.filter(item => item.activeGift == '2') + this.form.shiwudata = response.data.activeConsumptionChildList.filter(item => item.activeGift == '4') + } + + this.open = true; this.title = "修改消费有礼活动"; }); @@ -1099,16 +1117,19 @@ export default { } }); }, - /** 删除按钮操作 */ - handleDelete(row) { - const ids = row.id || this.ids; - this.$modal.confirm('是否确认删除消费有礼活动编号为"' + ids + '"的数据项?').then(function() { - return delActiveConsumption(ids); - }).then(() => { - this.getList(); - this.$modal.msgSuccess("删除成功"); - }).catch(() => {}); + Deleteshan(row){ + + const ids = row.id || this.ids; + this.$modal.confirm('是否确认删除消费有礼活动编号为"' + ids + '"的数据项?').then(function() { + return delActiveConsumption(ids); + }).then(() => { + this.getList(); + this.$modal.msgSuccess("删除成功"); + }).catch(() => {}); + }, + /** 删除按钮操作 */ + /** 导出按钮操作 */ handleExport() { this.download('business/marketingActivity/activeConsumption/export', { diff --git a/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue b/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue index bc56750d4..5834fabb6 100644 --- a/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue @@ -181,78 +181,66 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + @@ -474,6 +462,7 @@ export default { points: null, growthValue: null, }, + activeFullminusList: [], // 表单参数 form: { id:1, @@ -508,11 +497,19 @@ export default { }; }, created() { + this.getList() // this.handleUpdate(); }, methods: { /** 查询新人有礼活动列表 */ getList() { + this.loading = true; + getActiveNewlyweds(1).then(res=>{ + this.activeFullminusList = res.data; + this.total = res.data.total; + console.log(res) + this.loading = false; + }) // this.loading = true; // listActiveNewlyweds(this.queryParams).then(response => { // this.activeNewlywedsList = response.data.records;