feat: 处理权限
This commit is contained in:
@@ -276,7 +276,7 @@ defineExpose({
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<Button type="primary" @click="handleAdd">新增排班</Button>
|
||||
<Button type="primary" @click="handleAdd" v-access:code="['Property:arrangement:add']">新增排班</Button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-1 p-1">
|
||||
@@ -295,12 +295,16 @@ defineExpose({
|
||||
<a
|
||||
style="margin-left: 4px; color: #1890ff; cursor: pointer"
|
||||
@click.stop="handleEdit(item.item, current)"
|
||||
v-access:code="['Property:arrangement:edit']"
|
||||
|
||||
>
|
||||
编辑
|
||||
</a>
|
||||
<a
|
||||
style="margin-left: 4px; color: #ff4d4f; cursor: pointer"
|
||||
@click.stop="handleDelete(item.item)"
|
||||
v-access:code="['Property:arrangement:remove']"
|
||||
|
||||
>
|
||||
删除
|
||||
</a>
|
||||
@@ -311,6 +315,7 @@ defineExpose({
|
||||
v-if="getListData2(current).length > 0"
|
||||
style="margin-left: 4px; color: #1890ff; cursor: pointer"
|
||||
@click.stop="handleViewDateDetails(current)"
|
||||
v-access:code="['Property:userGroup:queryScheduleView']"
|
||||
>
|
||||
详情
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user