From 26056e8e214bf7d65f1fb9d159eb668948b8ed1d Mon Sep 17 00:00:00 2001 From: Seven Date: Mon, 19 Jan 2026 19:00:44 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E4=BA=A4=E6=98=93=E5=AF=86=E7=A0=81=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E7=AE=A1=E7=90=86=E5=91=98=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BA=A4=E6=98=93=E5=AF=86=E7=A0=81=E5=B9=B6?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=88=90=E5=8A=9F=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/index.vue | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/views/user/index.vue b/src/views/user/index.vue index 3c39054..3257ad4 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -102,6 +102,28 @@ const columns: TableBaseColumns = [ content: () => h(Withdraw, { userId: row.userId }) }); } + }, + { + contentText: '重置交易密码', + size: 'small', + onClick: () => { + dialog.warning({ + title: '重置交易密码', + content: '确认重置该用户的交易密码为初始密码123456吗?', + positiveText: '确认重置', + negativeText: '取消', + onPositiveClick: async () => { + const { data } = await safeClient(() => + client.api.admin.user_security({ userId: row.userId })['transaction-password'].reset.post() + ); + + dialog.success({ + title: '操作成功', + content: `该用户的交易密码已重置为初始密码 ${data.value?.password},请妥善告知用户。` + }); + } + }); + } } ] }