feat:监控模块按钮权限

This commit is contained in:
zhongzm
2025-09-12 17:09:17 +08:00
parent 05d59ec526
commit 5839aa3cb1
6 changed files with 21 additions and 9 deletions

View File

@@ -701,7 +701,7 @@ onMounted(() => {
<!-- 插槽-卡片左侧侧 -->
<template #title>
<a-space :size="8" align="center">
<a-button type="primary" @click.prevent="fnModalOpenByEdit()">
<a-button type="primary" @click.prevent="fnModalOpenByEdit()" v-perms:has="['traceManage:task:add']">
<template #icon><PlusOutlined /></template>
{{ t('common.addText') }}
</a-button>
@@ -712,6 +712,7 @@ onMounted(() => {
:disabled="tableState.selectedRowKeys.length <= 0"
:loading="modalState.confirmLoading"
@click.prevent="fnRecordDelete('0')"
v-perms:has="['traceManage:task:delete']"
>
<template #icon><DeleteOutlined /></template>
{{ t('common.deleteText') }}
@@ -796,6 +797,7 @@ onMounted(() => {
<a-button
type="link"
@click.prevent="fnRecordView(record, 'data')"
v-perms:has="['traceManage:task:dataview']"
>
<template #icon><ContainerOutlined /></template>
</a-button>
@@ -809,6 +811,7 @@ onMounted(() => {
<a-button
type="link"
@click.prevent="fnRecordView(record, 'analyze')"
v-perms:has="['traceManage:task:pcapview']"
>
<template #icon><BarsOutlined /></template>
</a-button>
@@ -820,6 +823,7 @@ onMounted(() => {
<a-button
type="link"
@click.prevent="fnModalOpenByEdit(record.id)"
v-perms:has="['traceManage:task:edit']"
>
<template #icon><ProfileOutlined /></template>
</a-button>
@@ -830,6 +834,7 @@ onMounted(() => {
type="link"
danger
@click.prevent="fnRecordDelete(record.id)"
v-perms:has="['traceManage:task:delete']"
>
<template #icon><DeleteOutlined /></template>
</a-button>