fix:领导权限控制

This commit is contained in:
dzc committed 2025-04-07 10:32:02 +08:00
1 parent 30716afea5
commit aedca7f627
5 files changed
+27 -5

No files matched your search

+2
View File
@@ -69,6 +69,7 @@
<template #default="{ row }">
<el-switch
v-if="row.type == 1"
:disabled="!useUserInfo().userInfos.roleCodes.includes('ROLE_ADMIN')"
:loading="switchTakeFoodLoading"
active-text="是"
inactive-text="否"
@@ -110,6 +111,7 @@ import { BasicTableProps, useTable } from "/@/hooks/table"
import * as hardManageApi from "/@/api/hard/hard-manager"
import { useMessage, useMessageBox } from "/@/hooks/message"
import { useDict } from "/@/hooks/dict"
import { useUserInfo } from "/@/stores/userInfo"
// 引入组件
const FormDialog = defineAsyncComponent(() => import("./form.vue"))