diff --git a/src/views/dashboard/amfUE/index.vue b/src/views/dashboard/amfUE/index.vue index e9186bc9..f627b8f9 100644 --- a/src/views/dashboard/amfUE/index.vue +++ b/src/views/dashboard/amfUE/index.vue @@ -15,6 +15,7 @@ import { listAMFDataUE, delAMFDataUE, exportAMFDataUE } from '@/api/neData/amf'; import { OptionsType, WS } from '@/plugins/ws-websocket'; import saveAs from 'file-saver'; import PQueue from 'p-queue'; +import { hasRoles } from '@/plugins/auth-user'; const { t } = useI18n(); const { getDict } = useDictStore(); const ws = new WS(); @@ -522,6 +523,7 @@ onBeforeUnmount(() => { :disabled="tableState.selectedRowKeys.length <= 0" :loading="modalState.confirmLoading" @click.prevent="fnRecordDelete('0')" + v-if="!hasRoles(['student'])" > {{ t('common.deleteText') }} @@ -583,7 +585,7 @@ onBeforeUnmount(() => { { :disabled="tableState.selectedRowKeys.length <= 0" :loading="modalState.confirmLoading" @click.prevent="fnRecordDelete('0')" + v-if="!hasRoles(['student'])" > {{ t('common.deleteText') }} @@ -634,7 +636,7 @@ onBeforeUnmount(() => { { :disabled="tableState.selectedRowKeys.length <= 0" :loading="modalState.confirmLoading" @click.prevent="fnRecordDelete('0')" + v-if="!hasRoles(['student'])" > {{ t('common.deleteText') }} @@ -587,7 +589,7 @@ onBeforeUnmount(() => { { :disabled="tableState.selectedRowKeys.length <= 0" :loading="modalState.confirmLoading" @click.prevent="fnRecordDelete('0')" + v-if="!hasRoles(['student'])" > {{ t('common.deleteText') }} @@ -611,7 +613,7 @@ onBeforeUnmount(() => {