Browse Source

公众号消息推送接口联调

feature
mk 1 year ago
parent
commit
99a6000981
  1. 7
      src/views/modules/communityService/fuwuzhaoren/index.vue
  2. 30
      src/views/modules/communityService/fuwuzhaoren/personList.vue
  3. 10
      src/views/modules/communityService/gangweizhaoren/index.vue
  4. 30
      src/views/modules/communityService/gangweizhaoren/personList.vue
  5. 9
      src/views/modules/communityService/jinengzhaoren/index.vue
  6. 30
      src/views/modules/communityService/jinengzhaoren/personList.vue
  7. 30
      src/views/modules/communityService/policy/personList.vue
  8. 6
      src/views/modules/communityService/policy/policyList.vue
  9. 10
      src/views/modules/communityService/wennuanzhaoren/index.vue
  10. 30
      src/views/modules/communityService/wennuanzhaoren/personList.vue

7
src/views/modules/communityService/fuwuzhaoren/index.vue

@ -327,11 +327,12 @@
:modal="false"
:title="'人员名单'"
width="1150px"
top="5vh"
top="15vh"
class="dialog-h"
@closed="showPersonList = false">
<person-list ref="ref_person_list"
:serviceId="commonServiceId"
:selfObj="selfObj"
:tagId="tagId">
</person-list>
</el-dialog>
@ -448,8 +449,9 @@ export default {
//
multiSelectedRows: [],
searchdemandOptions:[]
searchdemandOptions:[],
selfObj:{}
};
},
computed: {
@ -563,6 +565,7 @@ export default {
async handlePersonList (row) {
this.commonServiceId = row.serviceRecordId;
this.tagId = row.resiSearchTagId;
this.selfObj = row;
this.showPersonList = true;
},

30
src/views/modules/communityService/fuwuzhaoren/personList.vue

@ -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,8 +445,27 @@ 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("网络错误");
});
},
/**
* 组织选择触发事件
@ -595,11 +614,10 @@ onMessagePush(){
type: String,
required: true,
},
serviceId: {
type: String,
selfObj:{
type: Object,
required: true,
}
}
}
</script>

10
src/views/modules/communityService/gangweizhaoren/index.vue

@ -329,7 +329,7 @@
:title="detailDiaTitle"
:modal-append-to-body="false"
width="850px"
top="5vh"
top="15vh"
class="dialog-h"
@closed="diaDetailClose">
<detail-form ref="ref_detail_form"
@ -349,11 +349,12 @@
close-on-press-escape="true"
:modal="false"
width="1150px"
top="5vh"
top="15vh"
class="dialog-h"
@closed="showPersonList = false">
<person-list ref="ref_person_list"
:serviceId="commonServiceId"
:selfObj="selfObj"
:tagId="tagId">
</person-list>
</el-dialog>
@ -470,7 +471,9 @@ export default {
//
multiSelectedRows: [],
searchdemandOptions:[]
searchdemandOptions:[],
selfObj:{}
};
},
computed: {
@ -589,6 +592,7 @@ export default {
async handlePersonList (row) {
this.commonServiceId = row.serviceRecordId;
this.tagId = row.resiSearchTagId;
this.selfObj = row;
this.showPersonList = true;
},

30
src/views/modules/communityService/gangweizhaoren/personList.vue

@ -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>
@ -441,8 +441,27 @@ 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("网络错误");
});
},
/**
* 组织选择触发事件
@ -591,11 +610,10 @@ export default {
type: String,
required: true,
},
serviceId: {
type: String,
selfObj:{
type: Object,
required: true,
}
}
}
</script>

9
src/views/modules/communityService/jinengzhaoren/index.vue

@ -327,10 +327,11 @@
:modal-append-to-body="false"
:title="'人员名单'"
width="1150px"
top="5vh"
top="15vh"
class="dialog-h"
@closed="showPersonList = false">
<person-list ref="ref_person_list"
:selfObj="selfObj"
:serviceId="commonServiceId"
:tagId="tagId">
</person-list>
@ -447,7 +448,10 @@ export default {
//
multiSelectedRows: [],
searchdemandOptions:[]
searchdemandOptions:[],
//
selfObj:{}
};
},
computed: {
@ -564,6 +568,7 @@ export default {
async handlePersonList (row) {
this.commonServiceId = row.serviceRecordId;
this.tagId = row.resiSearchTagId;
this.selfObj = row;
this.showPersonList = true;
},

30
src/views/modules/communityService/jinengzhaoren/personList.vue

@ -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>
@ -442,8 +442,27 @@ 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("网络错误");
});
},
/**
* 组织选择触发事件
@ -592,11 +611,10 @@ export default {
type: String,
required: true,
},
serviceId: {
type: String,
selfObj:{
type: Object,
required: true,
}
}
}
</script>

30
src/views/modules/communityService/policy/personList.vue

@ -128,7 +128,7 @@
type="primary"
size="small"
class="diy-button--red"
@click="handleIncrementServeTimes"
@click="sendFindPeopleMsg"
>公众号消息推送</el-button
>
<el-button
@ -451,7 +451,29 @@ export default {
//
this.handleSearch();
},
//
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>}
@ -609,6 +631,10 @@ export default {
type: String,
default: "",
},
selfObj:{
type: Object,
required: true,
}
},
};
</script>

6
src/views/modules/communityService/policy/policyList.vue

@ -292,7 +292,7 @@
:title="'符合政策人员名单'"
width="1600px"
height="1100px"
top="5vh"
top="15vh"
class="dialog-h"
@closed="showPersonList = false"
>
@ -301,6 +301,7 @@
:policyId="policyId"
:tagId="tagId"
:serviceId="serviceId"
:selfObj="selfObj"
>
</person-list>
</el-dialog>
@ -365,6 +366,8 @@ export default {
selection: [],
serviceId: "",
selfObj:{}
};
},
computed: {
@ -740,6 +743,7 @@ export default {
this.showPersonList = true;
this.serviceId = row.serviceId;
this.tagId = row.resiSearchTagId;
this.selfObj = row;
this.policyId = row.id;
},
},

10
src/views/modules/communityService/wennuanzhaoren/index.vue

@ -330,7 +330,7 @@
:modal-append-to-body="false"
:modal="false"
width="850px"
top="5vh"
top="15vh"
class="dialog-h"
@closed="diaDetailClose">
<detail-form ref="ref_detail_form"
@ -347,10 +347,11 @@
:close-on-press-escape="false"
:title="'人员名单'"
width="1150px"
top="5vh"
top="15vh"
class="dialog-h"
@closed="showPersonList = false">
<person-list ref="ref_person_list"
:selfObj="selfObj"
:serviceId="commonServiceId"
:tagId="tagId">
</person-list>
@ -470,7 +471,9 @@ export default {
ruleList: [],
//
multiSelectedRows: []
multiSelectedRows: [],
selfObj:{}
};
},
computed: {
@ -588,6 +591,7 @@ export default {
async handlePersonList (row) {
this.commonServiceId = row.serviceRecordId;
this.tagId = row.resiSearchTagId;
this.selfObj = row;
this.showPersonList = true;
},

30
src/views/modules/communityService/wennuanzhaoren/personList.vue

@ -101,7 +101,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>
@ -451,8 +451,27 @@ 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("网络错误");
});
},
/**
@ -639,11 +658,10 @@ export default {
type: String,
required: true,
},
serviceId: {
type: String,
selfObj:{
type: Object,
required: true,
}
},
}
</script>

Loading…
Cancel
Save