[AI Generated]: refactor(Comp): 移除配网超时机制、工号输入满8位自动查询用户
This commit is contained in:
@@ -100,12 +100,13 @@ Component({
|
||||
});
|
||||
},
|
||||
|
||||
// 监听工号输入(员工模式)
|
||||
// 监听工号输入(员工模式),输入满 8 位时自动查询
|
||||
onWorkNoInput(e) {
|
||||
this.setData({
|
||||
workNo: e.detail.value,
|
||||
userInfo: null
|
||||
});
|
||||
const value = e.detail.value;
|
||||
this.setData({ workNo: value, userInfo: null });
|
||||
if (value.trim().length === 8) {
|
||||
this.searchUser();
|
||||
}
|
||||
},
|
||||
|
||||
// 监听身高输入(员工模式)
|
||||
|
||||
Reference in New Issue
Block a user