From 53c751ea26ec36f8349bdb00b872996f507d0c59 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Mon, 20 Feb 2023 08:38:03 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E9=87=8D=E7=BD=AE=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system-management/user/user.component.ts | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) 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) => {