From 4f44f50db57df0efde60d29c8fb7888c6896f99b Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 7 Jan 2025 10:04:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor(AppAccountManage):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=B4=A6=E5=8F=B7=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 handleDelete 方法,使其接收 row 参数 - 根据账号认证和配置状态,动态显示删除确认提示 - 提升用户体验,减少误操作风险 --- project/xumu/AppAccountManage/AppAccountManage.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/project/xumu/AppAccountManage/AppAccountManage.vue b/project/xumu/AppAccountManage/AppAccountManage.vue index b7b99237..50d03184 100644 --- a/project/xumu/AppAccountManage/AppAccountManage.vue +++ b/project/xumu/AppAccountManage/AppAccountManage.vue @@ -28,7 +28,7 @@ {{ row.status == 1 ? '禁用' : '启用' }} 编辑 重置密码 - 删除 + 删除 @@ -193,8 +193,13 @@ export default { } }) }, - handleDelete(ids) { - this.$confirm("是否要删除该账号?").then(() => { + handleDelete(row) { + const {id: ids, authStatus, configStatus} = row + let text = "是否要删除该账号?" + if (authStatus == 1) { + text = configStatus == 1 ? "该账户已经认证,是否确认删除该账户?" : "该账户已经认证及配置,是否确认删除该账户?" + } + this.$confirm(text).then(() => { this.instance.post("/admin/user/del", null, { params: {ids} }).then(res => {