fix: 绑定解绑定位卡后刷新列表

This commit is contained in:
caoqianming 2023-04-12 15:29:42 +08:00
parent dc78d09542
commit de5746330a
2 changed files with 2 additions and 4 deletions

View File

@ -166,7 +166,7 @@ export default {
this.syncLoading = false; this.syncLoading = false;
}, },
getEmployee(data) { getEmployee(data) {
this.form.employee=data.id; this.form.employee=data.employee;
this.form.employee_name=data.name this.form.employee_name=data.name
}, },
handleBindBlt(type, row) { handleBindBlt(type, row) {

View File

@ -311,6 +311,7 @@ export default {
}, },
closed(data) { closed(data) {
this.showBindBlt = false; this.showBindBlt = false;
this.$refs.table.refresh();
}, },
getBltList() { getBltList() {
@ -338,11 +339,8 @@ export default {
submitBindBlt() { submitBindBlt() {
let that = this; let that = this;
that.$API.third.tdevice.bltBind.req(this.form).then((res) => { that.$API.third.tdevice.bltBind.req(this.form).then((res) => {
if (res.err_msg) {
} else {
that.showBindBlt = false; that.showBindBlt = false;
that.$refs.table.refresh(); that.$refs.table.refresh();
}
}); });
}, },
}, },