diff --git a/src/app/system-management/user/user.component.ts b/src/app/system-management/user/user.component.ts index 8d9e074..04678b3 100644 --- a/src/app/system-management/user/user.component.ts +++ b/src/app/system-management/user/user.component.ts @@ -333,9 +333,22 @@ export class UserComponent implements OnInit { nzOkText: "确定", nzOkType: "primary", nzOnOk: () => { - let body = { - userId: item.id, - }; + let body; + if (this.level == 1) { + body = { + userId: item.id, + }; + } else { + if (item.userId) { + body = { + userId: item.userId, + }; + } else { + this.message.create("warning", "审核未完成的不能重置密码"); + return; + } + } + this.http .post("/api/services/app/User/ResetPassword", body) .subscribe((data: any) => {