diff --git a/src/views/check/listmanager/components/inherit.vue b/src/views/check/listmanager/components/inherit.vue index c714a1e..5271a0f 100644 --- a/src/views/check/listmanager/components/inherit.vue +++ b/src/views/check/listmanager/components/inherit.vue @@ -67,9 +67,8 @@ - { - if (value === '') { - callback(new Error('请选择排查日期')) // 回调函数 + console.log(self.form.dates) + if (self.form.dates == null || self.form.dates.length < 1) { + callback(new Error('请选择排查日期')) } else { - console.info(this.dates) - if (this.dates == null || this.dates.length < 1) { - callback(new Error('请选择排查日期')) - } + callback() } } return { @@ -441,6 +439,7 @@ export default { return false } this.$refs.form.validate(valid => { + console.log(valid) if (valid) { this.listLoading = true requestFN(