增加权限限制

This commit is contained in:
lai
2024-06-06 14:37:27 +08:00
parent 29e092421c
commit b7b66ad28d
2 changed files with 78 additions and 9 deletions

View File

@@ -65,7 +65,12 @@ function fnChangeLocale(e: any) {
<template>
<a-space :size="12" align="center">
<a-button type="text" style="color: inherit" @click="fnClickAlarm">
<a-button
type="text"
style="color: inherit"
@click="fnClickAlarm"
v-roles:has="['administrator']"
>
<template #icon>
<a-badge
:count="useAlarmStore().activeAlarmTotal"
@@ -89,7 +94,12 @@ function fnChangeLocale(e: any) {
<a-tooltip placement="bottom">
<template #title>{{ t('loayouts.rightContent.helpDoc') }}</template>
<a-button type="text" style="color: inherit" @click="fnClickHelpDoc()">
<a-button
type="text"
style="color: inherit"
@click="fnClickHelpDoc()"
v-roles:has="['administrator']"
>
<template #icon>
<QuestionCircleOutlined />
</template>