From 25aa698ba7e077c80ba115697aeadc12226ad48e Mon Sep 17 00:00:00 2001 From: liupengpeng <276665548@qq.com> Date: 星期一, 13 二月 2023 18:01:10 +0800 Subject: [PATCH] 所有的删除提示 --- src/views/AuthorizationManagement/userRoleAuthorization.vue | 41 +++++++++++++++++++++++++++++++++-------- 1 files changed, 33 insertions(+), 8 deletions(-) diff --git a/src/views/AuthorizationManagement/userRoleAuthorization.vue b/src/views/AuthorizationManagement/userRoleAuthorization.vue index b80bc57..8a60bd4 100644 --- a/src/views/AuthorizationManagement/userRoleAuthorization.vue +++ b/src/views/AuthorizationManagement/userRoleAuthorization.vue @@ -318,15 +318,40 @@ this.usermultipleSelection.forEach((e) => { arr.push(e.id); }); - const data = await roleUserdeletes({ ids: arr.toString() }); - if (data.code !== 200) { - return this.$message.error('鍒犻櫎澶辫触'); - } - this.$message({ - message: '鍒犻櫎鎴愬姛', - type: 'success', + this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユ潈闄�, 鏄惁缁х画?', '鎻愮ず', { + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷', + type: 'warning' + }).then(async () => { + const data = await roleUserdeletes({ ids: arr.toString() }); + if (data.code == 200) { + this.InsertFormdialog = false; + this.$message({ + message: '鍒犻櫎鎴愬姛锛�', + type: 'success', + }); + this.getuserList(); + } else { + this.$message({ + message: '鍒犻櫎澶辫触锛�', + type: 'warning', + }); + } + }).catch(() => { + this.$message({ + type: 'info', + message: '宸插彇娑堝垹闄�' + }); }); - this.getuserList(); + // const data = await roleUserdeletes({ ids: arr.toString() }); + // if (data.code !== 200) { + // return this.$message.error('鍒犻櫎澶辫触'); + // } + // this.$message({ + // message: '鍒犻櫎鎴愬姛', + // type: 'success', + // }); + // this.getuserList(); }, //鐢ㄦ埛琛ㄥ閫� handleSelectionChange(val) { -- Gitblit v1.9.3