修改了经理端部分代码
This commit is contained in:
@ -22,15 +22,6 @@ Page({
|
||||
const phoneNumber = this.data.phoneNumber.trim();
|
||||
const { supervisorUserId } = 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/staff',
|
||||
method: 'POST',
|
||||
@ -67,7 +58,7 @@ Page({
|
||||
onSearchSupId() {
|
||||
|
||||
const { supervisorUserId } = this.data;
|
||||
|
||||
|
||||
wx.request({
|
||||
url: baseUrl + '/perform/query/staff',
|
||||
method: 'POST',
|
||||
@ -107,9 +98,8 @@ Page({
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
console.log('--->',options);
|
||||
this.setData({
|
||||
supervisorUserId: options.id,
|
||||
supervisorUserId: options.supId,
|
||||
})
|
||||
this.onSearchSupId();
|
||||
},
|
||||
|
@ -57,7 +57,7 @@
|
||||
<!-- 基本信息 -->
|
||||
<view class="flex-row justify-between self-stretch group">
|
||||
<view class="flex-col items-start self-center">
|
||||
<text class="font_2">编号:{{item.id}}</text>
|
||||
<text class="font_2">编号:{{index + 1}}</text>
|
||||
<text class="font text_8 mt-13">员工:{{item.nickName}}</text>
|
||||
</view>
|
||||
<view class="flex-col justify-start self-start text-wrapper_4" bind:tap="gotoUser" data-id="{{ item.userId }}">
|
||||
|
Reference in New Issue
Block a user