Commit d86add62 authored by wangqinghua's avatar wangqinghua

bug update

parent 0e71443d
......@@ -69,6 +69,7 @@
</td>
<td class="handle main-color">
<span (click)="grantRole(data)">授权</span>
<span (click)="initPassword(data)">重置密码</span>
<span (click)="showEditModal(data)">编辑</span>
<span class="handle-delete" (click)="deleteUser(data)">删除</span>
</td>
......
......@@ -301,4 +301,20 @@ export class GroupComponent implements OnInit {
this.smartUpload.showModal('上传组织文件');
}
//重置密码
initPassword(item) {
const data = {
userIds: item.id,
orgId: item.organizationId
};
this.systemSer.initPassword(data).subscribe(
(res) => {
if (res.errCode == 10000) {
this.message.success('重置密码成功');
this.getUser();
}
}
);
}
}
......@@ -259,6 +259,11 @@ export class SystemService {
return this.http.get(SERVER_API_URL_COMS + '/organization/findByUserId/' + params);
}
//重置密码
initPassword(data): Observable<any> {
return this.http.post(SERVER_API_URL_COMS + '/initPassword', data);
}
/**
* 下载模版文件
* @param pararms 参数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment