From dcefef9660800c8038abe2f8bbcc488d264cc7a4 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 7 Jun 2022 19:07:38 +0800 Subject: [PATCH 1/2] bug --- .../AppMessageNotification.vue | 41 +++++++++++++------ .../AppResidentFile/components/info.vue | 3 +- 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/src/project/police/AppMessageNotification/AppMessageNotification.vue b/src/project/police/AppMessageNotification/AppMessageNotification.vue index d14d0741..18299e1d 100644 --- a/src/project/police/AppMessageNotification/AppMessageNotification.vue +++ b/src/project/police/AppMessageNotification/AppMessageNotification.vue @@ -42,13 +42,13 @@

其它类型

- {{item.name}} + {{item.name}}

图片

- +
@@ -59,7 +59,7 @@

链接图片

- +

链接标题

@@ -70,11 +70,11 @@

视频

- +
-

视频

- +

附件

+
@@ -97,7 +97,7 @@

小程序图片

- +
@@ -168,11 +168,11 @@ export default { computed: {...mapState(['user'])}, methods: { radioChange(e) { - this.form.contentType = e + this.formDataInit() + this.$nextTick(() => { + this.form.contentType = e + }) }, - typeChange(e) { - this.form.sendType = e - }, toSelect() { uni.navigateTo({url: `./SelectUser?tagIdList=${this.tagIdList}&areaList=${this.areaIdList}`}) }, @@ -210,10 +210,27 @@ export default { } this.$http.post("/app/pushmessage/addOrUpdate", params).then(res => { if (res?.code == 0) { - + this.$u.toast('发送成功') + this.form = { + content: '', + contentType: 'text', + sendType: '0', + sendTime: '' + } + this.areaIdList = [] + this.tagIdList = [] + this.formDataInit() } }) }, + formDataInit() { + for(let key in this.formData) { + this.formData[key] = '' + } + this.formData.imgList = [] + this.formData.fileList = [] + this.formData.file = {} + }, back() { uni.navigateBack() } diff --git a/src/project/police/AppResidentFile/components/info.vue b/src/project/police/AppResidentFile/components/info.vue index bdf68ecd..4176f495 100644 --- a/src/project/police/AppResidentFile/components/info.vue +++ b/src/project/police/AppResidentFile/components/info.vue @@ -66,12 +66,13 @@