fix:领导权限控制
This commit is contained in:
1 parent
30716afea5
commit
aedca7f627
5 files changed
+27
-5
No files matched your search
@@ -59,7 +59,9 @@
|
|||||||
<el-table-column label="操作" width="200">
|
<el-table-column label="操作" width="200">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button icon="ShoppingCartFull" text type="primary" @click="shopCarDialogRef.openDialog(row.orderId)">购物车</el-button>
|
<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
|
<el-button
|
||||||
v-if="false"
|
v-if="false"
|
||||||
icon="edit-pen"
|
icon="edit-pen"
|
||||||
|
|||||||
@@ -69,6 +69,7 @@
|
|||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-if="row.type == 1"
|
v-if="row.type == 1"
|
||||||
|
:disabled="!useUserInfo().userInfos.roleCodes.includes('ROLE_ADMIN')"
|
||||||
:loading="switchTakeFoodLoading"
|
:loading="switchTakeFoodLoading"
|
||||||
active-text="是"
|
active-text="是"
|
||||||
inactive-text="否"
|
inactive-text="否"
|
||||||
@@ -110,6 +111,7 @@ import { BasicTableProps, useTable } from "/@/hooks/table"
|
|||||||
import * as hardManageApi from "/@/api/hard/hard-manager"
|
import * as hardManageApi from "/@/api/hard/hard-manager"
|
||||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||||
import { useDict } from "/@/hooks/dict"
|
import { useDict } from "/@/hooks/dict"
|
||||||
|
import { useUserInfo } from "/@/stores/userInfo"
|
||||||
|
|
||||||
// 引入组件
|
// 引入组件
|
||||||
const FormDialog = defineAsyncComponent(() => import("./form.vue"))
|
const FormDialog = defineAsyncComponent(() => import("./form.vue"))
|
||||||
|
|||||||
@@ -138,7 +138,13 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" fixed="right" min-width="300" align="center">
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
fixed="right"
|
||||||
|
v-auths="['wallet_mchManage_refresh_qrcode', 'wallet_mchManage_setting', 'wallet_mchManage_edit', 'wallet_mchManage_del']"
|
||||||
|
min-width="300"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button icon="RefreshRight" text type="primary" v-auth="'wallet_mchManage_refresh_qrcode'" @click="refreshQrcode(row)">
|
<el-button icon="RefreshRight" text type="primary" v-auth="'wallet_mchManage_refresh_qrcode'" @click="refreshQrcode(row)">
|
||||||
刷新二维码
|
刷新二维码
|
||||||
|
|||||||
@@ -106,14 +106,25 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="300" fixed="right">
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
v-auths="[
|
||||||
|
'wallet_walletRechargeApply_view',
|
||||||
|
'wallet_walletRechargeApply_apply',
|
||||||
|
'wallet_walletRechargeApply_edit',
|
||||||
|
'wallet_walletRechargeApply_del',
|
||||||
|
'wallet_walletRechargeApply_check',
|
||||||
|
]"
|
||||||
|
width="300"
|
||||||
|
fixed="right"
|
||||||
|
>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button
|
<el-button
|
||||||
v-if="row.importTime"
|
v-if="row.importTime"
|
||||||
icon="Document"
|
icon="Document"
|
||||||
text
|
text
|
||||||
type="primary"
|
type="primary"
|
||||||
v-auth="'wallet_walletRechargeApply_edit'"
|
v-auth="'wallet_walletRechargeApply_view'"
|
||||||
@click="doInfo(row)"
|
@click="doInfo(row)"
|
||||||
>数据</el-button
|
>数据</el-button
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<el-table-column prop="isRule" label="是否启用钱包规则" show-overflow-tooltip>
|
<el-table-column prop="isRule" label="是否启用钱包规则" show-overflow-tooltip>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-auth="'wallet_walletManage_edit'"
|
:disabled="!useUserInfo().userInfos.roleCodes.includes('ROLE_ADMIN')"
|
||||||
active-value="1"
|
active-value="1"
|
||||||
inactive-value="0"
|
inactive-value="0"
|
||||||
v-model="row.isRule"
|
v-model="row.isRule"
|
||||||
@@ -97,6 +97,7 @@ import { BasicTableProps, useTable } from "/@/hooks/table"
|
|||||||
import * as walletTypeApi from "/@/api/wallet/wallet-type"
|
import * as walletTypeApi from "/@/api/wallet/wallet-type"
|
||||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||||
import { useDict } from "/@/hooks/dict"
|
import { useDict } from "/@/hooks/dict"
|
||||||
|
import { useUserInfo } from "/@/stores/userInfo"
|
||||||
|
|
||||||
// 引入组件
|
// 引入组件
|
||||||
const FormDialog = defineAsyncComponent(() => import("./form.vue"))
|
const FormDialog = defineAsyncComponent(() => import("./form.vue"))
|
||||||
|
|||||||
Reference in new issue
Block a user