diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 466cd98..9369b06 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -8,21 +8,7 @@
-
+
-
+
查询
@@ -276,6 +276,10 @@ export default {
},
async handleQuery(refresh) {
try {
+ if(!this.checnInForm.idCard && !this.checnInForm.phone){
+ this.$message.error('请输入身份证或手机号')
+ return;
+ }
const res = await getResidentInfo({
idCard: this.checnInForm.idCard, // 身份证
phone: this.checnInForm.phone, // 手机号
@@ -289,7 +293,7 @@ export default {
if(this.userInfo.checkInRecId){
this.getCheckInRecInfo()
}
- } else {
+ } else if(!res.data){
this.$message.error("查询失败")
}
} catch (error) {