|
|
@ -98,7 +98,7 @@ |
|
|
|
|
|
|
|
<div class="div_btn"> |
|
|
|
<el-button type="primary" size="small" class="diy-button--blue" @click="onDeleteBatch">批量删除</el-button> |
|
|
|
<el-button type="primary" size="small" class="diy-button--blue" @click="onMessagePush">公众号消息推送</el-button> |
|
|
|
<el-button type="primary" size="small" class="diy-button--blue" @click="sendFindPeopleMsg">公众号消息推送</el-button> |
|
|
|
<el-button type="primary" size="small" class="diy-button--blue" @click="handleIncrementServeTimes">标记享受服务人员</el-button> |
|
|
|
<el-button type="primary" size="small" class="diy-button--blue" @click="handleSearch">查询</el-button> |
|
|
|
</div> |
|
|
@ -445,9 +445,28 @@ export default { |
|
|
|
this.handleSearch(); |
|
|
|
}, |
|
|
|
// 公众号消息推送 |
|
|
|
onMessagePush(){ |
|
|
|
alert("哥哥,点我") |
|
|
|
}, |
|
|
|
sendFindPeopleMsg(){ |
|
|
|
let parm = { |
|
|
|
parentCategoryCode: this.selfObj.parentCategoryCode, |
|
|
|
categoryCode: this.selfObj.categoryCode, |
|
|
|
resiList: this.selectedPersonListIds, |
|
|
|
serviceTimeStart: this.selfObj.serviceTimeStart, |
|
|
|
serviceTimeEnd: this.selfObj.serviceTimeEnd |
|
|
|
} |
|
|
|
this.$http |
|
|
|
.post("/actual/base/communityPublicity/sendFindPeopleMsg",parm) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg); |
|
|
|
} else { |
|
|
|
this.$message.success("推送成功"); |
|
|
|
this.handleSearch(); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
return this.$message.error("网络错误"); |
|
|
|
}); |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 组织选择触发事件 |
|
|
|
* @returns {Promise<void>} |
|
|
@ -595,11 +614,10 @@ onMessagePush(){ |
|
|
|
type: String, |
|
|
|
required: true, |
|
|
|
}, |
|
|
|
serviceId: { |
|
|
|
type: String, |
|
|
|
selfObj:{ |
|
|
|
type: Object, |
|
|
|
required: true, |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|