修改了经理端部分代码
This commit is contained in:
@ -21,16 +21,6 @@ Page({
|
||||
onSearch() {
|
||||
const nickName = this.data.nickName.trim();
|
||||
const phoneNumber = this.data.phoneNumber.trim();
|
||||
const { id } = this.data
|
||||
|
||||
if (!nickName) {
|
||||
wx.showToast({ title: '请输入主管名称', icon: 'none' });
|
||||
return;
|
||||
}
|
||||
if (!/^1[3-9]\d{9}$/.test(phoneNumber)) {
|
||||
wx.showToast({ title: '请输入正确的手机号', icon: 'none' });
|
||||
return;
|
||||
}
|
||||
|
||||
wx.request({
|
||||
url: baseUrl + '/perform/query/supervisor',
|
||||
@ -89,12 +79,13 @@ Page({
|
||||
break;
|
||||
}
|
||||
this.setData({ showRole });
|
||||
this.onSearch()
|
||||
},
|
||||
|
||||
changeStaff(e) {
|
||||
|
||||
const { id } = e.currentTarget.dataset;
|
||||
|
||||
console.log(id)
|
||||
wx.navigateTo({
|
||||
url: `/pages/dashboardModule/staffPerformance/staffPerformance?supId=${id}`,
|
||||
})
|
||||
|
Reference in New Issue
Block a user