From 9acd05a2cc3f95763c03adcb7981bdcb560755ca Mon Sep 17 00:00:00 2001 From: lilinyuan <1084668738@qq.com> Date: Sat, 1 Jun 2024 20:49:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=ACbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/role/index.vue | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 843176f..c4c2eca 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -144,9 +144,9 @@ const tableConfig = reactive({ // } // ) if(authStore.roles.includes('superAdmin')) { - btn.push({label: '删除', auth: auths.edit, func: ()=>handleDel(row) , type: 'danger'}) + btn.push({label: '删除', auth: auths.del, func: ()=>handleDel(row) , type: 'danger'}) } else if(!row.template) { - btn.push({label: '删除', auth: auths.edit, func: ()=>handleDel(row) , type: 'danger'}) + btn.push({label: '删除', auth: auths.del, func: ()=>handleDel(row) , type: 'danger'}) } return (
@@ -200,7 +200,7 @@ const formatDataScope = (dataScope) => { const handleAdd = () => { router.push({ - path: '/system/roleadd', + name: 'Roleadd', query: { isAdd: 1 } @@ -209,7 +209,7 @@ const handleAdd = () => { const handleEdit = (row) => { router.push({ - path: '/system/roleedit', + name: 'Roleedit', query: { id: row.roleId } @@ -221,14 +221,14 @@ const handleAssign = (row) => { } const handleDel = (row) => { - if (!(row.template && authStore.roles.includes('superAdmin'))) { - ElNotification({ - title: '提示', - message: '模版角色只能由超级管理员删除!', - type: 'warning' - }) - return - } + // if (!(row.template && authStore.roles.includes('superAdmin'))) { + // ElNotification({ + // title: '提示', + // message: '模版角色只能由超级管理员删除!', + // type: 'warning' + // }) + // return + // } ElMessageBox.confirm('确定删除该条数据吗?', '确定删除', { type: 'warning',