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 @@