iot定位设备优化

This commit is contained in:
BianLzhaoMin 2024-08-09 14:57:39 +08:00
parent 43db8a77e1
commit fdcbd84906
2 changed files with 4 additions and 2 deletions

View File

@ -279,8 +279,10 @@ export default {
{ {
// 线(-) 线(_) // 线(-) 线(_)
pattern: /^[a-zA-Z0-9_-]+$/, pattern: /^[a-zA-Z0-9_-]+$/,
message: '请输入正确设备编码', message: '请输入11位的正确设备编码',
trigger: 'blur', trigger: 'blur',
min: 11,
max: 11,
}, },
], ],
}, },

View File

@ -266,7 +266,7 @@ export default {
}, },
/** 查询按钮 */ /** 查询按钮 */
async handleQuery() { async handleQuery() {
if (this.queryForm.date.length < 1) { if (!this.queryForm.date) {
this.$message.error('请选择时间范围!') this.$message.error('请选择时间范围!')
return return
} }