diff --git a/project/sass/apps/Announce/AppAnnounce/components/Detail.vue b/project/sass/apps/Announce/AppAnnounce/components/Detail.vue index 22557fcf..54987b4f 100644 --- a/project/sass/apps/Announce/AppAnnounce/components/Detail.vue +++ b/project/sass/apps/Announce/AppAnnounce/components/Detail.vue @@ -29,11 +29,13 @@ -
- - - - +
+
+ + + + +
@@ -41,7 +43,7 @@
按条件筛选的 - {{ info.wxGroups.length }} + {{ info.wxGroups ? info.wxGroups.length : 0 }} 个客户群 详情
@@ -51,8 +53,8 @@

{{ content }}

- - 图片附件235325346.jpg 等 + + {{ mapType(fileList[0].msgType) }}{{ fileList[0].mpTitle || fileList[0].name || fileList[0].linkTitle }} 等 {{ fileList.length }} 个附件
@@ -106,10 +108,10 @@
@@ -156,10 +158,10 @@
@@ -196,9 +198,19 @@ return { total: 0, radio1: '未执行', - search: { + search1: { current: 1, - size: 10 + size: 10, + deptartId: '', + type: 0, + sendStatus: '0' + }, + search2: { + current: 1, + size: 10, + deptartId: '', + type: 1, + sendStatus: '0' }, fileList: [], tableData: [], @@ -218,9 +230,35 @@ created () { this.getInfo(this.params.id) + this.getMemberInfo() + this.getGroupInfo() }, methods: { + getMemberInfo () { + this.instance.post(`/app/appmasssendingtask/detailStatistics`, null, { + params: { + ...this.search1, + taskId: this.params.id + } + }).then(res => { + if (res.code === 0) { + } + }) + }, + + getGroupInfo () { + this.instance.post(`/app/appmasssendingtask/detailStatistics`, null, { + params: { + ...this.search2, + taskId: this.params.id + } + }).then(res => { + if (res.code === 0) { + } + }) + }, + getInfo (id) { this.instance.post(`/app/appmasssendingtask/queryDetailById?id=${id}`).then(res => { if (res.code === 0) { @@ -242,7 +280,29 @@ }) }, - getList () {}, + getList () { + + }, + + mapType (type) { + return { + 1: '图片', + 2: '视频', + 3: '文件', + 4: '网站', + 5: '小程序' + }[type] + }, + + mapIcon (type) { + return { + 1: 'https://cdn.cunwuyun.cn/dvcp/announce/img.png', + 2: 'https://cdn.cunwuyun.cn/dvcp/announce/video.png', + 3: 'https://cdn.cunwuyun.cn/dvcp/announce/folder.png', + 4: 'https://cdn.cunwuyun.cn/dvcp/announce/site.png', + 5: 'https://cdn.cunwuyun.cn/dvcp/announce/miniapp.png' + }[type] + }, cancel (isRefresh) { this.$emit('change', { @@ -256,10 +316,15 @@