diff --git a/src/views/am/blt.vue b/src/views/am/blt.vue index c1c2ca0f..3a4e8524 100644 --- a/src/views/am/blt.vue +++ b/src/views/am/blt.vue @@ -166,7 +166,7 @@ export default { this.syncLoading = false; }, getEmployee(data) { - this.form.employee=data.id; + this.form.employee=data.employee; this.form.employee_name=data.name }, handleBindBlt(type, row) { diff --git a/src/views/hrm/employee.vue b/src/views/hrm/employee.vue index db0ad1a0..386703fd 100644 --- a/src/views/hrm/employee.vue +++ b/src/views/hrm/employee.vue @@ -311,6 +311,7 @@ export default { }, closed(data) { this.showBindBlt = false; + this.$refs.table.refresh(); }, getBltList() { @@ -338,11 +339,8 @@ export default { submitBindBlt() { let that = this; that.$API.third.tdevice.bltBind.req(this.form).then((res) => { - if (res.err_msg) { - } else { that.showBindBlt = false; that.$refs.table.refresh(); - } }); }, },