From dede836215f245cb7e0b6c970345330b0634b0be Mon Sep 17 00:00:00 2001 From: Dong Xia Date: Thu, 9 Feb 2023 07:15:10 +0000 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=88=A0=E9=99=A4=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dong Xia --- src/pages/user/index.vue | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/pages/user/index.vue b/src/pages/user/index.vue index 16318fa..4940842 100644 --- a/src/pages/user/index.vue +++ b/src/pages/user/index.vue @@ -97,6 +97,26 @@ export default { handleEditUserOk() { this.$refs.userAdd.formSubmit() }, + handleDelete(record) { + this.$confirm({ + title: '系统提示', + content: '真的要删除用户么?', + okText: '确认', + cancelText: '取消', + onOk: () => { + // 删除 + deleteUser(record.id).then((res) => { + if (res.code === 200) { + this.$notification.success({ + message: res.msg, + duration: 2 + }) + this.loadData() + } + }) + } + }) + } } } \ No newline at end of file -- Gitee