diff --git a/src/project/police/AppMessageNotification/AppMessageNotification.vue b/src/project/police/AppMessageNotification/AppMessageNotification.vue index 19d35faa..d58a30e8 100644 --- a/src/project/police/AppMessageNotification/AppMessageNotification.vue +++ b/src/project/police/AppMessageNotification/AppMessageNotification.vue @@ -48,7 +48,15 @@
图片
-视频
+附件
+视频
-附件
-小程序标题
@@ -150,7 +150,8 @@ export default { accessTitle: '', accessUrl: '', accessAppid: '', - file: {} + file: {}, + mediaId: '' }, areaIdList: [], tagIdList: [], @@ -162,7 +163,8 @@ export default { hour: true, minute: true, second: true - } + }, + fileData: null } }, computed: {...mapState(['user'])}, @@ -196,7 +198,7 @@ export default { if(!this.form.content) { return this.$u.toast('请输入文本内容') } - if(this.form.contentType == 'image' && !this.formData.imgList.length) { + if(this.form.contentType == 'image' && !this.formData.fileList.length) { return this.$u.toast('请上传图片') } if(this.form.contentType == 'video' && !this.formData.fileList.length) { @@ -208,9 +210,7 @@ export default { if(this.formData.fileList.length) { this.formData.file = this.formData.fileList[0] this.formData.accessUrl = this.formData.fileList[0].url - } - if(this.formData.imgList.length) { - this.formData.accessUrl = this.formData.imgList[0].url + this.formData.mediaId = this.fileData.media.mediaId } var params = { ...this.form, diff --git a/src/project/police/AppPeopleList/DetailCard.vue b/src/project/police/AppPeopleList/DetailCard.vue index 8ba8735a..a776af71 100644 --- a/src/project/police/AppPeopleList/DetailCard.vue +++ b/src/project/police/AppPeopleList/DetailCard.vue @@ -7,7 +7,10 @@