From 4b93111ae066ee85295a7a3fe4f8b4b809cac17c Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Mon, 27 Jun 2022 17:54:50 +0800
Subject: [PATCH] 30371
---
.../AppMassNotification/components/Add.vue | 40 +++++++++++++++++--
1 file changed, 36 insertions(+), 4 deletions(-)
diff --git a/packages/wxwork/AppMassNotification/components/Add.vue b/packages/wxwork/AppMassNotification/components/Add.vue
index 4808efbc..81fa7e8f 100644
--- a/packages/wxwork/AppMassNotification/components/Add.vue
+++ b/packages/wxwork/AppMassNotification/components/Add.vue
@@ -81,9 +81,9 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -145,6 +162,7 @@ export default {
images: [],
imgs: [],
videos: [],
+ videoArr: [],
files: [],
rules: {
deptList: [{required: true, message: '请选择发送范围'}],
@@ -191,8 +209,22 @@ export default {
this.instance.post(`/app/pushmessage/detail?id=${this.$route.query.id}`).then(res => {
if (res?.data) {
this.data = res.data
- this.images = [{url: res.data.fileList.filter(e => e.contentType == "image")[0]?.accessUrl}]
- this.fileDownLoad = [{url: res.data.fileList.filter(e => e.contentType == "file")[0]?.accessUrl}]
+ // this.images = [{url: res.data.fileList.filter(e => e.contentType == "image").map().accessUrl}]
+ // this.fileDownLoad = [{url: res.data.fileList.filter(e => e.contentType == "file")[0]?.accessUrl}]
+ this.images = res.data.fileList.filter(e => e.contentType == "image")?.map(i => {
+ return {
+ url: i.accessUrl
+ }
+ })
+ this.fileDownLoad = res.data.fileList.filter(e => e.contentType == "file")?.map(v => {
+ return {
+ url: v.accessUrl
+ }
+ })
+ if (res.data.fileList.filter(e => e.contentType == "video")) {
+ this.videoArr = res.data.fileList.filter(e => e.contentType == "video")
+ }
+
}
})
},