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/datamanage/projectManage.vue | 30 ++++++++++++++++++++++++------ 1 files changed, 24 insertions(+), 6 deletions(-) diff --git a/src/views/datamanage/projectManage.vue b/src/views/datamanage/projectManage.vue index cbbe5fe..7fd64db 100644 --- a/src/views/datamanage/projectManage.vue +++ b/src/views/datamanage/projectManage.vue @@ -355,12 +355,30 @@ //鍒犻櫎椤圭洰 async deleteProject(row) { - const data = await project_delete({ gid: row.gid }); - if (data.code != 200) { - this.$message.error('椤圭洰鍒犻櫎澶辫触'); - return; - } - this.getSelectProject(); + this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ラ」鐩�, 鏄惁缁х画?', '鎻愮ず', { + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷', + type: 'warning' + }).then(async () => { + const data = await project_delete({ gid: row.gid }); + if (data.code == 200) { + this.$message({ + message: "鍒犻櫎鎴愬姛锛�", + type: "success", + }); + this.getRoleTabelData(); + } else { + this.$message({ + message: "鍒犻櫎澶辫触锛�", + type: "warning", + }); + } + }).catch(() => { + this.$message({ + type: 'info', + message: '宸插彇娑堝垹闄�' + }); + }); }, //淇敼椤圭洰 EditProject(row) { -- Gitblit v1.9.3