mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-01 08:57:14 +08:00
fix: 修复字典操作按钮权限控制失效的问题
This commit is contained in:
@@ -8,8 +8,8 @@
|
|||||||
<template #icon><icon-plus /></template>
|
<template #icon><icon-plus /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
<a class="dict-tree__container">
|
<div class="dict-tree__container">
|
||||||
<a class="dict-tree__tree">
|
<div class="dict-tree__tree">
|
||||||
<a-tree :data="(treeData as unknown as TreeNodeData[])" :field-names="{ key: 'id' }" block-node
|
<a-tree :data="(treeData as unknown as TreeNodeData[])" :field-names="{ key: 'id' }" block-node
|
||||||
@select="select">
|
@select="select">
|
||||||
<template #title="node">
|
<template #title="node">
|
||||||
@@ -25,22 +25,18 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #extra="node">
|
<template #extra="node">
|
||||||
<a-trigger trigger="click" align-point animation-name="slide-dynamic-origin" auto-fit-transform-origin position="bl" scroll-to-close>
|
<a-trigger trigger="click" align-point animation-name="slide-dynamic-origin" auto-fit-transform-origin position="bl" scroll-to-close>
|
||||||
<icon-more-vertical class="action" />
|
<icon-more-vertical v-if="has.hasPermOr(['system:dict:update', 'system:dict:delete'])" class="action" />
|
||||||
<template #content>
|
<template #content>
|
||||||
<RightMenu
|
<RightMenu :data="node" @on-menu-item-click="onMenuItemClick" />
|
||||||
v-if="has.hasPermOr(['system:dict:update', 'system:dict:delete'])"
|
|
||||||
:data="node"
|
|
||||||
@on-menu-item-click="onMenuItemClick"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</a-trigger>
|
</a-trigger>
|
||||||
</template>
|
</template>
|
||||||
</a-tree>
|
</a-tree>
|
||||||
</a>
|
</div>
|
||||||
</a>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<DictAddModal ref="DictAddModalRef" @save-success="getTreeData" />
|
<DictAddModal ref="DictAddModalRef" @save-success="getTreeData" />
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="tsx">
|
<script setup lang="tsx">
|
||||||
|
|||||||
Reference in New Issue
Block a user