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")
+ }
+
}
})
},