From ef531150d3e9764fb74ae2ad82f6b24bf35ceccf Mon Sep 17 00:00:00 2001 From: zwq Date: Sun, 23 Apr 2023 14:53:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/basic-page.js | 8 ++++---- src/views/modules/sys/role-add-or-update.vue | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mixins/basic-page.js b/src/mixins/basic-page.js index f93b668..e31b445 100644 --- a/src/mixins/basic-page.js +++ b/src/mixins/basic-page.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2022-08-24 11:19:43 * @LastEditors: zwq - * @LastEditTime: 2023-03-03 11:18:06 + * @LastEditTime: 2023-04-23 14:51:56 * @Description: */ export default { @@ -104,14 +104,14 @@ export default { this.$refs.addOrUpdate.init(val.data.id); }); } else if (val.type === "delete") { - this.deleteHandle(val.data.id,val.data._pageIndex) + this.deleteHandle(val.data.id, val.data.name,val.data._pageIndex) }else{ this.btnFun(val) } }, // 删除 - deleteHandle(id, index) { - this.$confirm(`确定对[序号=${index}]进行删除操作?`, "提示", { + deleteHandle(id, name,index) { + this.$confirm(`确定对${name?'[名称='+name+']':'[序号='+index+']'}进行删除操作?`, "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning", diff --git a/src/views/modules/sys/role-add-or-update.vue b/src/views/modules/sys/role-add-or-update.vue index 21ff9f9..12f1349 100644 --- a/src/views/modules/sys/role-add-or-update.vue +++ b/src/views/modules/sys/role-add-or-update.vue @@ -1,5 +1,5 @@