refactor: ♻️ 优化CURD组件权限处理
将权限属性名从 auth 统一修改为 perm,保持命名一致性 更新 permPrefix 替代 pageName 作为权限前缀标识 优化权限检查逻辑,未设置权限标识的按钮默认显示
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
<template>
|
||||
<div v-show="visible" v-bind="{ style: { 'margin-bottom': '12px' }, ...cardAttrs }">
|
||||
<el-card
|
||||
v-hasPerm="searchConfig?.pageName ? `${searchConfig.pageName}:query` : '*:*:*'"
|
||||
v-bind="cardAttrs"
|
||||
>
|
||||
<el-card v-bind="cardAttrs">
|
||||
<el-form ref="queryFormRef" :model="queryParams" v-bind="formAttrs" :class="isGrid">
|
||||
<template v-for="(item, index) in formItems" :key="item.prop">
|
||||
<el-form-item
|
||||
|
||||
Reference in New Issue
Block a user