Browse Source

事件回复调发送消息接口

feature
mk 1 year ago
parent
commit
b2b2b3d63b
  1. 19
      src/views/modules/shequzhili/eventOld/cpts/event-info.vue
  2. 5
      src/views/modules/shequzhili/eventOld/cpts/process-form.vue
  3. 21
      src/views/modules/shequzhili/eventOld/eventList.vue

19
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,

5
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: [],

21
src/views/modules/shequzhili/eventOld/eventList.vue

@ -196,7 +196,7 @@
<el-table-column prop="markTypeName" align="center" label="标记" width="80" :show-overflow-tooltip="true">
</el-table-column>
<el-table-column fixed="right" label="操作" align="center" width="100">
<el-table-column fixed="right" label="操作" align="center" width="180">
<template slot-scope="scope">
<el-button v-if="scope.row.status === 'processing' && !scope.row.operationId
" @click="handleDispose(scope.row)" type="text" size="small" class="">处理</el-button>
@ -207,6 +207,7 @@
" @click="handleWatch(scope.row)" type="text" size="small" class="">去评价</el-button>
<el-button v-else @click="handleWatch(scope.row)" type="text" size="small">查看</el-button>
<el-button @click="handleDel(scope.row)" type="text" size="small" class="">删除</el-button>
<el-button @click="handleVote(scope.row)" type="text" size="small" class="">{{scope.row.openFlag === 0 ? '开启表决' : '关闭表决'}}</el-button>
</template>
</el-table-column>
</el-table>
@ -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, "提示", {

Loading…
Cancel
Save