feat:监控模块按钮权限
This commit is contained in:
@@ -957,7 +957,7 @@ onMounted(() => {
|
|||||||
{{ t('views.faultManage.activeAlarm.updateConfirm') }}
|
{{ t('views.faultManage.activeAlarm.updateConfirm') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
|
|
||||||
<a-button type="primary" @click.prevent="fnSync()">
|
<a-button type="primary" @click.prevent="fnSync()" v-perms:has="['faultManage:active-alarm:async']">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<ReloadOutlined />
|
<ReloadOutlined />
|
||||||
</template>
|
</template>
|
||||||
@@ -974,6 +974,7 @@ onMounted(() => {
|
|||||||
danger
|
danger
|
||||||
@click.prevent="fnClear()"
|
@click.prevent="fnClear()"
|
||||||
:disabled="state.selectedRowKeys.length <= 0"
|
:disabled="state.selectedRowKeys.length <= 0"
|
||||||
|
v-perms:has="['faultManage:active-alarm:delete']"
|
||||||
>
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<DeleteOutlined />
|
<DeleteOutlined />
|
||||||
@@ -981,7 +982,7 @@ onMounted(() => {
|
|||||||
{{ t('views.faultManage.activeAlarm.clear') }}
|
{{ t('views.faultManage.activeAlarm.clear') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
|
|
||||||
<a-button type="dashed" @click.prevent="fnExportList()">
|
<a-button type="dashed" @click.prevent="fnExportList()" v-perms:has="['faultManage:active-alarm:export']">
|
||||||
<template #icon><ExportOutlined /></template>
|
<template #icon><ExportOutlined /></template>
|
||||||
{{ t('common.export') }}
|
{{ t('common.export') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
|
|||||||
@@ -744,7 +744,7 @@ onMounted(() => {
|
|||||||
<!-- 插槽-卡片左侧侧 -->
|
<!-- 插槽-卡片左侧侧 -->
|
||||||
<template #title>
|
<template #title>
|
||||||
<a-space :size="8" align="center">
|
<a-space :size="8" align="center">
|
||||||
<a-button type="dashed" @click.prevent="fnExportList()">
|
<a-button type="dashed" @click.prevent="fnExportList()" v-perms:has="['faultManage:history-alarm:export']">
|
||||||
<template #icon><ExportOutlined /></template>
|
<template #icon><ExportOutlined /></template>
|
||||||
{{ t('common.export') }}
|
{{ t('common.export') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
|
|||||||
@@ -593,13 +593,13 @@ onMounted(() => {
|
|||||||
<!-- 插槽-卡片左侧侧 -->
|
<!-- 插槽-卡片左侧侧 -->
|
||||||
<template #title>
|
<template #title>
|
||||||
<a-space :size="8" align="center">
|
<a-space :size="8" align="center">
|
||||||
<a-button @click="fnFileView()">
|
<a-button @click="fnFileView()" v-perms:has="['traceManage:pcap:fileview']">
|
||||||
<FileSearchOutlined />
|
<FileSearchOutlined />
|
||||||
{{ t('views.traceManage.pcap.fileView') }}
|
{{ t('views.traceManage.pcap.fileView') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
|
|
||||||
<a-dropdown trigger="click">
|
<a-dropdown trigger="click">
|
||||||
<a-button :disabled="tableState.selectedRowKeys.length <= 0">
|
<a-button :disabled="tableState.selectedRowKeys.length <= 0" >
|
||||||
{{ t('views.traceManage.pcap.batchOper') }}
|
{{ t('views.traceManage.pcap.batchOper') }}
|
||||||
<DownOutlined />
|
<DownOutlined />
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -678,6 +678,7 @@ onMounted(() => {
|
|||||||
size="small"
|
size="small"
|
||||||
:disabled="modalState.from[record.id].loading"
|
:disabled="modalState.from[record.id].loading"
|
||||||
@click.prevent="fnRecordStart(record)"
|
@click.prevent="fnRecordStart(record)"
|
||||||
|
v-perms:has="['traceManage:pcap:start']"
|
||||||
>
|
>
|
||||||
<template #icon><PlayCircleOutlined /> </template>
|
<template #icon><PlayCircleOutlined /> </template>
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -697,6 +698,7 @@ onMounted(() => {
|
|||||||
danger
|
danger
|
||||||
size="small"
|
size="small"
|
||||||
@click.prevent="fnRecordStop(record)"
|
@click.prevent="fnRecordStop(record)"
|
||||||
|
v-perms:has="['traceManage:pcap:stop']"
|
||||||
>
|
>
|
||||||
<template #icon><StopOutlined /> </template>
|
<template #icon><StopOutlined /> </template>
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -717,6 +719,7 @@ onMounted(() => {
|
|||||||
ghost
|
ghost
|
||||||
size="small"
|
size="small"
|
||||||
@click.prevent="fnModalVisibleByVive(record.id)"
|
@click.prevent="fnModalVisibleByVive(record.id)"
|
||||||
|
v-perms:has="['traceManage:pcap:textlog']"
|
||||||
>
|
>
|
||||||
<template #icon><FileTextOutlined /> </template>
|
<template #icon><FileTextOutlined /> </template>
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -736,6 +739,7 @@ onMounted(() => {
|
|||||||
ghost
|
ghost
|
||||||
size="small"
|
size="small"
|
||||||
@click.prevent="fnDownPCAP(record)"
|
@click.prevent="fnDownPCAP(record)"
|
||||||
|
v-perms:has="['traceManage:pcap:download']"
|
||||||
>
|
>
|
||||||
<template #icon><DownloadOutlined /> </template>
|
<template #icon><DownloadOutlined /> </template>
|
||||||
</a-button>
|
</a-button>
|
||||||
|
|||||||
@@ -701,7 +701,7 @@ onMounted(() => {
|
|||||||
<!-- 插槽-卡片左侧侧 -->
|
<!-- 插槽-卡片左侧侧 -->
|
||||||
<template #title>
|
<template #title>
|
||||||
<a-space :size="8" align="center">
|
<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>
|
<template #icon><PlusOutlined /></template>
|
||||||
{{ t('common.addText') }}
|
{{ t('common.addText') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -712,6 +712,7 @@ onMounted(() => {
|
|||||||
:disabled="tableState.selectedRowKeys.length <= 0"
|
:disabled="tableState.selectedRowKeys.length <= 0"
|
||||||
:loading="modalState.confirmLoading"
|
:loading="modalState.confirmLoading"
|
||||||
@click.prevent="fnRecordDelete('0')"
|
@click.prevent="fnRecordDelete('0')"
|
||||||
|
v-perms:has="['traceManage:task:delete']"
|
||||||
>
|
>
|
||||||
<template #icon><DeleteOutlined /></template>
|
<template #icon><DeleteOutlined /></template>
|
||||||
{{ t('common.deleteText') }}
|
{{ t('common.deleteText') }}
|
||||||
@@ -796,6 +797,7 @@ onMounted(() => {
|
|||||||
<a-button
|
<a-button
|
||||||
type="link"
|
type="link"
|
||||||
@click.prevent="fnRecordView(record, 'data')"
|
@click.prevent="fnRecordView(record, 'data')"
|
||||||
|
v-perms:has="['traceManage:task:dataview']"
|
||||||
>
|
>
|
||||||
<template #icon><ContainerOutlined /></template>
|
<template #icon><ContainerOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -809,6 +811,7 @@ onMounted(() => {
|
|||||||
<a-button
|
<a-button
|
||||||
type="link"
|
type="link"
|
||||||
@click.prevent="fnRecordView(record, 'analyze')"
|
@click.prevent="fnRecordView(record, 'analyze')"
|
||||||
|
v-perms:has="['traceManage:task:pcapview']"
|
||||||
>
|
>
|
||||||
<template #icon><BarsOutlined /></template>
|
<template #icon><BarsOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -820,6 +823,7 @@ onMounted(() => {
|
|||||||
<a-button
|
<a-button
|
||||||
type="link"
|
type="link"
|
||||||
@click.prevent="fnModalOpenByEdit(record.id)"
|
@click.prevent="fnModalOpenByEdit(record.id)"
|
||||||
|
v-perms:has="['traceManage:task:edit']"
|
||||||
>
|
>
|
||||||
<template #icon><ProfileOutlined /></template>
|
<template #icon><ProfileOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -830,6 +834,7 @@ onMounted(() => {
|
|||||||
type="link"
|
type="link"
|
||||||
danger
|
danger
|
||||||
@click.prevent="fnRecordDelete(record.id)"
|
@click.prevent="fnRecordDelete(record.id)"
|
||||||
|
v-perms:has="['traceManage:task:delete']"
|
||||||
>
|
>
|
||||||
<template #icon><DeleteOutlined /></template>
|
<template #icon><DeleteOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
|
|||||||
@@ -62,9 +62,9 @@ function fnUpload(up: UploadRequestOption) {
|
|||||||
:before-upload="fnBeforeUpload"
|
:before-upload="fnBeforeUpload"
|
||||||
:custom-request="fnUpload"
|
:custom-request="fnUpload"
|
||||||
>
|
>
|
||||||
<a-button type="primary"> Upload </a-button>
|
<a-button type="primary" v-perms:has="['traceManage:tshark:edit']"> Upload </a-button>
|
||||||
</a-upload>
|
</a-upload>
|
||||||
<a-button @click="handleLoadExample()">Example</a-button>
|
<a-button @click="handleLoadExample()" v-perms:has="['traceManage:tshark:example']">Example</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
<!-- 插槽-卡片右侧 -->
|
<!-- 插槽-卡片右侧 -->
|
||||||
|
|||||||
@@ -582,6 +582,7 @@ onBeforeUnmount(() => {
|
|||||||
type="primary"
|
type="primary"
|
||||||
@click="fnStart"
|
@click="fnStart"
|
||||||
:disabled="!taskState.stop && taskState.task.taskNo !== ''"
|
:disabled="!taskState.stop && taskState.task.taskNo !== ''"
|
||||||
|
v-perms:has="['traceManage:wireshark:start']"
|
||||||
>
|
>
|
||||||
<PlayCircleOutlined />
|
<PlayCircleOutlined />
|
||||||
Start Trace
|
Start Trace
|
||||||
@@ -610,6 +611,7 @@ onBeforeUnmount(() => {
|
|||||||
danger
|
danger
|
||||||
@click.prevent="fnStop()"
|
@click.prevent="fnStop()"
|
||||||
:disabled="taskState.stop || taskState.task.taskNo === ''"
|
:disabled="taskState.stop || taskState.task.taskNo === ''"
|
||||||
|
v-perms:has="['traceManage:wireshark:stop']"
|
||||||
>
|
>
|
||||||
<template #icon><CloseCircleOutlined /></template>
|
<template #icon><CloseCircleOutlined /></template>
|
||||||
Stop Trace
|
Stop Trace
|
||||||
|
|||||||
Reference in New Issue
Block a user