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

+3 -1
View File
@@ -59,7 +59,9 @@
<el-table-column label="操作" width="200">
<template #default="{ row }">
<el-button icon="ShoppingCartFull" text type="primary" @click="shopCarDialogRef.openDialog(row.orderId)">购物车</el-button>
<el-button icon="WalletFilled" link type="primary" @click="doRefund(row)"> 退款 </el-button>
<el-button icon="WalletFilled" v-auth="'hard_hardAfterSale_adminRefund'" link type="primary" @click="doRefund(row)">
退款
</el-button>
<el-button
v-if="false"
icon="edit-pen"
+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"))