From 5fd22dfc3a6022544f11176c663e5d17b5adf268 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 14 Sep 2022 14:37:54 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E7=BE=A4=E5=8F=91=E5=B1=85=E6=B0=91?= =?UTF-8?q?=E7=BE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../addPropaganda.vue | 47 ++++++++++++++----- .../AppCooperationPropaganda/sendScoped.vue | 17 +++---- 2 files changed, 41 insertions(+), 23 deletions(-) diff --git a/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue b/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue index 8940e5e2..1bf4f115 100644 --- a/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue +++ b/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue @@ -9,7 +9,7 @@
*发送范围
- 请选择 + 请选择 预计送达{{ form.wxGroups.length }}名成员 预计送达{{ sum }}名成员 @@ -192,7 +192,11 @@ export default { sendScope: '', // 0:全部居民群、1:按部门选择、2:按网格选择 sendType: '0', // 0:立即发送、1:定时发送 gender: '', // 性别:0-女、1-男、2-全部 - filterCriteria: '' + filterCriteria: '', + filterTags: [], //过滤标签id集合 + excludeFilterTags: [], // 剔除标签集合 + addFromTime: '', + addEndTime: '', }, enableExamine: false, isTimedTask: false, @@ -255,8 +259,15 @@ export default { upload: [], midiaIds: [], sum: '', - girdListIds: [], - deptListIds: [], + // 筛选条件 + girdListIds: [], // 网格id集合 + deptListIds: [], // 部门id集合 + ResidentTags: [], // 居民包含 + ResidentTagsRemove: [], // 居民剔除 + circleTags: [], // 朋友圈包含 + circleTagsRemove: [], // 朋友圈剔除 + startTime: '', + endTime: '', } }, methods: { @@ -469,14 +480,11 @@ export default { if(this.type=='Residents') { url = `/app/whchatmomentstask/addOrUpdate` this.forms.filterCriteria = this.girdListIds.toString() || this.deptListIds.toString() || '' - this.forms.filterTags = '' - this.forms.excludeFilterTags = '剔除标签' - formData = this.forms - } else if(this.type=='CircleOfFriends') { - url = `/app/whchatmomentstask/addOrUpdate` - this.forms.filterCriteria = this.girdListIds.toString() || this.deptListIds.toString() || '' - this.forms.filterTags = '过滤标签' - this.forms.excludeFilterTags = '剔除标签' + 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 formData = this.forms } else if(this.type=='ResidentsGroup') { url = `/app/appmasssendingtask/addOrUpdate` @@ -488,7 +496,7 @@ export default { this.flag = false this.$u.toast("新增成功") setTimeout(() => { - navigateBack() + uni.navigateBack() }, 600) } }).catch((err)=>{ @@ -549,6 +557,19 @@ export default { if(deptArr.length) { this.deptListIds = deptArr.map(v=>v.id) } + // 性别 + this.sex = uni.getStorageSync('gender') + // 标签 + if(this.sendType == 'Residents') { + this.ResidentTags = uni.getStorageSync('ResidentTags') // 居民包含 + this.ResidentTagsRemove = uni.getStorageSync('ResidentTagsRemove') // 居民剔除 + } else if(this.sendType == 'CircleOfFriends') { + this.circleTags = uni.getStorageSync('circleTags') // 朋友圈包含 + this.circleTagsRemove = uni.getStorageSync('circleTagsRemove') // 朋友圈剔除 + } + // 时间 + this.startTime = uni.getStorageSync('startTime') + this.endTime = uni.getStorageSync('endTime') } } diff --git a/src/project/huizhili/AppCooperationPropaganda/sendScoped.vue b/src/project/huizhili/AppCooperationPropaganda/sendScoped.vue index 12b29bac..95f5a0b4 100644 --- a/src/project/huizhili/AppCooperationPropaganda/sendScoped.vue +++ b/src/project/huizhili/AppCooperationPropaganda/sendScoped.vue @@ -56,19 +56,14 @@ export default { }, submit() { if(this.sendType == 'ResidentsGroup') { - this.getWxGroups().then(()=>{ - setTimeout(() => { - uni.navigateBack() - }, 600) - }) + this.getWxGroups() } else if(this.sendType == 'Residents' || this.sendType == 'CircleOfFriends') { - this.getSendScope().then(()=>{ - setTimeout(() => { - uni.navigateBack() - }, 600) - }) + this.getSendScope() } uni.setStorageSync('sendScope', this.sendScope) + setTimeout(() => { + uni.navigateBack() + }, 600) }, // 群发居民群 getWxGroups() { @@ -120,6 +115,7 @@ export default { }, onShow() { this.sendScope = uni.getStorageSync('sendScope') || '' + // 部门、网格 const girdArr = uni.getStorageSync('girdSelect') if(girdArr.length) { this.girdListIds = girdArr.map(e=>e.id) @@ -128,6 +124,7 @@ export default { if(deptArr.length) { this.deptListIds = deptArr.map(v=>v.id) } + // 性别 this.sex = uni.getStorageSync('gender') // 标签 if(this.sendType == 'Residents') { From ba2820c201b0fe78f56a2169dbf46a67c6a2feaa Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 14 Sep 2022 14:48:09 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppCooperationPropaganda/cooperationDetail.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/project/huizhili/AppCooperationPropaganda/cooperationDetail.vue b/src/project/huizhili/AppCooperationPropaganda/cooperationDetail.vue index a24e697a..e5295d6f 100644 --- a/src/project/huizhili/AppCooperationPropaganda/cooperationDetail.vue +++ b/src/project/huizhili/AppCooperationPropaganda/cooperationDetail.vue @@ -230,8 +230,13 @@ export default { } }, // 切换分段器 - changeSub(index) { - this.subIndex = index; + // 切换分段器 + changeSub0(index) { + this.subIndex0 = index; + this.getStatistics(); + }, + changeSub1(index) { + this.subIndex1 = index; this.getStatistics(); }, // 获取数据 From 1d43c9cd77b7e43b0abbaf146d36f27e9d1420f6 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 14 Sep 2022 16:04:22 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cooperationDetail.vue | 1 + .../AppCooperationPropaganda.vue | 2 +- .../AppCooperationPropaganda/circleDetail.vue | 114 +++++------------- 3 files changed, 31 insertions(+), 86 deletions(-) diff --git a/src/apps/AppCooperationPropaganda/cooperationDetail.vue b/src/apps/AppCooperationPropaganda/cooperationDetail.vue index 413efa08..6ab3cc9f 100644 --- a/src/apps/AppCooperationPropaganda/cooperationDetail.vue +++ b/src/apps/AppCooperationPropaganda/cooperationDetail.vue @@ -247,6 +247,7 @@ export default { sendStatus: this.tabIndex==0? this.subIndex0: this.subIndex1, taskId: this.id, current: this.current, + size: 3000 }, }) .then((res) => { diff --git a/src/project/huizhili/AppCooperationPropaganda/AppCooperationPropaganda.vue b/src/project/huizhili/AppCooperationPropaganda/AppCooperationPropaganda.vue index dfa2e7e9..57e4e638 100644 --- a/src/project/huizhili/AppCooperationPropaganda/AppCooperationPropaganda.vue +++ b/src/project/huizhili/AppCooperationPropaganda/AppCooperationPropaganda.vue @@ -153,7 +153,7 @@ export default { if(this.tabIndex == 0) { uni.navigateTo({url: `./cooperationDetail?id=${item.id}&time=${item.createTime}`}) } else { - alert('hhh') + uni.navigateTo({url: `./circleDetail??id=${item.id}&time=${item.createTime}&type=${this.sendType}`}) } }, diff --git a/src/project/huizhili/AppCooperationPropaganda/circleDetail.vue b/src/project/huizhili/AppCooperationPropaganda/circleDetail.vue index 0e6aa2aa..56f52b9c 100644 --- a/src/project/huizhili/AppCooperationPropaganda/circleDetail.vue +++ b/src/project/huizhili/AppCooperationPropaganda/circleDetail.vue @@ -1,19 +1,5 @@