From ca8981d32c8bd88a7aac65f4015d3812e5f607a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 11 May 2023 18:02:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/GPS/tyre/index.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ruoyi-ui/src/views/GPS/tyre/index.vue b/ruoyi-ui/src/views/GPS/tyre/index.vue index b4825c7..3e9e5ab 100644 --- a/ruoyi-ui/src/views/GPS/tyre/index.vue +++ b/ruoyi-ui/src/views/GPS/tyre/index.vue @@ -102,6 +102,13 @@ const outerTireNumberNow = ref('') const rules = { outerTireNumber: { required: true, message: '请输入外胎号', trigger: 'blur' }, + time: {validator :(rule,value,callback)=>{ + if(dateRange.value.length !== 2){ + callback(new Error("请选择时间")) + }else{ + callback() + } + }, message: '请选择时间', trigger: 'blur' }, } // 搜索参数