From f582da141233c4de47ac33c8eb3ce101a7f977a7 Mon Sep 17 00:00:00 2001 From: zhangrui Date: Fri, 28 Aug 2026 18:43:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8C=E5=B7=A5=E7=A6=8F=E5=88=A9=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=EF=BC=9A=201=E3=80=81=E7=A6=8F=E5=88=A9=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=AE=A1=E7=90=86=EF=BC=9A=E6=B7=BB=E5=8A=A0=E7=A6=8F?= =?UTF-8?q?=E5=88=A9=E5=88=86=E7=BB=84=E9=80=89=E6=8B=A9=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=202=E3=80=81pc=E7=AB=AF=E3=80=81=E7=A7=BB=E5=8A=A8=E7=AB=AF=20?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=A6=8F=E5=88=A9=E3=80=81=E5=8F=8A=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=83=85=E5=86=B5=EF=BC=88=E4=BB=A3=E9=80=89=E6=8C=89?= =?UTF-8?q?=E9=92=AE=EF=BC=89=EF=BC=9A=E6=B7=BB=E5=8A=A0=E9=85=8D=E9=80=81?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E3=80=81=E5=A4=87=E6=B3=A8=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E3=80=82=203=E3=80=81=E9=80=89=E6=8B=A9=E6=83=85=E5=86=B5?= =?UTF-8?q?=EF=BC=9A=E6=B6=88=E6=81=AF=E5=8F=91=E9=80=81=204=E3=80=81?= =?UTF-8?q?=E8=AF=84=E4=BB=B7=E5=88=97=E8=A1=A8=E5=8F=8A=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../welfare/selectionSituation/index.html | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/src/main/resources/views/platform/zhgh/welfare/selectionSituation/index.html b/src/main/resources/views/platform/zhgh/welfare/selectionSituation/index.html index bc87083..ece7475 100644 --- a/src/main/resources/views/platform/zhgh/welfare/selectionSituation/index.html +++ b/src/main/resources/views/platform/zhgh/welfare/selectionSituation/index.html @@ -329,6 +329,55 @@ layout("/layouts/platform.html"){ }) }, + // 打开发送窗口时清空上次编辑内容,实际接收人由后台按当前查询条件重新计算。 + openMessageDialog() { + if (!this.pageForm.projectId) { + this.$message.warning("请先选择福利项目") + return + } + this.$set(this.messageDialog, "messageContent", "") + this.$set(this.messageDialog, "visible", true) + this.$nextTick(() => { + if (this.$refs.messageForm) { + this.$refs.messageForm.clearValidate() + } + }) + }, + + closeMessageDialog(done) { + this.$set(this.messageDialog, "visible", false) + if (typeof done === "function") { + done() + } + }, + + sendMessage() { + this.$refs.messageForm.validate((valid) => { + if (!valid) { + return + } + const messageContent = (this.messageDialog.messageContent || "").trim() + if (!messageContent) { + this.$message.warning("请输入有效的消息内容") + return + } + this.messageSending = true + this.$axios.post("/platform/welfare/selection/situation/sendMessage", { + pageForm: JSON.stringify(this.pageForm), + messageContent: messageContent + }).then((res) => { + if (res.code === 0) { + this.$message.success(res.msg) + this.closeMessageDialog() + } else { + this.$message.error(res.msg) + } + }).finally(() => { + this.messageSending = false + }) + }) + }, + // 管理员待选 proxySelect(row) { this.optionSelectVisible = true