+
{{ item }}
@@ -12,24 +12,25 @@
-
数据更新于2022-07-06 09:18:56
+
数据更新于{{ info.remindTime }}
-
+
+
-
计划送达居民群: 10
-
未送达居民群: 10
-
已送达居民群: 10
-
无法送达居民群: 10
+
计划送达居民群: {{ info.planCount || 0 }}
+
未送达居民群: {{ info.unExecutedCount || 0 }}
+
已送达居民群: {{ info.executedCount || 0 }}
+
无法送达居民群: {{ info.cannotExecuteCount || 0 }}
-
提醒成员发送
+
提醒成员发送
@@ -38,8 +39,8 @@
-
-
+
+
@@ -60,41 +61,85 @@ export default {
{name: '无法送达'}
],
subIndex: 0,
- tableData0: [],
- tableData1: [],
+ tableData: [],
+ createTime: '',
+ id: '',
+ info: {},
+ 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
},
toDetail() {
- uni.navigateTo({url: `./detail`})
+ uni.navigateTo({url: `./detail?id=${this.id}`})
+ },
+ // 提醒发送
+ remindSend() {
+ var timer = null
+ var num = 60 * 60 * 1000
+ this.$http.post('/app/appmasssendingtask/remindSend',null,{
+ params: {
+ id: this.id
+ }
+ }).then(res => {
+ if(res?.code==0) {
+ this.$u.toast('已提醒成员发送')
+ timer = setInterval(()=>{
+ if(this.num == 0) {
+ clearInterval(timer)
+ }
+ num = num - 1
+ }, 60 * 60 * 1000)
+ } else {
+ this.$u.toast(res.msg)
+ }
+ }).catch(() => {
+ this.$u.toast(`${num}s后可再次提醒发送`)
+ })
+ },
+
+ 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() {
this.pieEcharts = echarts.init(document.getElementById('pieEcharts'))
this.pieEcharts.setOption( {
- // legend: {
- // selectedMode:false
- // },
tooltip: {
trigger: 'item',
formatter: '{a}
{b}: {c} ({d}%)'
@@ -119,7 +164,7 @@ export default {
{value: 10, name: '群发送达率', label:{
normal:{
show:true,
- formatter: '{d}%\n群发送达率',
+ formatter: `{d}%\n群发居民群`,
textStyle: {
fontSize: 16,
},
@@ -143,7 +188,7 @@ export default {
\ No newline at end of file
diff --git a/src/project/saas/AppCooperationPropaganda/images/shaixuan.png b/src/project/saas/AppCooperationPropaganda/images/shaixuan.png
new file mode 100644
index 00000000..88015ea5
Binary files /dev/null and b/src/project/saas/AppCooperationPropaganda/images/shaixuan.png differ
diff --git a/src/project/saas/AppPropagandaStatistics/AppPropagandaStatistics.vue b/src/project/saas/AppPropagandaStatistics/AppPropagandaStatistics.vue
index 9b32b4c4..9ab6cc7d 100644
--- a/src/project/saas/AppPropagandaStatistics/AppPropagandaStatistics.vue
+++ b/src/project/saas/AppPropagandaStatistics/AppPropagandaStatistics.vue
@@ -1,47 +1,115 @@
-
昨天{{ nowMonth }}.{{ nowDate - 1 }}
-
-
+
+ 昨天{{ nowMonth }}.{{ nowDate - 1 }}
+
+
+ 晴风小区志愿者活动
+
+
+ 今日暂无宣发任务
+
-
今天{{ nowMonth }}.{{ nowDate }}
-
-
+
+ 今天{{ nowMonth }}.{{ nowDate }}
+
+
+ 晴风小区志愿者活动
+
+
+ 今日暂无宣发任务
+
-
明天{{ nowMonth }}.{{ nowDate + 1 }}
-
-
-
{{ isShow ? '收起' : '展开' }}
+
+ 明天{{ nowMonth }}.{{ nowDate + 1 }}
+
+
+ 晴风小区志愿者活动
+
+
+ 今日暂无宣发任务
+
+
+ {{ isShow ? "收起" : "展开" }}
+
-
宣发效果
-

筛选
+
+

筛选
+
创建宣发任务数
-
200
+
{{ peopleNum }}
执行宣发次数
-
200
+
{{ sendNum }}
触达人次
-
200
+
{{ predictNum }}
触达人次
@@ -55,9 +123,21 @@
宣发明细
- 近七天
- 近30天
- 近1年
+ 近七天
+ 近30天
+ 近1年
@@ -67,21 +147,45 @@
-
+
开始时间:
-
@@ -112,10 +220,10 @@
diff --git a/src/project/saas/AppPropagandaStatistics/calendarInfo.vue b/src/project/saas/AppPropagandaStatistics/calendarInfo.vue
index 29644ea2..a02149e2 100644
--- a/src/project/saas/AppPropagandaStatistics/calendarInfo.vue
+++ b/src/project/saas/AppPropagandaStatistics/calendarInfo.vue
@@ -29,23 +29,60 @@ export default {
data() {
return {
date: '',
- selected: [{date: '2022-07-12'}],
+ selected: [],
list: [{
time: '11:00',
info: '晴风小区志愿者活动'
- }]
+ }],
+ calendarList: {},
+ year: '',
+ month: '',
+ day: '',
}
},
components: {
uniCalendar
},
+ created() {
+ this.getNowDay()
+ this.getData()
+
+ },
methods: {
change(val) {
this.date = `${val.year} + '-' + ${val.month} + '-' + ${val.day}`
},
+ getNowDay() {
+ const date = new Date()
+ this.year = date.getFullYear()
+ this.month = date.getMonth() + 1
+ },
toGroup() {
uni.navigateTo({url: './groupSendResident'})
- }
+ },
+ getData() {
+ this.$http.post(`/app/appmasssendingtask/statisticsCalendar`, null, {
+ params: {},
+ })
+ .then((res) => {
+ if (res?.data) {
+ this.calendarList = res.data;
+ var arr = Object.keys(res.data).map(key => (res.data[key]))
+ var calList = arr.filter(item=> (item.taskList && item.taskList.length > 0))
+ this.selected = calList.map(item=> {
+ if(item.day>=1 && item.day<=9) {
+ if(this.month>=1 && this.month <=9) {
+ return this.year + '-' + '0' + this.month + '-' + '0' + item.day
+ }
+ } else if(item.day> 9) {
+ if(this.month > 9) {
+ return this.year + '-' + this.month + '-' + item.day
+ }
+ }
+ })
+ }
+ });
+ },
},
onShow() {
document.title = '宣发日历'
diff --git a/src/project/saas/AppPropagandaStatistics/detail.vue b/src/project/saas/AppPropagandaStatistics/detail.vue
deleted file mode 100644
index e981efd4..00000000
--- a/src/project/saas/AppPropagandaStatistics/detail.vue
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-
-
群发客户群
-
-
- 任务名称
- 居民社保最新政策
-
-
- 创建人
- 居民社保最新政策
-
-
- 所在部门
- 居民社保最新政策
-
-
- 群发时间
- 居民社保最新政策
-
-
-
-
-
- 群发范围
- 按条件筛选的全部X个客户群
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/project/saas/AppPropagandaStatistics/groupSendResident.vue b/src/project/saas/AppPropagandaStatistics/groupSendResident.vue
deleted file mode 100644
index 51ef945d..00000000
--- a/src/project/saas/AppPropagandaStatistics/groupSendResident.vue
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-
-
-

筛选
-
-
-
-
-
-
{{ item.content }}
-
进行中
-
-
创建时间:{{ item.createTime }}
-
共需56名成员完成群发,目前已完成65%
-
创建部门:{{ item.createUserDept }}
-
-
-
-
-
-
-
-
\ No newline at end of file