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"> - 小程序通知 - - 小程序通知 -
- 小程序通知 - 导出 - 发送通知 @@ -188,7 +187,7 @@ placement="bottom" style="margin-left:10px" width="20" - trigger="click"> + trigger="hover">
{ diff --git a/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue b/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue index a083f339..7dddef56 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..fa3706fd 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">导出 - 发送通知 @@ -183,7 +182,7 @@ placement="bottom" style="margin-left:10px" width="20" - trigger="click"> + trigger="hover">
- - 小程序通知 + - @@ -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 },