From 444cf4952d7de58f0dbaa0bbb2daadd36466dbae Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Mon, 11 Mar 2024 15:06:04 +0800 Subject: [PATCH] bug --- .../EventMarketing/activeNewlyweds/index.vue | 2 +- .../EventMarketing/activeRecommend/index.vue | 53 ++++++++++++------- .../impl/ActiveRecommendServiceImpl.java | 3 +- 3 files changed, 38 insertions(+), 20 deletions(-) diff --git a/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue b/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue index e345c5aca..fcef9780c 100644 --- a/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue @@ -854,7 +854,7 @@ export default { }, Deleteshan(row){ const ids = row.id || this.ids; - this.$modal.confirm('是否确认删除消费有礼活动编号为"' + ids + '"的数据项?').then(function() { + this.$modal.confirm('是否确认删除此条新人有礼活动的信息?').then(function() { return delActiveNewlyweds(ids); }).then(() => { this.getList(); diff --git a/fuintAdmin/src/views/EventMarketing/activeRecommend/index.vue b/fuintAdmin/src/views/EventMarketing/activeRecommend/index.vue index 302ee82bb..6a4d66cd6 100644 --- a/fuintAdmin/src/views/EventMarketing/activeRecommend/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeRecommend/index.vue @@ -125,11 +125,15 @@ - - - - + + + + + + + + -
+
新用户获得
选择活动
活动名称:{{ruleForm.activeNewName}}
@@ -619,7 +623,12 @@ import { listActiveRecommend, getActiveRecommend, delActiveRecommend, addActiveRecommend, updateActiveRecommend,listFavorable,listExchange } from "@/api/EventMarketing/activeRecommend"; import ImageUpload from '@/components/ImageUpload' import {getToken} from "@/utils/auth"; -import {getActiveNewlyweds, listActiveNewlyweds, updateActiveNewlyweds} from "@/api/EventMarketing/activeNewlyweds"; +import { + delActiveNewlyweds, + getActiveNewlyweds, + listActiveNewlyweds, + updateActiveNewlyweds +} from "@/api/EventMarketing/activeNewlyweds"; import {looklook, looklooklook} from "@/api/EventMarketing/activeConsumption"; export default { name: "ActiveRecommend", @@ -771,10 +780,10 @@ export default { { required: true, message: '必填项不能为空', trigger: 'blur' }, ], activeStartTime: [ - { type: 'date', required: true, message: '必填项不能为空', trigger: 'change' }, + { required: true, message: '必填项不能为空', trigger: 'change' }, ], activeEndTime: [ - { type: 'date', required: true, message: '必填项不能为空', trigger: 'change' }, + { required: true, message: '必填项不能为空', trigger: 'change' }, ], activeRule:[ { required: true, message: '必填项不能为空', trigger: 'blur' }, @@ -1148,18 +1157,26 @@ export default { }); }, handleDeletexia(row){ - getActiveRecommend(row.id).then(response => { + // getActiveRecommend(row.id).then(response => { + // + // let data = response.data + // data.isonline = 1 + // data.status = 2 + // updateActiveRecommend(data).then(response => { + // this.$modal.msgSuccess("下线成功"); + // + // this.getactivelist() + // }); + // + // }); - let data = response.data - data.isonline = 1 - data.status = 2 - updateActiveRecommend(data).then(response => { - this.$modal.msgSuccess("下线成功"); + this.$modal.confirm('是否确认下线此条推荐有礼活动的信息?').then(function() { + return updateActiveRecommend({id:row.id,isonline : 1,status : 2}); + }).then(() => { + this.$modal.msgSuccess("下线成功"); - this.getactivelist() - }); - - }); + this.getactivelist() + }).catch(() => {}); }, /** 提交按钮 */ submitForm() { diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendServiceImpl.java index 8417ca9fa..d3fd4734d 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendServiceImpl.java @@ -273,7 +273,8 @@ public class ActiveRecommendServiceImpl extends ServiceImpl