From b2b2b3d63be643058d1eb45d047f255b14558edb Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 16 Jul 2024 18:05:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=9B=9E=E5=A4=8D=E8=B0=83?= =?UTF-8?q?=E5=8F=91=E9=80=81=E6=B6=88=E6=81=AF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shequzhili/eventOld/cpts/event-info.vue | 19 +++++++++++++++++ .../shequzhili/eventOld/cpts/process-form.vue | 5 +++++ .../modules/shequzhili/eventOld/eventList.vue | 21 ++++++++++++++++++- 3 files changed, 44 insertions(+), 1 deletion(-) diff --git a/src/views/modules/shequzhili/eventOld/cpts/event-info.vue b/src/views/modules/shequzhili/eventOld/cpts/event-info.vue index bd47b311b..4998887f0 100644 --- a/src/views/modules/shequzhili/eventOld/cpts/event-info.vue +++ b/src/views/modules/shequzhili/eventOld/cpts/event-info.vue @@ -503,6 +503,7 @@ export default { this.formData.agencyId = ""; this.formData.gridId = ""; } + this.formData.openFlag = null const url = "/governance/icEventOld/add"; const { formData } = this; const { data, code, msg } = await requestPost(url, { @@ -537,6 +538,7 @@ export default { } this.replayInfo = this.$refs.ref_processinfo_dispose.replayInfo; this.replayInfo.icEventId = this.eventId; + this.replayInfo.openFlag = null //回复属性赋值 let url = "/governance/icEventOld/reply"; await this.submitDispose(url, this.replayInfo); @@ -569,10 +571,27 @@ export default { } else { this.$message.info("请选择一种处理方式"); } + if(this.formData.operationType){ + await this.sendProcessNotificationMsg() + } } else { return false; } }, + async sendProcessNotificationMsg(){ + let parm = { + operationType:this.eventDetailData.operationType, + openId:this.eventDetailData.openId, + eventContent:this.eventDetailData.eventContent, + latestOperatedTime:this.eventDetailData.latestOperatedTime + } + let {data,code,msg} = await requestPost('/actual/base/communityPublicity/sendProcessNotificationMsg',parm) + if(code === 0){ + console.log(data,'sssssssssssssssssssssssssssss'); + }else{ + console.log(msg); + } + }, async submitDispose(url, params) { const { data, code, msg } = await requestPost(url, { ...params, diff --git a/src/views/modules/shequzhili/eventOld/cpts/process-form.vue b/src/views/modules/shequzhili/eventOld/cpts/process-form.vue index 3522bc207..9330a1cc2 100644 --- a/src/views/modules/shequzhili/eventOld/cpts/process-form.vue +++ b/src/views/modules/shequzhili/eventOld/cpts/process-form.vue @@ -50,6 +50,11 @@ let loading; // 加载动画 export default { data() { return { + formData: { + operationType: '', + openFlag:null, + }, + casOptions: [], iscascaderShow: 0, selCategoryArray: [], diff --git a/src/views/modules/shequzhili/eventOld/eventList.vue b/src/views/modules/shequzhili/eventOld/eventList.vue index e748133cc..f8529504f 100644 --- a/src/views/modules/shequzhili/eventOld/eventList.vue +++ b/src/views/modules/shequzhili/eventOld/eventList.vue @@ -196,7 +196,7 @@ - + @@ -362,6 +363,7 @@ export default { status: "", firstIdList: [], secondIdList: [], + openFlag:null }, cateOptions: [], optionProps: { @@ -604,7 +606,24 @@ export default { this.handleClose(); this.getTableData(); }, + async handleVote(row){ + const url = "/governance/icEventOld/updateSpecialColumn"; + let params = { + icEventId:row.icEventId, + openFlag:row.openFlag==1?0:1, + } + + const { data, code, msg } = await requestPost(url, params); + + if (code === 0) { + this.$message.success("操作成功!"); + this.getTableData(); + } else { + this.$message.error("操作失败!"); + } + + }, async handleDel(rowData) { let message = "确认删除?"; this.$confirm(message, "提示", {