diff --git a/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue b/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue
index 49ce715b..fd117a29 100644
--- a/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue
+++ b/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue
@@ -61,7 +61,6 @@
请选择
已选择{{ form.examines.length }}名人员
-
@@ -176,8 +175,10 @@ export default {
sendType: '0', // 0:立即发送、1:定时发送
gender: '', // 性别:0-女、1-男、2-全部
filterCriteria: '',
- filterTags: [], //过滤标签id集合
- excludeFilterTags: [], // 剔除标签集合
+ filterTags: '', //过滤标签id集合
+ filterTagsName: '', //过滤标签名称
+ excludeFilterTags: '', // 剔除标签id集合
+ excludeFilterTagsName: '', // 剔除标签名称
addFromTime: '',
addEndTime: '',
taskEndTime: '', // 任务结束时间
@@ -425,17 +426,13 @@ export default {
if(this.type=='Residents' || this.type=='CircleOfFriends') {
this.forms.contents = this.form.contents
-
+ this.forms.taskTitle = this.form.taskTitle
}
if(!this.form.taskTitle) {
return this.$u.toast('请输入任务名称')
}
- if(this.type=='Residents' || this.type=='CircleOfFriends') {
- this.forms.taskTitle = this.form.taskTitle
- }
-
if(!this.form.sendScope) {
return this.$u.toast('请选择发送范围')
}
@@ -485,9 +482,6 @@ export default {
let url = ''
if(this.type=='CircleOfFriends' || this.type=='Residents') { //群发朋友圈、居民
url = `/app/whchatmomentstask/addOrUpdate`
- this.forms.filterCriteria = this.girdListIds.toString() || this.deptListIds.toString() || ''
- this.forms.filterTags = this.ResidentTags.toString() || this.circleTags.toString() || ''
- this.forms.excludeFilterTags = this.ResidentTagsRemove.toString() || this.circleTagsRemove.toString() || ''
this.forms.gender = this.sex
this.forms.addFromTime = this.startTime
this.forms.addEndTime = this.endTime
@@ -520,10 +514,10 @@ export default {
uni.removeStorageSync('girdSelect')
uni.removeStorageSync('deptList')
uni.removeStorageSync('sendScope')
- uni.removeStorageSync('ResidentTags')
- uni.removeStorageSync('ResidentTagsRemove')
- uni.removeStorageSync('circleTags')
- uni.removeStorageSync('circleTagsRemove')
+ uni.removeStorageSync('ResidentTags') // 居民包含
+ uni.removeStorageSync('ResidentTagsRemove') // 居民剔除
+ uni.removeStorageSync('circleTags') // 朋友圈包含
+ uni.removeStorageSync('circleTagsRemove') // 朋友圈剔除
uni.removeStorageSync('startTime')
uni.removeStorageSync('endTime')
},
@@ -597,12 +591,26 @@ export default {
// 性别
this.sex = uni.getStorageSync('gender')
// 标签
- if(this.sendType == 'Residents') {
+ if(this.type == 'Residents') {
this.ResidentTags = uni.getStorageSync('ResidentTags') // 居民包含
this.ResidentTagsRemove = uni.getStorageSync('ResidentTagsRemove') // 居民剔除
- } else if(this.sendType == 'CircleOfFriends') {
+ if(this.ResidentTags.length) {
+ this.forms.filterTags = this.ResidentTags.map(e=> e.id).toString()
+ this.forms.filterTagsName = this.ResidentTags.map(e=> e.name).toString()
+ } else if(this.ResidentTagsRemove) {
+ this.forms.excludeFilterTags = this.ResidentTagsRemove.map(e=> e.id).toString()
+ this.forms.excludeFilterTagsName = this.ResidentTagsRemove.map(e=> e.name).toString()
+ }
+ } else if(this.type == 'CircleOfFriends') {
this.circleTags = uni.getStorageSync('circleTags') // 朋友圈包含
this.circleTagsRemove = uni.getStorageSync('circleTagsRemove') // 朋友圈剔除
+ if(this.circleTags.length) {
+ this.forms.filterTags = this.circleTags.map(e=> e.id).toString()
+ this.forms.filterTagsName = this.circleTags.map(e=> e.name).toString()
+ } else if(this.circleTagsRemove.length) {
+ this.forms.excludeFilterTags = this.circleTagsRemove.map(e=> e.id).toString()
+ this.forms.excludeFilterTagsName = this.circleTagsRemove.map(e=> e.name).toString()
+ }
}
// 时间
this.startTime = uni.getStorageSync('startTime')
diff --git a/src/project/huizhili/AppCooperationPropaganda/scopedSelect.vue b/src/project/huizhili/AppCooperationPropaganda/scopedSelect.vue
index d8ed1d40..28d3c710 100644
--- a/src/project/huizhili/AppCooperationPropaganda/scopedSelect.vue
+++ b/src/project/huizhili/AppCooperationPropaganda/scopedSelect.vue
@@ -58,7 +58,6 @@
-