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 @@
diff --git a/src/views/records/checkin/index.vue b/src/views/records/checkin/index.vue index c38bc98..5e3db51 100644 --- a/src/views/records/checkin/index.vue +++ b/src/views/records/checkin/index.vue @@ -729,7 +729,6 @@ export default { $route:{ handler: function (newVal, oldVal) { console.log(newVal); - if (newVal.query) { this.queryParams.idCard = newVal.query.idCard; this.handleQuery() diff --git a/src/views/residence/checkIn/index.vue b/src/views/residence/checkIn/index.vue index 2dbbd18..a28e3ff 100644 --- a/src/views/residence/checkIn/index.vue +++ b/src/views/residence/checkIn/index.vue @@ -33,11 +33,11 @@
- + - + 查询 @@ -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) {