diff --git a/project/dv/apps/AppPdDv.vue b/project/dv/apps/AppPdDv.vue
index 60deab01..8b8e83a7 100644
--- a/project/dv/apps/AppPdDv.vue
+++ b/project/dv/apps/AppPdDv.vue
@@ -141,12 +141,9 @@
网格动态
-
-
07/19 09:45
-
书院社区-张三
-
添加居民"
-
蓝天白云
-
"为好友
+
+ {{ item.createTime }}
+ {{ item.logDescription }}
@@ -261,7 +258,8 @@
tagInfo: {},
groupNumber: {},
replyPercentage: {},
- groupChatNumber: {}
+ groupChatNumber: {},
+ dynamicList: []
}
},
@@ -299,6 +297,11 @@
this.replyPercentage = res.data
}
})
+ this.instance.post(`/app/appUserOperation/list?size=10000`).then(res => {
+ if (res.code === 0) {
+ this.dynamicList = res.data.records
+ }
+ })
this.instance.post(`/app/wxgroupstatistic/getGroupNumber`).then(res => {
if (res.code === 0) {
this.groupNumber = res.data['居民群统计']
diff --git a/project/dv/apps/components/DonutChart.vue b/project/dv/apps/components/DonutChart.vue
index f9169642..dff376ad 100644
--- a/project/dv/apps/components/DonutChart.vue
+++ b/project/dv/apps/components/DonutChart.vue
@@ -2,7 +2,7 @@
- {{ ratio }}%
+ {{ ratio || 0 }}%
{{ text }}
diff --git a/project/sass/apps/Announce/AppAnnounce/AppAnnounce.vue b/project/sass/apps/Announce/AppAnnounce/AppAnnounce.vue
index 0019b70e..4de7e264 100644
--- a/project/sass/apps/Announce/AppAnnounce/AppAnnounce.vue
+++ b/project/sass/apps/Announce/AppAnnounce/AppAnnounce.vue
@@ -1,8 +1,8 @@
-
+
-
+
diff --git a/project/sass/apps/Announce/AppAnnounce/components/Add.vue b/project/sass/apps/Announce/AppAnnounce/components/Add.vue
index cb466f0a..301d2b25 100644
--- a/project/sass/apps/Announce/AppAnnounce/components/Add.vue
+++ b/project/sass/apps/Announce/AppAnnounce/components/Add.vue
@@ -23,24 +23,29 @@
-
+
+
+ {{ item }}
+
请选择
选择
消息预计送达居民群数:
-
{{ form.filterCriteria.length }}
+
{{ groupLen }}
@@ -315,13 +320,23 @@
taskTitle: '',
examinesName: ''
},
+ girdNames: '',
id: '',
tagsList: []
}
},
computed: {
- ...mapState(['user'])
+ ...mapState(['user']),
+
+ groupLen () {
+ let i = 0
+ this.form.wxGroups.forEach(v => {
+ i = i + v.groupIds.split(',').length
+ })
+
+ return i
+ }
},
created () {
@@ -346,6 +361,10 @@
filterCriteria: res.data.filterCriteria.split(',')
}
+ if (res.data.girdNames) {
+ this.girdNames = res.data.girdNames
+ }
+
this.dateForm.choiceTime = res.data.choiceTime
if (res.data.examines && res.data.examines.length) {
@@ -384,6 +403,10 @@
},
onScopeChange (e) {
+ this.form.filterCriteria = []
+ this.form.wxGroups = []
+ this.girdNames = ''
+
if (e === '0') {
this.getWxGroups()
} else {
@@ -391,6 +414,12 @@
}
},
+ onPick (e) {
+ if (this.form.sendScope === '2' && e.length) {
+ this.girdNames = e.map(v => v.girdName)
+ }
+ },
+
onSelcetChange (e) {
if (e.length) {
this.form.wxGroupsName = '1'
@@ -535,6 +564,10 @@
confirm (sendType) {
this.$refs.form.validate((valid) => {
if (valid) {
+ if (!this.form.wxGroups.length) {
+ return this.$message.error('居民群数量不能为0')
+ }
+
if (sendType === 1 && !this.dateForm.choiceTime) {
this.isShowDate = true
return false