From 3eb9d1c7d77201ec0ef6315cebdf593dbb4bd8dd Mon Sep 17 00:00:00 2001 From: zhouhefeng Date: Mon, 27 Apr 2026 15:54:20 +0800 Subject: [PATCH] commit --- .../activity/smartbenefits/manage/index.html | 26 ++++++++++++------- .../activity/trainSignUp/manage/index.html | 26 ++++++++++++------- 2 files changed, 32 insertions(+), 20 deletions(-) diff --git a/src/main/resources/views/platform/zhgh/activity/smartbenefits/manage/index.html b/src/main/resources/views/platform/zhgh/activity/smartbenefits/manage/index.html index ed2eef34..02f23784 100644 --- a/src/main/resources/views/platform/zhgh/activity/smartbenefits/manage/index.html +++ b/src/main/resources/views/platform/zhgh/activity/smartbenefits/manage/index.html @@ -213,16 +213,22 @@ layout("/layouts/platform.html"){ this.$message.warning('请输入通知内容') return } - const resp = await this.$axios.post(loc() + "/sendNotify", { - activityId: this.notifyActivityId, - content: this.notifyContent - }) - if (resp.code === 0) { - this.$message.success(resp.msg) - this.notifyDialogVisible = false - } else { - this.$message.warning(resp.msg) - } + this.$confirm("确认发送通知给所有报名人员吗?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning" + }).then(async () => { + const resp = await this.$axios.post(loc() + "/sendNotify", { + activityId: this.notifyActivityId, + content: this.notifyContent + }) + if (resp.code === 0) { + this.$message.success(resp.msg) + this.notifyDialogVisible = false + } else { + this.$message.warning(resp.msg) + } + }).catch(() => {}) }, async activityStatusChange(notice, val, id) { const resp = await this.$axios.post(loc() + "/activityStatusChange", { notice: notice, isDisabled: val, id }) diff --git a/src/main/resources/views/platform/zhgh/activity/trainSignUp/manage/index.html b/src/main/resources/views/platform/zhgh/activity/trainSignUp/manage/index.html index c4c070ce..377cd4a0 100644 --- a/src/main/resources/views/platform/zhgh/activity/trainSignUp/manage/index.html +++ b/src/main/resources/views/platform/zhgh/activity/trainSignUp/manage/index.html @@ -213,16 +213,22 @@ layout("/layouts/platform.html"){ this.$message.warning('请输入通知内容') return } - const resp = await this.$axios.post(loc() + "/sendNotify", { - activityId: this.notifyActivityId, - content: this.notifyContent - }) - if (resp.code === 0) { - this.$message.success(resp.msg) - this.notifyDialogVisible = false - } else { - this.$message.warning(resp.msg) - } + this.$confirm("确认发送通知给所有报名人员吗?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning" + }).then(async () => { + const resp = await this.$axios.post(loc() + "/sendNotify", { + activityId: this.notifyActivityId, + content: this.notifyContent + }) + if (resp.code === 0) { + this.$message.success(resp.msg) + this.notifyDialogVisible = false + } else { + this.$message.warning(resp.msg) + } + }).catch(() => {}) }, async activityStatusChange(notice, val, id) { const resp = await this.$axios.post(loc() + "/activityStatusChange", { notice: notice, isDisabled: val, id })