From 8f1ef4dc7ee7fb957683a00cfbb1d6132a9c44c9 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 8 Apr 2022 18:30:35 +0800 Subject: [PATCH] BUG 28975 --- .../AppAccountXiushan/AppAccountXiushan.vue | 45 ++++++++++--------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/project/xiushan/apps/AppAccountXiushan/AppAccountXiushan.vue b/project/xiushan/apps/AppAccountXiushan/AppAccountXiushan.vue index fb9d8c91..4ca28eb3 100644 --- a/project/xiushan/apps/AppAccountXiushan/AppAccountXiushan.vue +++ b/project/xiushan/apps/AppAccountXiushan/AppAccountXiushan.vue @@ -27,9 +27,9 @@ - 功能分配 + 功能分配 + 删除 @@ -55,22 +55,20 @@ + + + - - - + - - - - - + + + @@ -130,7 +128,6 @@ export default { data() { return { condition: "", - accountRoles: [], page: {current: 1, size: 10, total: 0}, dialog: false, dialogForm: {}, @@ -171,15 +168,7 @@ export default { }, initDialogData() { //用于优化初始化数据 - this.getAccountRoles() - this.searchSysAll() - }, - getAccountRoles() { - this.accountRoles.length == 0 && this.instance.post("/admin/role-acc/list-all").then(res => { - if (res?.data) { - this.accountRoles = res.data - } - }) + // this.searchSysAll() }, batchAllot() { this.dialog = true @@ -243,6 +232,18 @@ export default { }) } }) + }, + handleDelete(ids) { + this.$confirm("是否要删除该账号?").then(() => { + this.instance.post("/user/delete", null, { + params: {ids} + }).then(res => { + if (res?.code == 0) { + this.$message.success("删除成功!") + this.getTableData() + } + }) + }).catch(() => 0) } }, created() {