diff --git a/src/project/saas/AppPropagandaStatistics/groupSendDetail.vue b/src/project/saas/AppPropagandaStatistics/groupSendDetail.vue index 4a7c76c6..b434bc18 100644 --- a/src/project/saas/AppPropagandaStatistics/groupSendDetail.vue +++ b/src/project/saas/AppPropagandaStatistics/groupSendDetail.vue @@ -12,7 +12,7 @@
防疫宣传群发通知
-
创建时间: 2022-07-12 14:54
+
创建时间: {{ createTime }}
查看详情
@@ -29,7 +29,7 @@
无法送达居民群: 10
-
提醒成员发送
+
提醒成员发送
@@ -38,8 +38,8 @@
- - + + @@ -60,25 +60,35 @@ export default { {name: '无法送达'} ], subIndex: 0, - tableData0: [], - tableData1: [], + tableData: [], + createTime: '', + id: '', + info: {}, + flag: false, + timer: null, + current: 1, } }, computed: { colConfigs0() { return [ - { label: '成员', prop: '', width: '240rpx', dict: 'householdRelation' }, - { label: '预计未送达居民', prop: ''}, + { label: '成员', prop: 'groupOwnerId', width: '240rpx', dict: 'householdRelation' }, + { label: '预计未送达居民', prop: 'groupCount'}, ] }, colConfigs1() { return [ - { label: '居民群', prop: '', width: '240rpx', dict: 'householdRelation' }, - { label: '群人数', prop: '', width: '200rpx' }, - { label: '群主', prop: '', dict: 'sex' }, + { label: '居民群', prop: 'groupName', width: '240rpx', dict: 'householdRelation' }, + { label: '群人数', prop: 'memberCount', width: '200rpx' }, + { label: '群主', prop: 'groupOwnerId', dict: 'sex' }, ] }, }, + onLoad(o) { + this.id = o.id + this.createTime = o.time + this.getStatistics() + }, methods: { tabClick(index) { this.tabIndex = index @@ -87,6 +97,38 @@ export default { toDetail() { uni.navigateTo({url: `./detail`}) }, + // 提醒发送 + remindSend() { + if(this.flag) return + var n = 60 * 60 * 1000 + setTimeout(()=> { + + }) + this.$http.post('/app/appmasssendingtask/remindSend',null,{ + params: { + id: this.id + } + }).then(res => { + console.log(res); + }).catch(err => { + console.log(err); + }) + }, + + getStatistics() { + this.$http.post(`/app/appmasssendingtask/detailStatistics`, null, { + params: { + type: this.tabIndex, + sendStatus: this.subIndex, + taskId: this.id, + current: this.current + } + }).then(res => { + if(res?.data) { + this.tableData = res.data.executedList + } + }) + }, // 带百分比饼图 getPieEcharts() { diff --git a/src/project/saas/AppPropagandaStatistics/groupSendResident.vue b/src/project/saas/AppPropagandaStatistics/groupSendResident.vue index 5fb71a47..7bf24646 100644 --- a/src/project/saas/AppPropagandaStatistics/groupSendResident.vue +++ b/src/project/saas/AppPropagandaStatistics/groupSendResident.vue @@ -9,14 +9,14 @@
-
+
{{ item.taskTitle }}
{{ $dict.getLabel('mstStatus', item.status) }}
创建时间:{{ item.createTime }}
-
共需56名成员完成群发,目前已完成{{ item.completionRate || 0 }}%
+
共需{{ item.groupOwnerCount }}名成员完成群发,目前已完成{{ item.completionRate || 0 }}%
创建部门:{{ item.createUserDept }}
@@ -87,8 +87,8 @@ export default { } }, methods: { - toDetail() { - uni.navigateTo({url: `./groupSendDetail`}) + toDetail(item) { + uni.navigateTo({url: `./groupSendDetail?id=${item.id}&time=${item.createTime}`}) }, searchBtn() { this.current = 1