From c53f89a02fe28c14df6601fa400cdae7a0b034fe Mon Sep 17 00:00:00 2001 From: huangyuxuan Date: Tue, 19 Nov 2024 15:11:10 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D](pet)=20?= =?UTF-8?q?=20=20=E4=BF=AE=E5=A4=8D=20=20=E7=BB=A7=E6=89=BF=E6=B8=85?= =?UTF-8?q?=E5=8D=95=E6=97=B6=20=E8=8A=82=E5=81=87=E6=97=A5=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E6=B8=85=E5=8D=95=E7=BB=A7=E6=89=BF=E4=B8=8D?= =?UTF-8?q?=E4=BA=86=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../check/listmanager/components/inherit.vue | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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(