From e984d2b44dd54d42c2922c32654b9b1e152ce0c1 Mon Sep 17 00:00:00 2001 From: Romesum Date: Fri, 8 May 2020 00:22:58 +0800 Subject: [PATCH] =?UTF-8?q?[fix][V]=EF=BC=9A=E5=AE=8C=E5=96=84=E5=A4=9A?= =?UTF-8?q?=E9=80=89=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 --- .../src/components/supManager/userManage.vue | 32 ++++++++----------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/element-vue/src/components/supManager/userManage.vue b/element-vue/src/components/supManager/userManage.vue index 00cb472..bebb830 100644 --- a/element-vue/src/components/supManager/userManage.vue +++ b/element-vue/src/components/supManager/userManage.vue @@ -8,11 +8,15 @@ 新增用户 + 多选删除 + @@ -53,25 +57,11 @@ data() { return { search: '', - tableData: [{ - nickname: "", - tel: "", - email: "", - username: "", - office: "", - position:'', - uid: 0 - }], + items: [], + tableData: [], dialogFormVisible: false, edit: false, - userForm: { - nickname: "", - tel: "", - email: "", - username: "", - office: "", - position: '' - } + userForm: {} } } , @@ -82,6 +72,9 @@ handleClick(row) { console.log(row); }, + handleSelectionChange(val) { + this.items = val; + }, addUser() { this.edit = false this.userForm = { @@ -106,6 +99,10 @@ showFail("删除失败 " + e.msg, this) }) }, + async deleteUserMul(){ + await showDialog("确认要删除吗?", this) + showFail("尚未开发",this) + }, // 编辑用户 async editUser(item) { await showDialog('确认编辑该用户吗?',this) @@ -114,7 +111,6 @@ this.dialogFormVisible = true }, cancel(){ - console.log(1) this.dialogFormVisible = false }, confirm(){