fix: 右上角告警和帮助图标仅教师和管理员看见

This commit is contained in:
TsMask
2024-07-06 14:22:04 +08:00
parent 318f84504f
commit 4c85c61f05

View File

@@ -75,18 +75,20 @@ function fnChangeLocale(e: any) {
<template> <template>
<a-space :size="12" align="center"> <a-space :size="12" align="center">
<a-button type="text" style="color: inherit" @click="fnClickAlarm"> <span v-roles:has="['teacher', 'admin']">
<template #icon> <a-button type="text" style="color: inherit" @click="fnClickAlarm">
<a-badge <template #icon>
:count="useAlarmStore().activeAlarmTotal" <a-badge
:overflow-count="99" :count="useAlarmStore().activeAlarmTotal"
status="warning" :overflow-count="99"
style="color: inherit" status="warning"
> style="color: inherit"
<BellOutlined /> >
</a-badge> <BellOutlined />
</template> </a-badge>
</a-button> </template>
</a-button>
</span>
<!-- 锁屏操作 --> <!-- 锁屏操作 -->
<a-tooltip placement="bottom"> <a-tooltip placement="bottom">
@@ -124,14 +126,16 @@ function fnChangeLocale(e: any) {
</ProModal> </ProModal>
</a-tooltip> </a-tooltip>
<a-tooltip placement="bottom"> <span v-roles:has="['teacher', 'admin']">
<template #title>{{ t('loayouts.rightContent.helpDoc') }}</template> <a-tooltip placement="bottom">
<a-button type="text" style="color: inherit" @click="fnClickHelpDoc()"> <template #title>{{ t('loayouts.rightContent.helpDoc') }}</template>
<template #icon> <a-button type="text" style="color: inherit" @click="fnClickHelpDoc()">
<QuestionCircleOutlined /> <template #icon>
</template> <QuestionCircleOutlined />
</a-button> </template>
</a-tooltip> </a-button>
</a-tooltip>
</span>
<a-tooltip placement="bottom"> <a-tooltip placement="bottom">
<template #title>{{ t('loayouts.rightContent.fullscreen') }}</template> <template #title>{{ t('loayouts.rightContent.fullscreen') }}</template>