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() {