mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
员工详情重置密码bug
This commit is contained in:
parent
8834fb9167
commit
23aea8245c
@ -5,7 +5,7 @@
|
|||||||
},
|
},
|
||||||
_initEvent: function () {
|
_initEvent: function () {
|
||||||
vc.on('resetStaffPwd', 'openResetStaffPwd', function (_staffInfo) {
|
vc.on('resetStaffPwd', 'openResetStaffPwd', function (_staffInfo) {
|
||||||
vc.component.resetStaffPwdInfo = _staffInfo;
|
$that.resetStaffPwdInfo = _staffInfo;
|
||||||
$('#resetStaffPwdModel').modal('show');
|
$('#resetStaffPwdModel').modal('show');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -16,7 +16,7 @@
|
|||||||
resetStaffPwd: function () {
|
resetStaffPwd: function () {
|
||||||
var _dataObj = {
|
var _dataObj = {
|
||||||
communityId: vc.getCurrentCommunity().communityId,
|
communityId: vc.getCurrentCommunity().communityId,
|
||||||
staffId: vc.component.resetStaffPwdInfo.userId
|
staffId: $that.resetStaffPwdInfo.userId
|
||||||
};
|
};
|
||||||
vc.http.apiPost(
|
vc.http.apiPost(
|
||||||
'/user.resetStaffPwd',
|
'/user.resetStaffPwd',
|
||||||
@ -37,7 +37,7 @@
|
|||||||
},
|
},
|
||||||
function (errInfo, error) {
|
function (errInfo, error) {
|
||||||
console.log('请求失败处理');
|
console.log('请求失败处理');
|
||||||
vc.component.resetStaffPwdInfo.errorInfo = errInfo;
|
$that.resetStaffPwdInfo.errorInfo = errInfo;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,12 +24,12 @@
|
|||||||
if (!vc.notNull($that.staffDetailInfo.staffId)) {
|
if (!vc.notNull($that.staffDetailInfo.staffId)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
vc.component._loadStaffInfo();
|
$that._loadStaffInfo();
|
||||||
$that.changeTab($that.staffDetailInfo._currentTab);
|
$that.changeTab($that.staffDetailInfo._currentTab);
|
||||||
},
|
},
|
||||||
_initEvent: function () {
|
_initEvent: function () {
|
||||||
vc.on('staffDetail', 'listStaffData', function (_info) {
|
vc.on('staffDetail', 'listStaffData', function (_info) {
|
||||||
vc.component._loadStaffInfo();
|
$that._loadStaffInfo();
|
||||||
$that.changeTab($that.staffDetailInfo._currentTab);
|
$that.changeTab($that.staffDetailInfo._currentTab);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -69,14 +69,16 @@
|
|||||||
$that.staffDetailInfo.photo = $that.staffDetailInfo.url;
|
$that.staffDetailInfo.photo = $that.staffDetailInfo.url;
|
||||||
},
|
},
|
||||||
errorLoadImg: function () {
|
errorLoadImg: function () {
|
||||||
vc.component.staffDetailInfo.photo = "/img/noPhoto.jpg";
|
$that.staffDetailInfo.photo = "/img/noPhoto.jpg";
|
||||||
},
|
},
|
||||||
_openEditStaffModel: function () {
|
_openEditStaffModel: function () {
|
||||||
$that.staffDetailInfo.name = $that.staffDetailInfo.userName;
|
$that.staffDetailInfo.name = $that.staffDetailInfo.userName;
|
||||||
$that.staffDetailInfo.userId = $that.staffDetailInfo.staffId;
|
$that.staffDetailInfo.userId = $that.staffDetailInfo.staffId;
|
||||||
vc.component.$emit('edit_staff_event', $that.staffDetailInfo);
|
$that.$emit('edit_staff_event', $that.staffDetailInfo);
|
||||||
},
|
},
|
||||||
_resetStaffPwd: function (_staff) {
|
_resetStaffPwd: function (_staff) {
|
||||||
|
$that.staffDetailInfo.name = $that.staffDetailInfo.userName;
|
||||||
|
$that.staffDetailInfo.userId = $that.staffDetailInfo.staffId;
|
||||||
vc.emit('resetStaffPwd', 'openResetStaffPwd', $that.staffDetailInfo);
|
vc.emit('resetStaffPwd', 'openResetStaffPwd', $that.staffDetailInfo);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user