From 16af7b419e64712bece09e8d42a26a42a5254993 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 6 Apr 2022 13:59:33 +0800 Subject: [PATCH 1/2] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/epidemic/natFocus/natFocusAdd.vue | 18 ++++++---- .../base/epidemic/natFocus/natFocusEdit.vue | 9 +++-- .../base/epidemic/natFocus/natFocusList.vue | 19 +++++----- .../base/epidemic/natFocus/nfSendNotice.vue | 35 ++++++++----------- .../modules/base/epidemic/natInfo/natForm.vue | 35 +++++++++++++------ .../modules/base/epidemic/natInfo/natList.vue | 1 + .../base/epidemic/veroFocus/veroFocusAdd.vue | 19 ++++++---- .../base/epidemic/veroFocus/veroFocusEdit.vue | 10 ++++-- .../base/epidemic/veroFocus/veroFocusList.vue | 7 ++-- .../base/epidemic/veroFocus/vfSendNotice.vue | 34 ++++++++---------- .../base/epidemic/veroFocus/vfVisiteList.vue | 1 + 11 files changed, 105 insertions(+), 83 deletions(-) diff --git a/src/views/modules/base/epidemic/natFocus/natFocusAdd.vue b/src/views/modules/base/epidemic/natFocus/natFocusAdd.vue index 3eecb4fe..783f0819 100644 --- a/src/views/modules/base/epidemic/natFocus/natFocusAdd.vue +++ b/src/views/modules/base/epidemic/natFocus/natFocusAdd.vue @@ -71,12 +71,12 @@ v-model="formData1.remark"> - 小程序通知 - - 小程序通知 -
- 小程序通知 - 导出 - 发送通知 @@ -230,7 +229,7 @@ :close-on-click-modal="false" :close-on-press-escape="false" :destroy-on-close="true" - title="新增" + title="新增核酸检测关注名单" width="1050px" top="5vh" class="dialog-h" @@ -243,7 +242,7 @@ { diff --git a/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue b/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue index 0626a739..6b90a59d 100644 --- a/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue +++ b/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue @@ -8,14 +8,14 @@ :rules="dataRule" class="form"> - - 小程序通知 + - @@ -104,23 +103,19 @@ export default { async handleComfirm () { + this.formData.channel = ['0'] - if (this.formData.isSelChannel) { - if (!this.formData.content) { - this.$message({ - type: 'warning', - message: '请填写通知内容' - }) - return false; - } else { - this.formData.channel = ['0'] - } - - } else { - this.formData.channel = [] + if (!this.formData.content) { + this.$message({ + type: 'warning', + message: '请填写通知内容' + }) + return false; } + + console.log(this.formData) // return false diff --git a/src/views/modules/base/epidemic/natInfo/natForm.vue b/src/views/modules/base/epidemic/natInfo/natForm.vue index 92785d8c..68338980 100644 --- a/src/views/modules/base/epidemic/natInfo/natForm.vue +++ b/src/views/modules/base/epidemic/natInfo/natForm.vue @@ -161,25 +161,25 @@ - 小程序通知 - + - 0) { + this.$set(this.formData, 'isSelChannel', true) + // this.formData.isSelChannel = true + } else { + this.$set(this.formData, 'isSelChannel', false) + // this.formData.isSelChannel = false + this.formData.channel = [] + this.formData.content = '' + } + console.log(this.formData.isSelChannel) + this.formData.icNatId = this.icNatId if (this.formData.userId) { this.isFromResi = true @@ -461,6 +470,7 @@ export default { } else { this.formData.channel = [] + this.formData.content = '' } this.btnDisable = true @@ -627,6 +637,9 @@ export default { { required: true, message: '检测结果不能为空', trigger: 'blur' }, ], + isSelChannel: [ + { required: false }, + ], channel: [ { required: false }, ], diff --git a/src/views/modules/base/epidemic/natInfo/natList.vue b/src/views/modules/base/epidemic/natInfo/natList.vue index 3ecb2d47..f269abef 100644 --- a/src/views/modules/base/epidemic/natInfo/natList.vue +++ b/src/views/modules/base/epidemic/natInfo/natList.vue @@ -34,6 +34,7 @@ - 小程序通知 - - 小程序通知 -
- 小程序通知 - @@ -144,6 +145,9 @@ export default { }, methods: { + handleChannelChange (val) { + this.formData.content = '' + }, async initForm (formType, row) { this.formType = formType diff --git a/src/views/modules/base/epidemic/veroFocus/veroFocusList.vue b/src/views/modules/base/epidemic/veroFocus/veroFocusList.vue index f5684a5a..45f785cf 100644 --- a/src/views/modules/base/epidemic/veroFocus/veroFocusList.vue +++ b/src/views/modules/base/epidemic/veroFocus/veroFocusList.vue @@ -94,8 +94,7 @@ size="small" @click="handleExport">导出 - 发送通知 @@ -225,7 +224,7 @@ :close-on-click-modal="false" :close-on-press-escape="false" :destroy-on-close="true" - title="新增" + title="新增疫苗接种关注名单" width="1050px" top="5vh" class="dialog-h" @@ -238,7 +237,7 @@ - - 小程序通知 + - @@ -103,22 +102,17 @@ export default { async handleComfirm () { + this.formData.channel = ['0'] - if (this.formData.isSelChannel) { - if (!this.formData.content) { - this.$message({ - type: 'warning', - message: '请填写通知内容' - }) - return false; - } else { - this.formData.channel = ['0'] - } + if (!this.formData.content) { + this.$message({ + type: 'warning', + message: '请填写通知内容' + }) + return false; - } else { - this.formData.channel = [] - } + } this.btnDisable = true setTimeout(() => { this.btnDisable = false diff --git a/src/views/modules/base/epidemic/veroFocus/vfVisiteList.vue b/src/views/modules/base/epidemic/veroFocus/vfVisiteList.vue index cfabc4cb..fdef145e 100644 --- a/src/views/modules/base/epidemic/veroFocus/vfVisiteList.vue +++ b/src/views/modules/base/epidemic/veroFocus/vfVisiteList.vue @@ -210,6 +210,7 @@ export default { }, handleCancle () { + this.$refs.ref_form.resetFields() this.dialogVisible = false }, From 29b5888a0f7e9e6a0dfc22b861c078bc9916aa20 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 6 Apr 2022 14:10:32 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E5=A4=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/epidemic/natFocus/natFocusList.vue | 2 +- src/views/modules/base/epidemic/veroFocus/veroFocusList.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/modules/base/epidemic/natFocus/natFocusList.vue b/src/views/modules/base/epidemic/natFocus/natFocusList.vue index 874f900d..73b65157 100644 --- a/src/views/modules/base/epidemic/natFocus/natFocusList.vue +++ b/src/views/modules/base/epidemic/natFocus/natFocusList.vue @@ -187,7 +187,7 @@ placement="bottom" style="margin-left:10px" width="20" - trigger="click"> + trigger="hover">
+ trigger="hover">